What's the easiest way to add a custom language to Notepad++ for highlighting support? After some research, I see two ways:
- User-Defined Language: simple way of adding a new language based on tokens, but can't use the default color scheme (colors are assigned absolutely)?
- Lexer plugin: A custom C++ plugin implementing a new Scintilla lexer: extremely complex, but tons of flexibility.
Are these it? My one complaint is that with the UDL feature, if I want something to be highlighted, I need to assign it a color; there doesn't seem to be any way to say "use the default keyword color".
Any advice?
Best Answer
If you are talking about using the colors based on those set in the
Settings > Style Configurator...
for the default keyword color...You can do this by right-clicking on the color in the
Colour style
section. It will place hatch lines over the color to indicate "use default color".Now when you change the color theme the theme's color will be used instead of the UDL defined color.