blob: 617f4b671bfc663d322e27c8111fccfa3d5f81c9 (
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
|
<?xml version="1.0" encoding="utf-8" ?>
<!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=utf-8" />
<meta name="generator" content="Docutils 0.8: 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" directive:</p>
<!-- Translate this document to HTML with a pygments enhanced frontend, e.g.
../rst2html-highlight - -stylesheet=../data/pygments-default.css
../rst2latex-highlight - -stylesheet=../data/pygments-docutileroles.sty -->
<pre class="code python silly literal-block">
<span class="ln">1 </span><span class="k">def</span> <span class="nf">my_function</span><span class="p">():</span>
<span class="ln">2 </span> <span class="sd">"""Test the lexer.
</span><span class="ln">3 </span><span class="sd">
</span><span class="ln">4 </span><span class="sd"> just a test"""</span>
<span class="ln">5 </span>
<span class="ln">6 </span> <span class="c"># and now for something completely different</span>
<span class="ln">7 </span> <span class="k">print</span> <span class="mi">8</span><span class="o">/</span><span class="mi">2</span>
</pre>
<p>The end.</p>
</div>
</body>
</html>
|