[issue14503] docs:Code not highlighted

2012-04-05 Thread R. David Murray
R. David Murray added the comment: Huh. Well, in another issue Georg said it was now possible to upgrade the doc build toolchain to Python3. -- ___ Python tracker ___

[issue14503] docs:Code not highlighted

2012-04-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 p

[issue14503] docs:Code not highlighted

2012-04-05 Thread R. David Murray
R. David Murray added the comment: Ah, you mean they are not *syntax* highlighted. Now I understand. Sorry for missing that. My understanding is that Sphinx does not use Python directly to parse the code and highlight it, it uses pygments, which uses regexes. So this basically amounts to

[issue14503] docs:Code not highlighted

2012-04-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > they are highlighted No. Keywords normally appear in bold font, and with another color. This is not the case in these blocks. Probably because the language detection does not work with the new "yield from" construct. Sphinx should always use the late

[issue14503] docs:Code not highlighted

2012-04-05 Thread R. David Murray
R. David Murray added the comment: Berker: you can reproduce the bug, or the fact that they are highlighted? The png looks like they are highlighted, so I assume the latter. -- ___ Python tracker ___

[issue14503] docs:Code not highlighted

2012-04-05 Thread Berker Peksag
Berker Peksag added the comment: I can reproduce. See screenshot.png. -- nosy: +berker.peksag Added file: http://bugs.python.org/file25135/screenshot.png ___ Python tracker ___

[issue14503] docs:Code not highlighted

2012-04-05 Thread R. David Murray
R. David Murray added the comment: I'm not seeing any unhighlighted examples in that section. -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue14503] docs:Code not highlighted

2012-04-05 Thread Ramchandra Apte
Ramchandra Apte added the comment: Whoops - In http://docs.python.org/dev/whatsnew/3.3.html#pep-380-syntax-for-delegating-to-a-subgenerator , two code samples are not highlighted. -- ___ Python tracker

[issue14503] docs:Code not highlighted

2012-04-05 Thread Ramchandra Apte
New submission from Ramchandra Apte : In http://docs.python.org/dev/whatsnew/3.3.html#pep-380-syntax-for-delegating-to-a-subgenerator , two code samples -- assignee: docs@python components: Documentation messages: 157551 nosy: docs@python, ramchandra.apte priority: normal severity: nor