1

Is there a possibility to make CodeMirror highlight different languages in multi-mode differently?
I want such classes to apply:

.cm-s-default .cm-string-html {color: blue;}
.cm-s-default .cm-string {color: #170;}

When CodeMirror highlights the code, it leaves the same class names for the strings, comments and other objects in all languages, but I prefer to have them highlighted differently.

4

1 回答 1

0

目前没有方便的方法来做到这一点,但是稍微摆弄一下,您可以包装内部 XML 模式以将字符串附加"-html"到所有标记样式中。

于 2013-02-12T09:53:22.143 回答