20
10
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?
1
In teh past I have been followed this tutorial to add my own custom highlighting: http://weblogs.asp.net/jgalloway/archive/2006/11/25/creating-a-user-defined-language-in-notepad.aspx Hope this help
– Angelodev – 2010-07-07T14:11:12.697I don't see a "default keyword color" in Notepad++, although there is a default style that includes all text. Assuming this is what you want, create your style, then open userDefineLang.XML and delete fgColor="xxxxxx" for the appropriate keyword group. This should allow you to use the default style color. – jdigital – 2012-05-26T19:35:20.110
One tip I have: always refer to using Notepad++ "Plugin Manager" first before assuming there is any functionality not already there. – djangofan – 2012-06-19T23:33:23.420