summaryrefslogtreecommitdiff
path: root/sandbox/code-block-directive/docs/myfunction.py.pseudoxml
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-06-08 16:05:01 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-06-08 16:05:01 +0000
commit0784ae4285103bb3098e482fc4f915b977fdf6db (patch)
treec44f93238162a571b54c12a352c53b1850ec1281 /sandbox/code-block-directive/docs/myfunction.py.pseudoxml
parent698b0e9f6dd70ef89d4e47783efbaff903e3155a (diff)
downloaddocutils-0784ae4285103bb3098e482fc4f915b977fdf6db.tar.gz
New sandbox project for development of a code-block directive
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5229 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/code-block-directive/docs/myfunction.py.pseudoxml')
-rw-r--r--sandbox/code-block-directive/docs/myfunction.py.pseudoxml35
1 files changed, 35 insertions, 0 deletions
diff --git a/sandbox/code-block-directive/docs/myfunction.py.pseudoxml b/sandbox/code-block-directive/docs/myfunction.py.pseudoxml
new file mode 100644
index 000000000..6a71c2ede
--- /dev/null
+++ b/sandbox/code-block-directive/docs/myfunction.py.pseudoxml
@@ -0,0 +1,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
+