[Python-checkins] devguide: Document the code-block directive.

ezio.melotti python-checkins at python.org
Sun Jan 20 11:31:01 CET 2013


http://hg.python.org/devguide/rev/3628a1aed4cd
changeset:   591:3628a1aed4cd
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Sun Jan 20 12:30:46 2013 +0200
summary:
  Document the code-block directive.

files:
  documenting.rst |  11 +++++++++++
  1 files changed, 11 insertions(+), 0 deletions(-)


diff --git a/documenting.rst b/documenting.rst
--- a/documenting.rst
+++ b/documenting.rst
@@ -825,6 +825,17 @@
   This language is used until the next ``highlightlang`` directive is
   encountered.
 
+* The ``code-block`` directive can be used to specify the highlight language
+  of a single code block, e.g.::
+
+     .. code-block:: c
+
+        #include <stdio.h>
+
+        void main() {
+            printf("Hello world!\n");
+        }
+
 * The values normally used for the highlighting language are:
 
   * ``python`` (the default)

-- 
Repository URL: http://hg.python.org/devguide


More information about the Python-checkins mailing list