> For the complete documentation index, see [llms.txt](https://r2northstar.gitbook.io/r2northstar-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://r2northstar.gitbook.io/r2northstar-wiki/chinese/modding-and-development/getting-started/setup-syntax-highlighting.md).

# 设置语法高光

## 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)

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.

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)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://r2northstar.gitbook.io/r2northstar-wiki/chinese/modding-and-development/getting-started/setup-syntax-highlighting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
