PineScript integration with Notepad++ (NPP). Supports PineScript v6 as of January 2026. Provides autocompletion, function list and syntax highlighting for *.pine files
- Pine Editor doesn't provide function list yet
- Pine Editor doesn't allow changing fonts or syntax colors
Included userDefineLangs\PineScript.xml and EnhanceAnyLexerConfig.ini together define a color scheme as close to current color scheme of Pine Editor as is possible in NPP. You can change the colors to suit your needs better. For example, EnhanceAnyLexerConfig-user-violet.ini changes all user-defined functions to be colored the same way Pine Editor colors imported functions.
Also Dark Mode users (on Windows) might not know that Pine Editor uses Bold for types because it also uses Consolas font which has very thin Bold. Changing a font will make (standard) types stand out more.
Default looks with included theme
Alternate enhancer config and a different font

- Download this repo as zip and unpack somewhere
- Copy
userDefineLangs\PineScript.xmlto%AppData%\Notepad++\userDefineLangs\ - Copy
autoCompletion\PineScript.xmltoc:\Program Files\Notepad++\autoCompletion\PineScript.xmlor wherever you installed NPP - Copy
functionList\PineScript.xmlto%AppData%\Notepad++\functionList\ - Add string
<association id= "PineScript.xml" userDefinedLangName="PineScript"/>toc:\Program Files\Notepad++\functionList\overrideMap.xmlafter the<!-- ==================== User Defined Languages ============================ -->string
Steps 3 and 5 will need elevation.
After this optionally do any of these:
- Highly recommended: install
EnhanceAnyLexerplugin through NPP-Plugins-Plugins Admin... and create%AppData%\Notepad++\plugins\config\EnhanceAnyLexer\EnhanceAnyLexerConfig.iniusing one ofplugins\config\EnhanceAnyLexer\EnhanceAnyLexerConfig*.ini. This would greatly improve highlighting:- Highlights standard library method calls
- Highlights unknown parameter names in red
- Highlights colors as constants (otherwise - as numbers)
- Highlights imports
- Rehighlights functions with names colliding with variable and type names (otherwise functions like
intwould be colored as types)
- Copy
themes\DansLeRuSH-Dark.xmlto%AppData%\Notepad++\themes\. It is a changed version of the theme shipped with NPP. Selection is more legible, background is set to 0 (as in Dark Mode of Pine Editor), font is set to Consolas (as in Pine Editor on Windows)
After all of this restart Notepad++ and optionally select a theme via NPP-Settings-Style Configurator... Default NPP (light) theme should work, as well as provided DansLeRuSH-Dark.xml theme and themes like vim Dark Blue, Hello Kitty and Zenburn
I believe you can just unpack the folders from the downloaded repo zip into the installation folder, thus merging the folder structure. If not, please consult NPP help.
- My UDL supports coloring of
str.formatplaceholders. This can malfunction if you construct format strings from other strings. Also if you type{by mistake anywhere in the code the effects would be unexpected and probably funny. If this additional feature gets in your way, disable it buy going to NPP-Language-User Defined Language-Define Your Language-PineScript-Operators & Delimiters and removing{and}fromDelimiter 3 - Comments ending in
,may trigger erroneous coloring of the left hand side of the following assignment @version=isn't bolded like other directives because of UDL limitations.- Floats ending in
.are not highlighted because of UDL limitations.