我创建一个具有以下参数的textarea:
{
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?
发布于 2018-11-30 11:04:41
您可以从基于codemiror的协作编辑器htmlmixed-lint.js中添加addon htmlmixed-lint.js。
https://stackoverflow.com/questions/52057488
复制相似问题