ta.parentNode.innerHTML+= '<iframe onload="setCode();" style="border:none; margin:0; padding:0; width:100%; height:400px;" id="codepress" [b]src="/assets/plugins/codepress/codepress.html"[/b]></iframe><br />';
ta.parentNode.innerHTML+= '<iframe onload="setCode();" style="border:none; margin:0; padding:0; width:100%; height:400px;" id="codepress" [b]src="../assets/plugins/codepress/codepress.html"[/b]></iframe><br />';
//<?php //?>
. Gildas has improve the plugin but it’s still a little buggy. There is investigation and he will post his work there.
thought he wanted to check some things out first before posting it there
) No language skills is needed for code
(that is, except for php)
Whoa....ha!
MODx is starting to freak meThis is so cool man! Picked up a few typo’s in my snippet straight away...
I did notice though that teh highlighting fails if there’s a lot of comments at the top of the snippet. I looked at several snippets and each time if it has lot’s of comments the code doesn’t highlight anymore. Come to think of it this may have to do with (single) quote’s in comments. The highlighter colors text in quotes, even in comments I noticed. Offcourse a single - single quote isn’t unusual in comments. Hmm,.. I’ll take that up with the developer I think.
fermads :: 2006-10-19
TobyL,
I think I know what you mean.
Reserved words inside comments AND with single quote not closed with another single quote are being colored wrong. At least this is what I could reproduce from what you said.
I’ll look into that in next CodePress version.
Thanks

before making any new change to my custom version of the CodePress plugin...
I’d be glad if some people will report their experiences so I can post it to the resources page, if it’s considered stable.