Hey,
Can anyone think of a quick regular expression that would fix the default one for php? Check out this example code:
<ul> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> </ul> [code=php]<?php this_is_php_code("<div id=\"morestuff\">stuff</div>"); echo "?>"; [/code] this_is_also_php_code("<div id=\"morestuff\">stuff</div>"); ?>
After going back and forth to/from source mode, it shows:
<ul> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> </ul> [code=php]<?php this_is_php_code("<div id=\"morestuff\">stuff</div>"); echo "?>"; this_is_also_php_code(" [/code] <div id="\"morestuff\"">stuff</div> "); ?>
When putting this in through FCK editor, it looks like the regular expression matches the ?> in the quotes, which makes sense the way the expression is constructed. I'm not too great with regular expressions, but I'm pretty sure theres a way that this can be fixed.
Any ideas? Thanks.