-2

Monaco editor Is there any example how to write validation for custom language ?

For example i need to write error for unused words (words is dynamic)

ButuzGOL
  • 1,233
  • 2
  • 13
  • 27

1 Answers1

1

Your question is rather vague but here is an example that shows how to validate if typescript is all written in lowercase instead of TypeScript.

rcjsuen
  • 873
  • 1
  • 6
  • 12
  • This is for VSCode. For Monaco which is browser based, the problem is there is no standard language server/client api? – PeiSong Jan 11 '19 at 03:39
  • If you're trying to use a language server, you can try looking into TypeFox's monaco-languageclient project. https://github.com/TypeFox/monaco-languageclient – rcjsuen Jan 12 '19 at 10:40