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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-12-06
Okay that worked, thanks.
OK, I just need very basic syntax highlighting.
Thanks for helping
Karsten
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
Okay that worked, thanks.
OK, I just need very basic syntax highlighting.
Thanks for helping
Karsten