Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing Visual Studio Code Syntaxes in Monarch

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?

like image 643
ajshort Avatar asked Jun 21 '16 06:06

ajshort


People also ask

How do I change the shortcut key in VS Code?

Advanced customization To configure keyboard shortcuts through the JSON file, open Keyboard Shortcuts editor and select the Open Keyboard Shortcuts (JSON) button on the right of the editor title bar. This will open your keybindings.json file where you can overwrite the Default Keyboard Shortcuts.

How do I get multiple cursors in VS Code?

Multiple selections (multi-cursor) A common way to add more cursors is with Shift+Alt+Down or Shift+Alt+Up that insert cursors below or above.


1 Answers

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.

like image 148
Gama11 Avatar answered Nov 25 '22 06:11

Gama11