Notepad++ syntax-highlighting for Ink files
Just a simple XML file to import as User Defined Language in Notepad++ which allows syntax highlighting of files written in Ink.
There are still some minor issues I wasn't able to work out, such as variable assigments being interpreted as stiches or closing brackets following a redirection get dropped. So instead of
{ putcomponentintent: -> put_component_inside_tent }
it's better to have the closing bracket on the following line:
{ putcomponentintent: -> put_component_inside_tent
}
- Download the ink_npp.xml file
- Open Notepad++
- In the menu bar, click "Languages" and to the bottom, "Define your language..."
- Click "Import"
- Select and open the
ink_npp.xml
file you downloaded before - Close the Language Definition Window.
Each time you want to highlight Ink markup, just select it from the Language menu. It will be at the bottom with the other user defined styles. If you open files with an .ink extension, they will get recognized as such automatically.
(from the Notepad++ website)
- Download the user-defined language to your computer
- Open the file with your favourite text editor (such as Notepad++ or notepad)
- Click start, run, type (or paste in)
%APPDATA%\Notepad++
then click ok - Open
userDefineLang.xml
with a text editor - If this is the first userdefined language you are adding, copy/paste the entire first file (which you downloaded) into the userDefineLang.xml, replacing all that was there. If this is the second or more language you add, simply copy everything from the first file starting at
<UserLang...>
to</UserLang>
and paste it at the end of theuserDefineLang.xml
right before</NotepadPlus>
- Save the newly improved
userDefineLang.xml