[issue2154] doc: better detection of python snippets for highliting

2008-02-21 Thread Georg Brandl
Georg Brandl added the comment: Committed as r60938 (python) and r60939 (sphinx). Thanks for the nice patch! -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> _

[issue2154] doc: better detection of python snippets for highliting

2008-02-21 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc: The new doc framework highlights python code, and looks very nice. However, some snippets are not parseable by the compiler, and are thus left unhighlighted. For example: http://docs.python.org/dev/whatsnew/2.6.html#the-contextlib-module The vast majorit