how to use the mark decoration

I want to customize some key characters for Chinese symbols that are different font colors

there is a pic like this


how can i set the mark decoration?

much thx! @marijn

Are you using Lezer? If so, you can just style nodes in your syntax tree Lezer Highlighting Example

If you’re not using Lezer, you should start using it. Lezer will make it easier to implement that autocomplete popdown in the screenshot.

thx for reply !!
what you mean is use the syntaxHighlighting?
could you get a code example to me? i don konw how to define the characters to highlight
just like i want to input the ‘abc’ highlight :innocent:

thx all it works
i use custom theme and lang to complete :+1: :+1: