Encountered as of PSPad 4.5.4 (r2320), anyone know if this was fixed in a later
update or still out there in the wild?

In HTML script files, server-side scripts such as PHP take priority over
client-side scripts like Javascript (reason should be obvious).

PSPad's HTML Multihilighter doesn't reflect this and highlights a file based on
the first script tag encountered, which is not always the desired behavior; such
as if you need to compile Javascript dynamically via a serverside script.

An acceptable workaround in the meantime is just to keep it in PHP context and
echo() the javascript as a string.

Screenshot:
[url=http://i67.photobucket.com/albums/h316/Stratelier/pspad_hilight_bug.png]psp
ad_hilight_bug.png[/url]
[img]http://i67.photobucket.com/albums/h316/Stratelier/pspad_hilight_bug.png[/im
g]

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

Odpovedet emailem