summaryrefslogtreecommitdiff
path: root/sandbox/code-block-directive/docs/myfunction.py.txt
blob: 926733dc08b6891967ca398580a2bbd82aa2b670 (plain)
1
2
3
4
5
6
7
8
9
10
11
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=pygments-default.css --link-stylesheet

.. code-block:: python

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