DEV Community


Discussion on: Extend Language Configuration in Monaco Editor

vikyd profile image
VikydZhang • Edited

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

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 -