I use Sphinx to make a website that contains code samples.
I\'m successful using the .. code-block
directive to get syntax highlighting.
But I can\'t get inline syn
syntax_highlight
is an ordinary docutils setting, which can be set in docutils.conf. This file is respected by Sphinx too, if placed in the Sphinx's configuration directory (where conf.py
resides):
[restructuredtext parser]
syntax_highlight = short
This is much better than patching docutils
or sphinx
code or creating a long name CSS file.