Menu

modify syntax-highlight mapper

2009-01-21
2012-11-13
  • Delf Tonder

    Delf Tonder - 2009-01-21

    Hi,

    I've a embperl project running, and all the perl-files have an .html extension. Is there a way to tell np++ to use perl-syntax-highlighter for .html file per default? Could not find it in the options and if dont wanna change the highlighting manually every time...

     
    • gregie

      gregie - 2009-01-22

      i had a kind of a similar problem and the only solution i could find was to recreate the language as a custom language and then edit its associated files. you can copy all the attributes of your language from the two built in language files into the userlangs.xml file. just dont forget to disable the built in version if you do that.
      i think the function autocomplete gets a bit messed up if the new language has the same name. so name it something else and rename the autocomplete file to the new name.

      but maybe theres a better solution all together?