Menu

Predefined KeyWords

2008-09-18
2012-11-13
  • Daniel Spawn

    Daniel Spawn - 2008-09-18

    Greetings!

    After reading a bit, I found out about the keywords that:

    %PROGRAMFILES%\Notepad++\langs.xml contains the keywords that then %APPDATA%\Notepad++\stylers.xml then puts colors on

    There's algo a *lang*.api in the APIs folder, which is made for the autocomplete feature..

    What im actually looking for, is where's defined that ASP code starts with <%, and PHP code starts with <?

    Because I want to see if I can fix this 2 issues:

    1) coloring of the PHP's shortcut <?=, which is equivalent to ASP's <%= (which is already colored)

    2) %> not closing Comment block
    In PHP, If i write
    <?php

    //END ?>
    The editor understands that the comment finishes with the PHP region, but if i write:

    <%

    'THE END %>

    There the %> is commented out, so the ASP region isnt closed (messing all the following HTML code, for example)

    I found out in stylers.xml that there's a ASPSYBOL which colors the <% and %>, but I cant find out where does it say that <% belongs to ASPSYBOL

    Any help will be appreciated!

     
    • Aaron W

      Aaron W - 2008-10-01

      I was having the same issue, but with highlighting variable strings in heredocs in PHP ... post back if you are successful ...

       
    • Deatzo Seol

      Deatzo Seol - 2008-09-18

      Hello!
      I read your e-mail and, yes, people have come up with a solution:
      You'll have to rewrite the source code of the scintilla lexers... as it is apparently hard-coded...
      I dunno whether it can help your case but at least its something...

       
      • Daniel Spawn

        Daniel Spawn - 2008-09-23

        Thanks Deatzo =)
        I guess I'll have to put my gloves on and dig on the C++