up vote 7 down vote favorite
2
share [g+] share [fb]

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?

link|improve this question
feedback

1 Answer

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.