[issue14535] three code examples in docs are not syntax highlighted

New submission from Ramchandra Apte <maniandram01@gmail.com>: Three code examples in http://docs.python.org/py3k/library/multiprocessing.html#examples are not syntax highlighted. ---------- assignee: docs@python components: Documentation messages: 157845 nosy: docs@python, ramchandra.apte priority: normal severity: normal status: open title: three code examples in docs are not syntax highlighted versions: Python 3.2, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14535> _______________________________________

Changes by Tshepang Lekhonkhobe <tshepang@gmail.com>: ---------- nosy: +tshepang _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14535> _______________________________________

Tshepang Lekhonkhobe <tshepang@gmail.com> added the comment: This is probably because Sphinx can't detect that those are Python sources, so my patch forces it to recognize it as such. ---------- keywords: +patch Added file: http://bugs.python.org/file25204/highlight-code.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14535> _______________________________________

Éric Araujo <merwok@netwok.org> added the comment: LGTM ---------- nosy: +eric.araujo stage: -> commit review _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14535> _______________________________________

Roundup Robot <devnull@psf.upfronthosting.co.za> added the comment: New changeset 635966f6d3de by Ezio Melotti in branch '3.2': #14535: fix code highlight in multiprocessing examples. Patch by Tshepang Lekhonkhobe. http://hg.python.org/cpython/rev/635966f6d3de New changeset 957e2c71beef by Ezio Melotti in branch 'default': #14535: merge with 3.2. http://hg.python.org/cpython/rev/957e2c71beef ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14535> _______________________________________

Ezio Melotti <ezio.melotti@gmail.com> added the comment: I tried the attached patch but it didn't work for me. Using "python3" instead of "python" seemed to fix the problem. I also updated another "python" to use "python3". Thanks for the report and the patch! ---------- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed type: -> enhancement _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14535> _______________________________________

Georg Brandl <georg@python.org> added the comment: Ezio: That's a "bug" in Sphinx; even when the language is selected explicitly as "python", it will try to parse the code. It is fixed in a later Sphinx version. ---------- nosy: +georg.brandl _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14535> _______________________________________
participants (6)
-
Ezio Melotti
-
Georg Brandl
-
Ramchandra Apte
-
Roundup Robot
-
Tshepang Lekhonkhobe
-
Éric Araujo