Reputation: 17581
I have implemented Codemirror http://marijn.haverbeke.nl/codemirror/ to work as a live text editor within an application and it works perfect.
The only thing I would love to do is create a custom color (e.g. red) for tags used in our system.
We would be using tags like {something here} or {{something here}}
doe anyone know how I can extend codemirror to flag those tags in red?
Upvotes: 1
Views: 2999
Reputation: 14870
I think you have to implement your own parser resp. extend an existing one.
Manual on how to implement a parser: http://marijn.haverbeke.nl/codemirror/manual.html#writeparser
Upvotes: 3