diff options
| author | Georg Brandl <georg@python.org> | 2009-06-04 17:57:58 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-06-04 17:57:58 +0200 |
| commit | 7ed7231c41f290d056686ceccc0410a3e7cf1305 (patch) | |
| tree | 5b9f9f5804820f8f2a7cfd8e9515baea8b0eee62 /doc/markup/code.rst | |
| parent | b71e52171b5d3d8cb581711dd30ca955be3c0019 (diff) | |
| download | sphinx-7ed7231c41f290d056686ceccc0410a3e7cf1305.tar.gz | |
Added the ``prepend`` and ``append`` options to the
``literalinclude`` directive.
Diffstat (limited to 'doc/markup/code.rst')
| -rw-r--r-- | doc/markup/code.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/markup/code.rst b/doc/markup/code.rst index 93cd127b..8c223297 100644 --- a/doc/markup/code.rst +++ b/doc/markup/code.rst @@ -143,11 +143,17 @@ Includes string option, only lines that precede the first lines containing that string are included. + You can prepend and/or append a line to the included code, using the + ``prepend`` and ``append`` option, respectively. This is useful e.g. for + highlighting PHP code that doesn't include the ``<?php``/``?>`` markers. + .. versionadded:: 0.4.3 The ``encoding`` option. .. versionadded:: 0.6 The ``pyobject``, ``lines``, ``start-after`` and ``end-before`` options, as well as support for absolute filenames. + .. versionadded:: 1.0 + The ``prepend`` and ``append`` options. .. rubric:: Footnotes |
