[issue3376] Use Python 3 lexer for 3.0 docs

Benjamin Peterson report at bugs.python.org
Fri Jul 18 19:50:58 CEST 2008


New submission from Benjamin Peterson <benjamin.peterson at usfamily.net>:

I'm attaching two patches. One, for the Sphinx trunk, adds a
pygments_default_lexer option. The other, for the py3k branch, changes
the default lexer to python3. It also includes a rather hacky, overriden
highlightlang directive that changes the lexer from 'python' to
'python3' and calls the real highlightlang directive. This would
probably be better solved by adding a lexer_aliases option or something
to Sphinx. Note this doesn't work because the pygments version in SVN
doesn't have the Python 3 lexer.

----------
keywords: +patch
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file10936/default_lexer_option.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3376>
_______________________________________


More information about the Python-bugs-list mailing list