1 <document source="/home/milde/Code/Python/docutils-svn/sandbox/code-block-directive/docs/myfunction.py.txt">
3 This is a test of the new "code" directive:
4 <comment xml:space="preserve">
5 Translate this document with a pygments enhanced frontend, e.g.
7 ../rst2html-highlight.py --stylesheet=../data/pygments-default.css
8 ../rst2latex-highlight.py --stylesheet=../data/pygments-docutilsroles.sty
10 or via the test case in
12 ../pygments_code_block_directive.py --traceback
14 The example from Docutils TODO list:
15 <literal_block classes="code python" xml:space="preserve">
20 'This is Python code.'
48 <literal_block classes="code python" xml:space="preserve">
52 # This is Python code,
57 # that prints the integers from 0 to 9
89 <literal_block classes="code python silly" ids="my-function" names="my_function" xml:space="preserve">
100 <inline classes="ln">
103 <inline classes="sd">
105 <inline classes="ln">
107 <inline classes="sd">
110 <inline classes="ln">
113 <inline classes="ln">
117 # and now for something completely different
119 <inline classes="ln">
125 <inline classes="mi">
129 <inline classes="mi">