【问题标题】:codemirror. lint in htmlmixed mode代码镜像。 htmlmixed 模式下的 lint
【发布时间】:2018-08-28 12:06:19
【问题描述】:

我用这样的参数创建了一个文本区域:

{
  lineNumbers: true,
  dragDrop: true,
  mode: "htmlmixed",
  theme: 'bespin',
  autoCloseBrackets: true,
  autoCloseTags: true,
  matchBrackets: {
    afterCursor: true,
    maxScanLines: 10000,
    maxScanLineLength: 100000
  },
  foldGutter: true,
  gutters: ["CodeMirror-lint-markers", "CodeMirror-linenumbers", "CodeMirror-foldgutter"],
  lint: true,
  matchTags: {
    bothTags: true
  }
}

但分析只针对html。

是否可以让linter分析html、css和js?

【问题讨论】:

    标签: javascript html codemirror


    【解决方案1】:

    您可以从基于 codemiror 的协作编辑器 codepad 添加插件 htmlmixed-lint.js

    【讨论】:

      猜你喜欢
      • 2015-06-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-01
      • 2022-07-19
      相关资源
      最近更新 更多