Monaco editor How to add custom language parser and syntax validation

Viewed 1218

I am looking for documentation for defining custom language in Monaco editor.

I have searched for the document by didn't get any proper source.

I just want to define language similar to javascript like syntax where a user can define

functions, parameters (coming from json object), showing data suggestion coming from JSON. keywords highlighting, syntax validation

Is there any documentation which can help me

Please suggest me help.

1 Answers

Defining your language in monaco is quiet easy, here is official documentation. However Monaco can do validation on its own, only to:

  • TypeScript,
  • JavaScript,
  • HTML,
  • CSS.

To validate different languages you must write your plugin.

Related