简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM