Julien added the comment:

I revewed all my ".. code-block:: bash" and you're right (I was unaware of the 
existence of the "console" lexer). I changed them (reviewing them one by one) 
to ".. code-block:: shell-session", a synonym for ".. code-block:: console" 
(http://pygments.org/docs/lexers/?highlight=console#pygments.lexers.shell.BashSessionLexer)
 which I find, in a Python context, semantically more precise, and less 
ambigious, as one may read "console" as "the repl" (I assume most writers of 
the doc are aware of commonly used pygment lexers, it's still better for 
newcomers to be explicit and readable).

For your other point, about pycon being automatically detected, I tried 
removeing them and it works, I was sure I was adding them only where the 
python3 parser was reporting an error (was fixing errors one by one). I keeped 
the explicit pycon lexer in the "Doc/extending/extending.rst" file which have a 
".. highlightlang:: c".

Here is the new patch, and thanks for this usefull review !

----------
Added file: http://bugs.python.org/file42057/literal_blocks_languages.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26462>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to