This is an update to my Notepad++ User Defined Language file for Twine 2 Sugarcube 2. It now comes in light and dark versions:
You can download both files from this GitHub repository: https://github.com/varlance/npp-twine2-udl
- Numbers are now bolded.
- <br> added as an operator.
- Dark mode version of file added.
This is v1.01 of each file, which are provided as is. Please feel free to modify these files and distribute them or your own modified versions. You do not need to attribute them or seek my permission.
If you need to download Notepad++ the link is here.
How to use
To install a user defined language in Notepad++, simply copy and paste the relevant file into your Notepad++ user defined languages folder. On my system, it is in the following location:
Refer to the Notepad++ documentation on UDLs if you’re not sure where to find this folder.
You do not need to rename the file. Once the file has been pasted into the UDL folder, simply close and reopen Notepad++. You should now see the option to select the language e.g. ‘Twine 2 Sugarcube 2 light (Varlance) v1.01’ from the Language menu in Notepad++.
Once selected, the language applies to the currently open file in Notepad++ and you will see your Sugarcube 2 code highlighted.
(To switch Notepad++ from light to dark, you can go to Settings > Style Configurator and change the theme from the default to “Deep Black”.)
You can try out John Ayliff’s version using these links:
- John Ayliff’s Twine Sugarcube UDL (2017-12-11 to 2017-12-20 according to this discussion):
- Claretta’s Twine Sugarcube UDL (2015-04-28): https://twinery.org/forum/discussion/2670/sugarcube-notepad-language, however the dropbox link provided no longer works. If anyone knows where to obtain a copy, let me know.