diff options
Diffstat (limited to 'sandbox/code-block-directive/docs/myfunction.py.txt')
-rw-r--r-- | sandbox/code-block-directive/docs/myfunction.py.txt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sandbox/code-block-directive/docs/myfunction.py.txt b/sandbox/code-block-directive/docs/myfunction.py.txt index 783e5b0b6..b9727e96f 100644 --- a/sandbox/code-block-directive/docs/myfunction.py.txt +++ b/sandbox/code-block-directive/docs/myfunction.py.txt @@ -1,13 +1,21 @@ -This is a test of the new code-block directive: +This is a test of the new "code" directive: .. Translate this document to HTML with a pygments enhanced frontend, e.g. ../rst2html-highlight --stylesheet=../data/pygments-default.css - ../rst2latex-highlight --stylesheet=../data/pygments-docutileroles.sty + ../rst2latex-highlight --stylesheet=../data/pygments-docutilsroles.sty -.. code-block:: python +.. code:: python + :class: silly + :number-lines: 7 def my_function(): - "just a test" + """Test the lexer. + + just a test""" + + # and now for something completely different print 8/2 + +The end. |