是否可以在CodeMirror 2中包含多个模式?

时间:2012-07-31 23:44:28

标签: javascript codemirror

是否可以在CodeMirror 2实例中包含两种或更多模式?

e.g。

var editor = CodeMirror.fromTextArea(document.getElementById("editor"), {
    value: "Hello World",
    mode: "css", "html", "javascript"
  });

1 个答案:

答案 0 :(得分:1)

只需使用htmlmixed模式即可。这取决于xmljavascriptcss模式。

相关问题