UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Tinymce doesn't support preformatted text

Clayton Dukes · ·
12:11 PM Wednesday, 29 October 2014
None
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 :)
The replies under this section are restricted to logged in users or users with an active subscription with us