diff options
Diffstat (limited to 'sandbox/code-block-directive/docs/myfunction.py.htm')
-rw-r--r-- | sandbox/code-block-directive/docs/myfunction.py.htm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sandbox/code-block-directive/docs/myfunction.py.htm b/sandbox/code-block-directive/docs/myfunction.py.htm new file mode 100644 index 000000000..edc700246 --- /dev/null +++ b/sandbox/code-block-directive/docs/myfunction.py.htm @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="iso-8859-1" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> +<meta name="generator" content="Docutils 0.4.1: http://docutils.sourceforge.net/" /> +<title></title> +<link rel="stylesheet" href="../data/pygments-default.css" type="text/css" /> +</head> +<body> +<div class="document"> +<p>This is a test of the new code-block directive:</p> +<!-- Translate this document to HTML with a pygments enhanced frontend, e.g. + +rst2html-highlight - -stylesheet=pygments-default.css - -link-stylesheet --> +<pre class="code-block python literal-block"> +<span class="k">def</span> <span class="nf">my_function</span><span class="p">():</span> + <span class="s">"just a test"</span> + <span class="k">print</span> <span class="mi">8</span><span class="o">/</span><span class="mi">2</span> + +</pre> +</div> +<div class="footer"> +<hr class="footer" /> +Generated on: 2007-06-05. + +</div> +</body> +</html> |