Hi,
I having some trouble formatting text inside a tag. For example the following code:
<style type="text/css">
.highlight { background: #f8f8f8; }
.highlight .c { color: #408080; font-style: italic } /* Comment */
.highlight .o { color: #666666 } /* Operator */
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
</style>
<div class="highlight">
<pre><span class="c"># This line configures matplotlib to show figures embedded in the notebook, </span>
<span class="c"># instead of poping up a new window.</span>
<span class="o">%</span><span class="k">pylab</span> <span class="n">inline</span>
<span class="kn">from</span> <span class="nn">pylab</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="kn">as</span> <span class="nn">plt</span>
<span class="kn">from</span> <span class="nn">mpl_toolkits.mplot3d.axes3d</span> <span class="kn">import</span> <span class="n">Axes3D</span>
<span class="kn">import</span> <span class="nn">itertools</span> <span class="kn">as</span> <span class="nn">it</span>
</pre></div>When seen in the preview WYSIWYG editor, and in a browser, I get:
http://i.imgur.com/KivKTlO.png
This is what I would expect.
But when I click on preview, as well as when the code is saved, I see the HTML code instead:
http://i.imgur.com/ryuYsLh.png
I do not have administrative rights to the drupal installation, but I could request the administrator do some changes for me if necessary. Also the html code is generated by a script that converts IPython notebooks to html, so I could make some modifications to it but the structure of the css/html is se by the developers of the script.
Any ideas would be appreciated,
Regards,
Antonio
Comments
---
Is the text format set to filtered or full html?
Thanks for the reply the text
Thanks for the reply the text format is set to full html.
After looking at it for a while with the person administering the drupal installation, we think that the problem is that we have GESHI installed and that is taking over the content inside tags. We could switch it to tags, but that would break the pages from other users that have already been using for their code. I think I am going to end up writting a script to convert tags in my code to hopefully that will result in the formatting that I want.
Regards,
Antonio