开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜