summaryrefslogtreecommitdiff
path: root/sandbox/code-block-directive/docs/myfunction.py.txt
blob: b9727e96f60da332844b4681fbe76631538e8f38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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.