Version 10 (modified by hopscc, 15 years ago) |
---|
This page contains information on how to get syntax highlighting and function list support in Notepad++.
Syntax Highlighting
To add syntax highlighting support copy the UserLang node for Cobra from the userDefinedLanguage.xml file attached below.
Place this XML node in the userDefinedLang.xml file at
%appdata%\Notepad++\userDefinedLang.xml
If this file does not exist then copy the entire file to the destination directory.
Note that the colors used are more geared towards themes with a darker background (the majority of them). This is so because the way user defined languages are handled at the moment is by explicitly setting the colors and not a class name. These colors might make it a bit hard to comfortably read text with the default theme, which has a background color of white.
To change your theme go to Settings >> Style Configurator.
For colors more suited to the default theme use the UserLang node for Cobra in the file userDefineLang-DefaultTheme.xml attached below.
Once again if the file userDefineLang.xml does not exist copy the entire file (userDefineLang-DefaultTheme.xml) and rename it to userDefineLang.xml.
FunctionList support
FunctionList is provided as a plugin for Notepad++ so first be sure to install the plugin. To install download the plugin from http://sourceforge.net/projects/npp-plugins/files/, unzip, then copy the DLL to
%programfiles%\Notepad++\plugins or %programfiles(x86)%\Notepad++\plugins if installed to the x86 Program Files directory on 64-bit Windows.
Next, copy the Language node for Cobra found in the FunctionListRules?.xml file attached below. Place this XML node in the FunctionListRules?.xml file at
%appdata%\Notepad++\plugins\config\FunctionListRules.xml
If the file does not exist then copy the entire file to the destination directory.
See Also
Attachments
- FunctionList.ini (160 bytes) - added by todd.a 15 years ago.
- FunctionListRules.xml (2.5 KB) - added by todd.a 15 years ago.
- userDefineLang.xml (3.6 KB) - added by todd.a 15 years ago.
- UserDefineLang-DefaultTheme.xml (3.6 KB) - added by hopscc 15 years ago.
- userDefineLang-Cobra-post6.2.xml (6.3 KB) - added by hopscc 12 years ago.