🇨🇳
R2Northstar Wiki
Chinese
Chinese
  • 欢迎来到Northstar
  • 加入我们
  • 安装Northstar
    • 基础教程
    • 故障处理
  • Northstar用户手册
    • Mods(模组)
    • 服务器列表
    • 直连服务器
    • 游戏模式
    • 控制台指令
    • 启动参数
    • 在Linux上游玩
  • 常见问题解答
  • 使用 Northstar托管服务器
    • 前期准备
    • 托管私人比赛服务器
    • 托管独立的服务器端
      • 实践经验
      • 在Linux上托管服务器
    • 故障处理
    • 视频教程
  • 修改与开发教程
    • 开始修改
      • 基础修改
      • 教程
      • 参考列表
      • Squirrel(松鼠)脚本
        • 线程处理
        • 基础代码块
        • Respawn(重生)创建的函数
        • 表和数组
        • 回调函数
        • 游戏模式修改
          • 开始修改
        • 自定义设置
          • 关于mod.json文件
          • 关于本地化语言文件
          • 关于Mod(模组)文件
      • 设置语法高光
      • 本地化翻译
      • 收尾工作
    • 开发者
  • 其他
    • 特别感谢
由 GitBook 提供支持
在本页
  • Notepad++
  • VSCode
  1. 修改与开发教程
  2. 开始修改

设置语法高光

上一页关于Mod(模组)文件下一页本地化翻译

最后更新于3年前

Notepad++

For Notepad++, define a custom language for Squirrel. Luckily, .

  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)

samisalreadytaken has written a squirrel highlighter