在 Monarch 中编写 Visual Studio 代码语法
Writing Visual Studio Code Syntaxes in Monarch
VSCode documentation contains details on how to create new colorizers using .tmLanguage
files. The Monaco editor which VSCode uses has support for defining syntax highlighters using the JSON-based Monarch format,但我看不到如何使用 Monarch 在 VSCode 扩展中定义语法。
有没有办法使用 Monarch 格式而不是 textmate 风格的语言文件来定义新的 VSCode 语法?
不,VSCode目前只支持.tmLanguage
格式。引用 #216 中的一位团队成员:
First we had Monarch support as well, but before the API deadline decided to go fully for text mate to keep the API simple.
VSCode documentation contains details on how to create new colorizers using .tmLanguage
files. The Monaco editor which VSCode uses has support for defining syntax highlighters using the JSON-based Monarch format,但我看不到如何使用 Monarch 在 VSCode 扩展中定义语法。
有没有办法使用 Monarch 格式而不是 textmate 风格的语言文件来定义新的 VSCode 语法?
不,VSCode目前只支持.tmLanguage
格式。引用 #216 中的一位团队成员:
First we had Monarch support as well, but before the API deadline decided to go fully for text mate to keep the API simple.