If you prefer Notepad++ (NPP) as a thinkScript editor, I hope you will find the attached files to implement a User Defined Language (UDL) useful. Once installed, the following capabilities are enabled
- Syntax highlighting
- AutoComplete for thinkScript language elements
If a thinkscript language element is not highlighted in the proper color, you should probably look at it.
This will not stop you from coding badly or mismatching parameters, but it will make certain errors jump out.
A few notes:
- This was developed for a Light Themed screen. If you want dark themed, you will need to adjust colors appropriately. NPP help has lots of information about UDLs and setting colors. Who ever takes this on should submit it back to NPP or to me and I will submit it to them.
- I have submitted this to NPP and suspect they will incorporate it in a future build as the 91st language they support.
Manual Installation instructions are as follows
What this UDL (User Defined Language) does
1) Provides Syntax based highlighting of proper language elements
2) Provides Autocomplete source by language keywords
How to Install the UDL
1) Use Notepad++'s Language > User Defined Language > Open User Defined Language folder... menu entry to find the right userDefineLangs\ folder
Place the file thinkScript.xml in that folder.
2) Locate the installation folder for Notepad++. It should be something like C:\Program Files\Notepad++. You will note multiple folders in that folder. Notice "autoCompletion" and "functionlist"
3) Rename autoComplete.xml to thinkScript.xml (i know) and deposit it in the autoComplete folder
4) Rename functionlist.xml to thinkScript.xml (i know) and deposit it in the functionlist folder
5) Enter the functionlist foldere and rename overrideMap.xml to something else
6) Deposit overrideMap.xml I sent you in the functionlist folder.
7) Restart Notepad++
When you open a file with the extension of "ts", it should apply the UDL. You can manually invoke the UDL from the Language menu. You can also select "None" to disable the Syntax highlighting.
Should you decide to back out, just delete the 3 thinkscript.xml files, delete the overrideMap.xml file and restore your original overrideMap.xml.