Writing Visual Studio Code Syntaxes in Monarch
Asked Answered
W

1

14

The 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, but I can't see how to use Monarch for defining syntaxes in VSCode extensions.

Is there a way to define a new VSCode syntax using the Monarch format rather than textmate style language files?

Winnipegosis answered 21/6, 2016 at 6:22 Comment(0)
N
5

No, VSCode currently only supports the .tmLanguage format. To quote one of the team members in #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.

Nissen answered 26/6, 2017 at 14:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.