codemirror live syntax highlighting: extend for {tags}
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 开发者_Python百科can extend codemirror to flag those tags in red?
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
精彩评论