0

I'm looking into what would be the best option to extend VS code with an extension which add some more features to the JSON Format such as additional keyword highlighting.

What would be the best approach ?

  • Taking over the tmlanguage file for JSON and add additional options for eg syntax highlighting connected to a new language ?

  • "Extending" the JSON fomat ?

  • Custom linter ?

This looks my best bet I could find till now: Can a language in Visual Studio Code be extended?

Tnx in advance for giving advice what would be the best approach.

Tom C
  • 1

1 Answers1

0

It depends on what features do you want and how much time you would like to spend on it.

If the syntax highlighting is the main purpose, just get a tmLanguage file for the programming language and use the official generator yocode to create an extension from it.

Visual Studio Code and Microsoft behind it are promoting the Language Server Protocol which may be the ultimate solution. And of course, it requires much more work.

lwshang
  • 81
  • 4
  • Tnx a lot for the info ! Think i will start with a tmLanguage file to have something up and running more quickly. And in 2nd phase have a look into the anguage Server protocol. – Tom C May 09 '18 at 11:38