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-docutilsroles.sty .. code:: python :class: silly :number-lines: 7 def my_function(): """Test the lexer. just a test""" # and now for something completely different print 8/2 The end.