Dear All,
I have just installed Notepad++ 5.0.3 in my system. Can anyone tell me how to configure Notepad++ for supporting my own language that I develop.? Awaiting for your reply. Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There's the easy but less flexible way, and there's the hard way.
The easy way is to User Define Dialog (one of the buttons on the toolbar), which allows you to defile general syntax in a limited fashion.
This saves the new language definition and style to your user's userDefineLang.xml.
If you need more flexible syntax recognition than is provided by the User Define Dialog, I don't think that langs.xml (in the NP++ Program Files directory) offers any more flexible syntax. Instead, you need to delve into the scintilla syntax lexer code (c++) and create a new lexer for your language.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Go to your installed dir of NPP and find langs.xml. You will have to add an entry of your language to this file. At the end of this file, there is a commented section given as a reference. Make sure, you re fire NPP after saving the file.
Cheers,
Sam
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear All,
I have just installed Notepad++ 5.0.3 in my system. Can anyone tell me how to configure Notepad++ for supporting my own language that I develop.? Awaiting for your reply. Thanks in advance.
There's the easy but less flexible way, and there's the hard way.
The easy way is to User Define Dialog (one of the buttons on the toolbar), which allows you to defile general syntax in a limited fashion.
This saves the new language definition and style to your user's userDefineLang.xml.
If you need more flexible syntax recognition than is provided by the User Define Dialog, I don't think that langs.xml (in the NP++ Program Files directory) offers any more flexible syntax. Instead, you need to delve into the scintilla syntax lexer code (c++) and create a new lexer for your language.
Hello Satyan,
Go to your installed dir of NPP and find langs.xml. You will have to add an entry of your language to this file. At the end of this file, there is a commented section given as a reference. Make sure, you re fire NPP after saving the file.
Cheers,
Sam