diff options
author | Georg Brandl <georg@python.org> | 2010-04-17 10:39:51 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-04-17 10:39:51 +0200 |
commit | f4f3066581a985384f117ffbe2105de7e5bdcb7c (patch) | |
tree | 65279525ae9619d532d21ee67d6bc8c5b9727d38 /doc/markup/code.rst | |
parent | 541e30b36eb1b499b684f14d345b23923f296661 (diff) | |
download | sphinx-git-f4f3066581a985384f117ffbe2105de7e5bdcb7c.tar.gz |
Use the new rst domain in the sphinx docs.
Diffstat (limited to 'doc/markup/code.rst')
-rw-r--r-- | doc/markup/code.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/markup/code.rst b/doc/markup/code.rst index 968711158..eaaf17d08 100644 --- a/doc/markup/code.rst +++ b/doc/markup/code.rst @@ -43,14 +43,14 @@ installed) and handled in a smart way: This language is used until the next ``highlight`` directive is encountered. * For documents that have to show snippets in different languages, there's also - a :dir:`code-block` directive that is given the highlighting language + a :rst:dir:`code-block` directive that is given the highlighting language directly:: .. code-block:: ruby Some Ruby code. - The directive's alias name :dir:`sourcecode` works as well. + The directive's alias name :rst:dir:`sourcecode` works as well. * The valid values for the highlighting language are: @@ -70,7 +70,7 @@ Line numbers If installed, Pygments can generate line numbers for code blocks. For automatically-highlighted blocks (those started by ``::``), line numbers must be -switched on in a :dir:`highlight` directive, with the ``linenothreshold`` +switched on in a :rst:dir:`highlight` directive, with the ``linenothreshold`` option:: .. highlight:: python @@ -78,7 +78,7 @@ option:: This will produce line numbers for all code blocks longer than five lines. -For :dir:`code-block` blocks, a ``linenos`` flag option can be given to switch +For :rst:dir:`code-block` blocks, a ``linenos`` flag option can be given to switch on line numbers for the individual block:: .. code-block:: ruby @@ -90,7 +90,7 @@ on line numbers for the individual block:: Includes ^^^^^^^^ -.. directive:: .. literalinclude:: filename +.. rst:directive:: .. literalinclude:: filename Longer displays of verbatim text may be included by storing the example text in an external file containing only plain text. The file may be included using the |