summaryrefslogtreecommitdiff
path: root/sandbox/code-block-directive/docs/myfunction.py.pseudoxml
blob: 6a71c2ede7000a5315d5cd10206c2f796e97acdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<document source="/home/milde/.python/PyLit/trunk/rstdocs/features/myfunction.py.txt">
    <decoration>
        <footer>
            <paragraph>
                Generated on: 2007-06-05.
    <paragraph>
        This is a test of the new code-block directive:
    <comment xml:space="preserve">
        Translate this document to HTML with a pygments enhanced frontend, e.g.
        
        rst2html-highlight --stylesheet=pygments-default.css --link-stylesheet
    <literal_block classes="code-block python" raw_content="[u'def my_function():', u'    "just a test"', u'    print 8/2']" xml:space="preserve">
        <inline classes="k">
            def
         
        <inline classes="nf">
            my_function
        <inline classes="p">
            ():
        
            
        <inline classes="s">
            "just a test"
        
            
        <inline classes="k">
            print
         
        <inline classes="mi">
            8
        <inline classes="o">
            /
        <inline classes="mi">
            2