I found 2 threads which ask this question.Original topic title: wrote:How to DISPLAY (not execute, NOT FORMAT) Code In Content
The help which was offered was along the lines of "use one of the many code-in-content plugins for this".
After the posters clarified that they aren't trying to put executable code in content, but instead are trying to display bare code, no responses.
Anyway: I'm in the same boat.
Actually, using JCE, I am able to save code in content for display.
When I later open the same article for editing, JCE wrecks the displayable code.
It takes characters which have been saved in the database (the first time) as proplerly escaped <'s, and it UNESCAPES them, THEN the code which is supposed to be escaped for display is now actual HTML, XML or PHP tags (because JCE unescaped them).
Obviously the effect is either that JCE then strips these tags, OR, if the tags are present in JCE's "Extended Elements" configuration, then they're not stripped, but they're not escaped either, so, they either become invisible OR they get removed by Joomla's blacklist.
None of these effects are wanted, and none of them should happen at all.
Is anybody successful at using Joomla CMS with a decent WYSIWYG editor to publish and REVISE content which contains sourcecode snippets for display in content, not for execution?
THANKS SO MUCH for any help here!