I tried posting an entry where I wanted to include my Perl script in the post, but whenever I save changes, it would set htmlentities on things even though I had them marked as preformatted.
Using <pre> tags don’t work - even when my source code was wrapped inside pre tags, it still displayed the code wrong, like converting <cdukes@cdukes.com> to <cdukes@cdukes.com>
I also notice that with the tinymce editor, I can't select a group of text and make it preformatted - doing so made every single line of my script show as a separate preformatted line followed by a regular line followed by a preformatted line again. Quite ugly as you can imagine.
I ended up having to remove the script entirely from the post and just make it a download link - but this is not optimal since I want Google, etc. to crawl it.
Also, on the lines of preformatted text I was able to include (command outputs from running the script), I had to manually edit the html and set <p><pre>all of my code, etc, multiple lines</pre></p>
If I did it in the wysiwyg editor it completely hosed it.
Is there a better editor I can use that supports source code/preformatted text better?
It would be even better if there was an editor that could detect the type of code and do syntax highlighting, but I suppose I am dreaming now