This is a test of the new "code" directive: Translate this document with a pygments enhanced frontend, e.g. ../rst2html-highlight.py --stylesheet=../data/pygments-default.css ../rst2latex-highlight.py --stylesheet=../data/pygments-docutilsroles.sty or via the test case in ../pygments_code_block_directive.py --traceback The example from Docutils TODO list: print 'This is Python code.' for i in range ( 10 ): print i Numbered lines: 1 # This is Python code, 2 # that prints the integers from 0 to 9 3 for i in range ( 10 ): 4 print i Another example: 7 def my_function (): 8 """Test the lexer. 9 """ 10 11 # and now for something completely different 12 print 8 / 2 The end.