Yes, but it SHOULD be multi-level. But probably only with embedded scripting
languages like PHP and ASP, which are different from other languages in usage.
(and therefore require some "special processing" -- in that they are embedded in
other "sub-languages" -- one example is when I want to pass a PHP value to an
embedded Javascript section which is embedded in HTML -- quick example:

<script type="text/javascript">
<!--
nArticleCount = <? echo $nArticleCount; ?>;
// Notepad++ (and other editors) handles this syntax coloring
)

In other words, "embedded scripting languages" should get priority and
preference over other languages first, because they can be embedded within those
other language sections. (HTML, Javascript, CSS, and ???)

AND there should be a simple (or possibly complex) check when embedding within
those other languages. (language sections) Even if there was at least a
requirement that they be On THE SAME TEXT LINE, that would be better than
nothing. BUT, regardless, there should always be _matching_ START and END tags,
otherwise it is not a valid usage and should be ignored. Of course, that
test/check cannot be done with a 'simple' RegEx.

I'm pretty sure that other code editors do it this way, or some form of that.

Maybe think about it and put it on a To Do list?

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

Odpovedet emailem