summaryrefslogtreecommitdiff
path: root/sandbox/code-block-directive/docs/myfunction.py.txt
blob: 783e5b0b607716bf0f51fef0e106fdfeffc005e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
This is a test of the new code-block 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

.. code-block:: python

  def my_function():
      "just a test"
      print 8/2