Monaco-editor: Documentation: How to add diagnostic options to a custom language?

Created on 11 Oct 2016  路  1Comment  路  Source: microsoft/monaco-editor

I'm trying to integrate a new language (built from ANtlr4) into Monaco editor. I was able to try out registering onComplete, hoverHandler etc and I also get the idea on creating a tokenizer. But how can I do syntax validation for this language? I saw sample https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-configure-javascript-defaults where you can set diagnostic options. How can I do the same to a custom language?

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Panhaiwei picture Panhaiwei  路  3Comments

poloten4uk picture poloten4uk  路  3Comments

fabiospampinato picture fabiospampinato  路  3Comments

Spongman picture Spongman  路  3Comments

Kang-Jun-sik picture Kang-Jun-sik  路  3Comments