DEV Community

loading...

Discussion on: Extend Language Configuration in Monaco Editor

Collapse
vikyd profile image
VikydZhang • Edited

languages json, plaintext do not have loader function, how to add custom tokenizer to json ?

Collapse
pranomvignesh profile image
Pranom Vignesh Author

This example is done for the monaco-editor@0.20.0. In the latest version of monaco-editor@0.21.2 , They have added a new API 'registerDocumentSemanticTokensProvider'.
Please refer this link - microsoft.github.io/monaco-editor/...