简体   繁体   English

代码镜像。 htmlmixed 模式下的 lint

[英]codemirror. lint in htmlmixed mode

I create a textarea with such parameters:我用这样的参数创建了一个文本区域:

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

but the analysis is only for html.但分析仅适用于 html。

Is it possible to make so that the linter analyzed html, css and js?是否可以让 linter 分析 html、css 和 js?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM