I refer you to this thread:

http://forum.pspad.com/read.php?2,32787

(wherein I note that there are editors that accomplish near-perfect syntax
coloring, like Notepad++)

NOTHING should be affected that is inside valid quotes. (for any language --
except valid embedded in-string sequences on the SAME text line where, for
example, PHP is used for embedding into text strings, which I don't think can be
checked for using ONLY a RegEx, and especially not a "global RegEx", but
possibly a "'local' line RegEx")

There is a hierarchy and precedence that should be followed so that things like
this cannot occur.

Something like: (possibly or probably recursive, with special attention
(processing?) given to "embedded scripting" languages like PHP & ASP)

1) Embedded languages constructs and segments
2) Comments (for each language/sub-language)
3) Quoted strings (for each language/sub-language)
4) Non-embedded language constructs and segments (e.g. HTML)

Because HTML is a special circumstance, it often requires special processing,
which might be what you refer to as Multi-Highlighter.

Also, I didn't see any response to when HEREDOC-like text strings will be
supported.

Thank you.

-- 
<http://forum.pspad.com/read.php?2,54326,54485>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem