From cc101f8f6242211fa42a6e8391956df071065f04 Mon Sep 17 00:00:00 2001 From: AdobeWallHacks Date: Wed, 5 Jan 2022 15:50:18 -0500 Subject: Added syntax highlighting instructional. --- docs/modding/squirrel/setup-syntax-highlighting.md | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/modding/squirrel/setup-syntax-highlighting.md (limited to 'docs') diff --git a/docs/modding/squirrel/setup-syntax-highlighting.md b/docs/modding/squirrel/setup-syntax-highlighting.md new file mode 100644 index 0000000..489976b --- /dev/null +++ b/docs/modding/squirrel/setup-syntax-highlighting.md @@ -0,0 +1,24 @@ +# Syntax Highlighting +## Notepad++ +For Notepad++, define a custom language for Squirrel. +Luckily, [samisalreadytaken has written a squirrel highlighter](https://gist.github.com/samisalreadytaken/5bcf322332074f31545ccb6651b88f2d#file-squirrel-xml). +1. Download Squirrel.xml +2. At the top, edit ' ext="nut" ' to ' ext="nut gnut" ' so it works with gnut files as well. +3. Open Notepad++ +4. Navigate to Language > User Defined Language > Define your language +5. Click import, and select Squirrel.xml +(If the colors/style are not to your taste) +6. Select 'Squirrel' in User Language at the top +7. Navigate through the tabs to find what you want to change +8. 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: +1. Open a .gnut file. +2. Do CTRL+K, M (not CTRL+K, CTRL+M) +3. Select 'Configure File Association for .gnut' +4. Select 'Squirrel' (only appears if you have the extension) +5. Done! \ No newline at end of file -- cgit v1.2.3 From a92260bc8421a439ce6640ca713dd9619b2bd13f Mon Sep 17 00:00:00 2001 From: AdobeWallHacks Date: Wed, 5 Jan 2022 15:51:44 -0500 Subject: Update setup-syntax-highlighting.md --- docs/modding/squirrel/setup-syntax-highlighting.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/modding/squirrel/setup-syntax-highlighting.md b/docs/modding/squirrel/setup-syntax-highlighting.md index 489976b..cec72f7 100644 --- a/docs/modding/squirrel/setup-syntax-highlighting.md +++ b/docs/modding/squirrel/setup-syntax-highlighting.md @@ -7,6 +7,7 @@ Luckily, [samisalreadytaken has written a squirrel highlighter](https://gist.git 3. Open Notepad++ 4. Navigate to Language > User Defined Language > Define your language 5. Click import, and select Squirrel.xml + (If the colors/style are not to your taste) 6. Select 'Squirrel' in User Language at the top 7. Navigate through the tabs to find what you want to change -- cgit v1.2.3 From 128e01520a7ff23db0293578ebde308948162350 Mon Sep 17 00:00:00 2001 From: AdobeWallHacks Date: Wed, 5 Jan 2022 15:52:10 -0500 Subject: Update setup-syntax-highlighting.md --- docs/modding/squirrel/setup-syntax-highlighting.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/modding/squirrel/setup-syntax-highlighting.md b/docs/modding/squirrel/setup-syntax-highlighting.md index cec72f7..90ed14b 100644 --- a/docs/modding/squirrel/setup-syntax-highlighting.md +++ b/docs/modding/squirrel/setup-syntax-highlighting.md @@ -9,9 +9,9 @@ Luckily, [samisalreadytaken has written a squirrel highlighter](https://gist.git 5. Click import, and select Squirrel.xml (If the colors/style are not to your taste) -6. Select 'Squirrel' in User Language at the top -7. Navigate through the tabs to find what you want to change -8. Click its 'Styler' button and make the changes you wish to. +1. Select 'Squirrel' in User Language at the top +2. Navigate through the tabs to find what you want to change +3. 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. -- cgit v1.2.3 From 54277d8dc36dc640987f0eae6db185c99156ce17 Mon Sep 17 00:00:00 2001 From: AdobeWallHacks Date: Wed, 5 Jan 2022 15:52:44 -0500 Subject: Update setup-syntax-highlighting.md --- docs/modding/squirrel/setup-syntax-highlighting.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/modding/squirrel/setup-syntax-highlighting.md b/docs/modding/squirrel/setup-syntax-highlighting.md index 90ed14b..e0ec465 100644 --- a/docs/modding/squirrel/setup-syntax-highlighting.md +++ b/docs/modding/squirrel/setup-syntax-highlighting.md @@ -3,7 +3,7 @@ For Notepad++, define a custom language for Squirrel. Luckily, [samisalreadytaken has written a squirrel highlighter](https://gist.github.com/samisalreadytaken/5bcf322332074f31545ccb6651b88f2d#file-squirrel-xml). 1. Download Squirrel.xml -2. At the top, edit ' ext="nut" ' to ' ext="nut gnut" ' so it works with gnut files as well. +2. At the top, edit ' ext="nut" ' to ' ext="nut gnut" ' so it works with gnut files as well 3. Open Notepad++ 4. Navigate to Language > User Defined Language > Define your language 5. Click import, and select Squirrel.xml @@ -11,15 +11,14 @@ Luckily, [samisalreadytaken has written a squirrel highlighter](https://gist.git (If the colors/style are not to your taste) 1. Select 'Squirrel' in User Language at the top 2. Navigate through the tabs to find what you want to change -3. Click its 'Styler' button and make the changes you wish to. +3. 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: -1. Open a .gnut file. +1. Open a .gnut file 2. Do CTRL+K, M (not CTRL+K, CTRL+M) 3. Select 'Configure File Association for .gnut' -4. Select 'Squirrel' (only appears if you have the extension) -5. Done! \ No newline at end of file +4. Select 'Squirrel' (only appears if you have the extension) \ No newline at end of file -- cgit v1.2.3 From 1c41ddab6e9e90ccb970a2885f97a3ec99a0dc43 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Thu, 6 Jan 2022 21:27:37 +0100 Subject: Add entry for syntax highlighting page in sidebar --- docs/SUMMARY.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index 89e0cd6..f242f23 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -35,6 +35,7 @@ * [Tutorials](modding/tutorials/modding-tutorials.md) * [Cheatsheet](modding/cheatsheet.md) * [Squirrel](modding/squirrel/what-is-squirrel.md) +* [Setup Syntax Highlighting](modding/squirrel/setup-syntax-highlighting.md) * [Localisation](modding/localisation_files.md) *** -- cgit v1.2.3