Issue 17256: code example in C API docsshould be highlighted (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/61458

classification

Title: code example in C API docsshould be highlighted
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3, Python 3.4, Python 2.7

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: Ramchandra Apte, chris.jerdonek, docs@python, ezio.melotti, kushal.das, python-dev
Priority: normal Keywords: patch

Created on 2013-02-20 14:45 by Ramchandra Apte, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue17256.patch kushal.das,2013-02-22 05:28 patch to fix syntax highlighting review
Messages (6)
msg182515 - (view) Author: Ramchandra Apte (Ramchandra Apte) * Date: 2013-02-20 14:45
in http://docs.python.org/2/extending/embedding.html#linking-requirements the code example isn't highlighted
msg182516 - (view) Author: Ramchandra Apte (Ramchandra Apte) * Date: 2013-02-20 14:47
Also in the section above: http://docs.python.org/2/extending/embedding.html#extending-embedded-python , the two code examples should be highlighted.
msg182544 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2013-02-20 19:29
Looks like it's because highlightlang:: c is at the top.
msg182631 - (view) Author: Kushal Das (kushal.das) * (Python committer) Date: 2013-02-22 05:28
Following patch solves the problem.
msg182637 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-02-22 05:53
New changeset ad55dc7de7fc by Ezio Melotti in branch '2.7': #17256: fix syntax highlight in embedding example. Patch by Kushal Das. http://hg.python.org/cpython/rev/ad55dc7de7fc New changeset b42e7aeb4235 by Ezio Melotti in branch '3.2': #17256: fix syntax highlight in embedding example. Patch by Kushal Das. http://hg.python.org/cpython/rev/b42e7aeb4235 New changeset 3405d828ce95 by Ezio Melotti in branch '3.3': #17256: merge with 3.2. http://hg.python.org/cpython/rev/3405d828ce95 New changeset fb50eb64e097 by Ezio Melotti in branch 'default': #17256: merge with 3.3. http://hg.python.org/cpython/rev/fb50eb64e097
msg182639 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-02-22 05:55
Fixed, thanks for the patch!
History
Date User Action Args
2022-04-11 14:57:42 admin set github: 61458
2013-02-22 05:55:04 ezio.melotti set status: open -> closedversions: + Python 3.2, Python 3.3, Python 3.4messages: + assignee: docs@python -> ezio.melottiresolution: fixedstage: needs patch -> resolved
2013-02-22 05:53:38 python-dev set nosy: + python-devmessages: +
2013-02-22 05:28:27 kushal.das set files: + issue17256.patchnosy: + kushal.dasmessages: + keywords: + patch
2013-02-20 19:29:54 ezio.melotti set nosy: + ezio.melottitype: enhancementstage: needs patch
2013-02-20 19:29:08 chris.jerdonek set nosy: + chris.jerdonekmessages: +
2013-02-20 14:47:40 Ramchandra Apte set title: code example should be highlighted -> code example in C API docsshould be highlighted
2013-02-20 14:47:23 Ramchandra Apte set messages: +
2013-02-20 14:45:37 Ramchandra Apte set versions: + Python 2.7
2013-02-20 14:45:30 Ramchandra Apte create