Hi guys,
I used to use the “none” formatting option, and always used to markup my entire post until I found I’d rarely update due to tediousness. I’m trying the “XHTML” option (there’s no “Auto XHTML” option as the guide shows, but perhaps my EE is out of date) which automatically seems to add the paragraph tags to blocks of text followed by a double line break (or preceded by).
It doesn’t add the tags after I include a script tag to use Syntax Highlighter (so my entry is mixed with untagged blocks of text which I’d like EE to mark up, and some elements I add manually like the script block, “h2"s and some links).
Issue can be viewed at: www.ataulmunim.co.uk. Note how the text below the code sample has no line breaks (easier to see that the p tags are missing from source), but the ones before do.
edit: It’s definitely something to do with the CDATA block - if I take the CDATA block out, but leave the script tags - it’ll parse the rest of the entry correctly and add the tags.
This is what I have in my post text area:
This is some placeholder text representing the text before the code sample. It includes several "paragraphs" separated by double line breaks and these have tags enclosing them (automatically added by EE).
Below is my code sample:
<script type="syntaxhighlighter" class="brush: python"><![CDATA[
# my python code
]]></script>
Here is some more paragraphed text, also separated by double line breaks.
However, EE no longer adds the tags automatically.
Currently using:
Freelancer v2.5.2 - Build Date: 20120606
Is there a workaround I can use to continue using Syntax Highlighter?
Thanks 😊