I am publishing python code on a website (that is CMS). I have a python script which reads any python script and makes a syntax-colored HTML out of it. Then I copy/paste this HTML into the CMS editing window.
The problem is that my python syntax highlighting script uses
<pre> tag to keep tabs/spaces which are quite important in python. The CMS, however, for some unclear reasons, removes
<pre> tag. Admin told me that I should use
<div> instead of
<pre>. Could you help me in styling a
<div> to keep the wihte-space formatting?