#278 Embedded lexers

Neil Hodgson

I'm not sure if this has been proposed but i would love
some input on the idea. I think it would be great to
have lexing to work for embedded languages. You would
have to of course have some sort of definable values
that determine what tags define a block which imbedded
code (specific to each parent lang). Let me explain
what i mean by embedded. A really simple explination
would be how javascript is embedded within html (by use
of the <script> tag). Annother example being how php
can be embedded in html (or the other way around
depending on how you look at it) and furthermore,
javascript can then be embedded into the html that is
embedded with in php (you can see how this becomes
recursive). If lexers could be encapsolated into
others, the lexers would be more logically orginized
and each only responsible for lexing her/her own code.
I would love to see this sort of behavoir and i think
that it would really extend the functionality of
Scintilla ( specifically for notepad++ (which rocks).)


the one reason i ask for this type of feature, is my
quest to lex the mason lang (which is custom inline
perl within html files).


  • Neil Hodgson
    Neil Hodgson

    • priority: 5 --> 1
  • Logged In: NO

    So does the priority of this feature request mean that these
    kind of changes (from the sinkWorld) might actually make it
    into the scintilla tree? If so i love you guys. if not i
    still love you just not as much.


  • Neil Hodgson
    Neil Hodgson

    Logged In: YES

    There's not many options in the tracker. I didn't want to
    close it because eventually something like it will be done
    but the only thing I am working on in this area is
    SinkWorld. It is currently unlikely that I'll write a
    wrapper for SinkWorld that makes it work as a substitute for

  • Neil Hodgson
    Neil Hodgson

    • assigned_to: nobody --> nyamatongwe
  • Dinomight

    Logged In: YES

    I was just checking back in on th is feature request. as far
    as i can tell sinkworld is dead (no progress in almost a
    year) and therefore it is unlikely that it will every help
    to add this feature to scintilla tree. I would like to
    request this again.

  • Neil Hodgson
    Neil Hodgson

    Logged In: YES

    SinkWorld release 6 was 30/November/2005. I will not be
    working on this in Scintilla.