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
In teh past I have been followed this tutorial to add my own custom highlighting: weblogs.asp.net/jgalloway/archive/2006/11/25/… Hope this help – Angelodev Jul 7 '10 at 14:11
I 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 May 26 at 19:35
feedback

1 Answer

It is possible;

I have found an answer that may or may not be helpful depending on how much time you currently have. I found out that in ©Notepad++, you can define your own unique format of a language and have it highlighted however you please, on the contrary of having to input all that you would have to do, it may be a very time consuming and tedious process. However here are the instructions:

1. View>User Defined Language>Create New>[NAME]>Enter

After that you must read my source of this information for adding your own techniques etc. and may the best of luck be with you!


Source(s):

weblogs.asp.net

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.