Jeff Hinrichs - DM&T
2016-01-01 14:57:49 UTC
rST:
.. code:: python
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.
.. 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
Best,
Jeff Hinrichs
402.218.1473