This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mdk
Recipients docs@python, georg.brandl, mdk, serhiy.storchaka
Date 2016-03-01.21:25:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456867541.25.0.286278042811.issue26462@psf.upfronthosting.co.za>
In-reply-to
Content
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 !
History
Date User Action Args
2016-03-01 21:25:47mdksetrecipients: + mdk, georg.brandl, docs@python, serhiy.storchaka
2016-03-01 21:25:41mdksetmessageid: <1456867541.25.0.286278042811.issue26462@psf.upfronthosting.co.za>
2016-03-01 21:25:41mdklinkissue26462 messages
2016-03-01 21:25:41mdkcreate