Currently opening .sql files in Notepad++ results in Notepad applying SQL syntax highlighting to it. I'd like Notepad++ to do the same for other extensions as well, is there some setting where I can define this ?
|
|
When you open a file in notepad++ it will attempt to load syntax highlighting for the contents based on file extension. If you use custom extension for one of the existing languages you can add the custom extension in Settings -> Styler Configurator. Select language and add the extension in "User extension" edit box. To add multiple extensions separate them using space. You can also change syntax highlighting style by selecting a different language from language menu. |
|||||||||||||||
|
|
Find the langs.xml file, open it with Notepad++, find the line that begins with |
|||||||||||||||||||||
|
|
Settings > style configurator > select the language you want it to look like > add your extension in the user ext field |
|||||
|
|
To complete alex's answer, if you want to do this for a user-defined language, look for userDefineLang.xml and edit the ext="" part in the same way. |
|||
|
|
