Menu

JPQL file type

Anonymous
2010-12-04
2012-11-13
  • Anonymous

    Anonymous - 2010-12-04

    How do I add a JPQL file type to NP++ so that it uses SQL syntax highlighting? Optionally, I'd like to adjust the list of keywords for that language independently of SQL.

    Directions appreciated.

    Karsten

     
  • cchris

    cchris - 2010-12-04

    Adding custom extensions is explained on the wiki about File Extensions: in Styler Configurator, click the root language, in your case SQL, and add "jpql" in the User Ext. box in the lower left corner.

    You can add extra keywords in some keyword categories as well. However, you cannot define a dialect, ie make your additions work for some extension only as opposed to all.

    If you can use an UDL to mimick the highlighting of SQL, then you can have total control. But the built-in lexers only support built-in lexers.

    CChris

     
  • Anonymous

    Anonymous - 2010-12-06

    Okay that worked, thanks.

    OK, I just need very basic syntax highlighting.

    Thanks for helping
    Karsten

     
MongoDB Logo MongoDB