I have accomplished this by doing the following:
- Edit API XML file used by Notepad++ for the desired language.
- Add custom names in Settings > Style Configurator to get highlighting you desire.
Editing the API XML file
The API XML files are located in your installation directory \plugins\APIs. I believe there is a file for each language that has a parser. That parser will determine which pieces of the XML file are required or ignored.
These files are very fragile so here are some tips:
- All entries MUST be in alphabetically order by KeyWord or it will silently fail.
- Watch out for text that makes your XML invalid in descriptions. From what I can tell Notepad++ doesn't have a schema to tell it that attributes are of type string so all kinds of characters will break the XML and your tips.
- Any problems with the XML file will silently fail the tips.
I have used this technique to support a custom API used by a game engine I am working with and it works great. I have an excel spreadsheet to manage entries and create properly formatted XML to be pasted into the correct section of the file, but obviously there are many ways that managing that could be done.
I figured all this out based on these sources:
- http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Editing_Configuration_Files#API_files
- http://retroaffect.com/blog/190/A_Lua_Language_File_for_Notepad__/#b
- (The API file here you can download has the Environment tag in the wrong place, it should be within the AutoComplete tag instead, but it helped me understand the usage.)
Editing the Style Configurator
Screen adding new key word: myNewKeyword

Final result after adding math.tanh with highlighting
