设置语法高光
Notepad++
For Notepad++, define a custom language for Squirrel. Luckily, samisalreadytaken has written a squirrel highlighter.
Download Squirrel.xml
At the top, edit ' ext="nut" ' to ' ext="nut gnut" ' so it works with gnut files as well
Open Notepad++
Navigate to Language > User Defined Language > Define your language
Click import, and select Squirrel.xml
(If the colors/style are not to your taste)
Select 'Squirrel' in User Language at the top
Navigate through the tabs to find what you want to change
Click its 'Styler' button and make the changes you wish to
VSCode
VSCode has extensions avaliable for working with squirrel, and searching "squirrel" in the extensions marketplace will give you them.
However, installing this will only create an associastion for .nut files, and not .gnut files. To fix this:
Open a .gnut file
Do CTRL+K, M (not CTRL+K, CTRL+M)
Select 'Configure File Association for .gnut'
Select 'Squirrel' (only appears if you have the extension)
最后更新于