代码镜像。 htmlmixed 模式下的 lint

codemirror. lint in htmlmixed mode

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

{
  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?

您可以添加插件 htmlmixed-lint.js from the codemiror based collaborative editor codepad