8

Textmate grammar (.tmLanguage files) are sometimes expressed in XML format.

I would like to convert to a more readable format (i.e. JSON or YAML) to integrate in a VS Code Syntax Highlighting Extension.

To clarify what I mean, here are a few examples:

I could write a script in Python to do that but it would save me some time if such converter already exists.

Thanks

Gama11
  • 31,714
  • 9
  • 78
  • 100
Jean-Francois T.
  • 11,549
  • 7
  • 68
  • 107

1 Answers1

12

The TextMate Languages extension has some commands built-in for this. Screenshot from the readme:

Gama11
  • 31,714
  • 9
  • 78
  • 100