Styling specific words

I want to change color of specific words if present in the editor, how can we do that

See decorations. Unless this word is a syntactic category in your languageā€™s parse tree, in which case you could maybe use syntax highlighting for this.