Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#278 Embedded lexers

open
Neil Hodgson
None
1
2005-12-11
2005-12-01
Dinomight
No

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).)

-Dinomight

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).

Discussion

  • Neil Hodgson
    Neil Hodgson
    2005-12-01

    • 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.

    -D

     
  • Neil Hodgson
    Neil Hodgson
    2005-12-04

    Logged In: YES
    user_id=12579

    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
    Scintilla.

     
  • Neil Hodgson
    Neil Hodgson
    2005-12-11

    • assigned_to: nobody --> nyamatongwe
     
  • Dinomight
    Dinomight
    2006-01-24

    Logged In: YES
    user_id=1023569

    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
    2006-01-24

    Logged In: YES
    user_id=12579

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