I am using Monaco editor in our project and I have issue I am not able to overcome.
At our scenario , user can add new words to the editor once he clicks on a button, for example, user has editor with language javascript and he now wants to add new word 'workTest', it should be highlighted in custom color.
How do I add new tokens to the editor with highlighted colors?
I already have my 'newTheme' with rules {token: 'asToken', foreground: 'FFA500', fontStyle: 'bold'}
How do I add the tokens to an existing language? I tried everything and nothing works.
question from:
https://stackoverflow.com/questions/65922242/new-tokens-to-existing-language 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…