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 to HTML with a pygments enhanced frontend, e.g.
7 ../rst2html-highlight.py --stylesheet=../data/pygments-default.css
9 ../rst2latex-highlight.py --stylesheet=../data/pygments-docutilsroles.sty
11 ../rst2pseudoxml-highlight.py
13 The example from Docutils TODO list:
14 <literal_block classes="code pythonsi" xml:space="preserve">
15 print 'This is Python code.'
20 <literal_block classes="code python silly" ids="my-function" names="my-function" xml:space="preserve">
52 # and now for something completely different