(2016-01-29, 08:35:01)shawn_a Wrote: if you want protected source say for php tags
config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // PHP code
but that probably needs tweaking if you want php source code display.
if you want source code, stick it in pre tags.
I gotta figure out how to add support for phrase and code tags, as of now they strip newlines.
Not sure why.
Either way it is pretty hard to paste non encoded source without a plugin I think.
When i paste php, it just turns it into comments.
<pre><!--?php echo $test; ?-->
I do use <pre>, it still does not work. I also tried <code>, <xml>, and <tt> and a myriad of custom <div>.
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
jwzumwalt
(\__/)
(='.'=)
(")_(")