Sam
Sam

Reputation: 855

Monaco editor How to add custom language parser and syntax validation

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.

Upvotes: 5

Views: 2394

Answers (1)

beonoway
beonoway

Reputation: 1

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.

Upvotes: 0

Related Questions