I want to do custom syntax highlight for words in CodeMirror and track values in handlebars and show a color depending if the value is correct or not.
so {{true}} would show green, and {{false}} would show in red.
A sentence of “Hello this is {{true}} and {{false}}” would have the words in the handlebars stylized accordingly.
What is the simplest way to implement this, do I need to do a custom grammar or is there an easier method?