From: Jeff H. - DM&T <je...@du...> - 2016-01-01 14:57:56
|
rST: .. code:: python >>> print('Hello World!') Hello World! >>> generates the following HTML using rst2html.py <body> <div class="document"> <pre class="code python literal-block"> <span class="operator">>>></span> <span class="keyword">print</span><span class="punctuation">(</span><span class="literal string">'Hello World!'</span><span class="punctuation">)</span> <span class="name">Hello</span> <span class="name">World</span><span class="error">!</span> <span class="operator">>>></span> </pre> </div> </body> NOTE: the <span class="error">!<span> I can not figure out how to escape the exclamation point. Any input on what I am doing wrong would be appreciated. -- Best, Jeff Hinrichs 402.218.1473 |