I've been downloading a couple of PHP projects, namely CMSes, and looking
through their source a little.
One thing that's been getting to me is that in a php code block, if there's a
string literal that contains the tokens ?> in sequence, it will end the block,
and the highliting after that point will be in normal HTML.
Example:
<?
$str="Syntax highlited"." - Woo hoo";
$str="Break up tokens and it works: ?".">";
$str="Don't, and it'll stop ?>";
//No more PHP syntax highliting
?>

-- 
<http://forum.pspad.com/read.php?4,41122,41122>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem