首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >暗号。混合模式下的lint

暗号。混合模式下的lint
EN

Stack Overflow用户
提问于 2018-08-28 12:06:19
回答 1查看 817关注 0票数 2

我创建一个具有以下参数的textarea:

代码语言:javascript
复制
{
  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?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-11-30 11:04:41

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52057488

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档