[issue14503] docs:Code not highlighted
Amaury Forgeot d'Arc
report at bugs.python.org
Thu Apr 5 16:32:18 CEST 2012
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
Not exactly. Sphinx first tries to see if the block is a Python script, and to do so it uses the Python compiler:
https://bitbucket.org/birkenfeld/sphinx/src/164f59b2d946/sphinx/highlighting.py#cl-117
In case of SyntaxError, it treats the whole block as plain text and does not try to use pygmentq at all.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14503>
_______________________________________
More information about the Python-bugs-list
mailing list