AT - 2007-05-15

Hey,

I've got a small problem with highlighting in php.
When I open a page with a lot of php code and also the following:

echo "LOTS OF HTMLCODE ....

<SCRIPT TYPE=\"text/javascript\">
<!--
if (document.images) {
...some javascript code
}

//-->
</SCRIPT>
</p>...MORE HTML CODE ";

The first time I open the document (right click, edit with NPP) it highlights the php correctly till '<!--'.
After that all the code is considerd to be html (although we are still in php).

The strange thing is that by switching to another document in NPP and back to this document everything is highlighted normal. Seems like there is a difference in highlighting after opening and highlighting a already opened document.

Not sure if that is really the case, but if there is a way to fix it, it would greatly appreciated.