PluginProbe ʕ •ᴥ•ʔ
SiteOrigin CSS / 1.1.2
SiteOrigin CSS v1.1.2
1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.10 1.5.11 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0
so-css / lib / codemirror / addon / lint / html-lint.js
so-css / lib / codemirror / addon / lint Last commit date
coffeescript-lint.js 11 years ago coffeescript-lint.min.js 9 years ago css-lint.js 10 years ago css-lint.min.js 10 years ago html-lint.js 10 years ago html-lint.min.js 10 years ago javascript-lint.js 11 years ago javascript-lint.min.js 9 years ago json-lint.js 11 years ago json-lint.min.js 9 years ago lint.css 11 years ago lint.js 10 years ago lint.min.js 9 years ago yaml-lint.js 11 years ago yaml-lint.min.js 9 years ago
html-lint.js
47 lines
1 // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 // Distributed under an MIT license: http://codemirror.net/LICENSE
3
4 // Depends on htmlhint.js from http://htmlhint.com/js/htmlhint.js
5
6 // declare global: HTMLHint
7
8 (function(mod) {
9 if (typeof exports == "object" && typeof module == "object") // CommonJS
10 mod(require("../../lib/codemirror"), require("htmlhint"));
11 else if (typeof define == "function" && define.amd) // AMD
12 define(["../../lib/codemirror", "htmlhint"], mod);
13 else // Plain browser env
14 mod(CodeMirror);
15 })(function(CodeMirror) {
16 "use strict";
17
18 var defaultRules = {
19 "tagname-lowercase": true,
20 "attr-lowercase": true,
21 "attr-value-double-quotes": true,
22 "doctype-first": false,
23 "tag-pair": true,
24 "spec-char-escape": true,
25 "id-unique": true,
26 "src-not-empty": true,
27 "attr-no-duplication": true
28 };
29
30 CodeMirror.registerHelper("lint", "html", function(text, options) {
31 var found = [];
32 if (!window.HTMLHint) return found;
33 var messages = HTMLHint.verify(text, options && options.rules || defaultRules);
34 for (var i = 0; i < messages.length; i++) {
35 var message = messages[i];
36 var startLine = message.line - 1, endLine = message.line - 1, startCol = message.col - 1, endCol = message.col;
37 found.push({
38 from: CodeMirror.Pos(startLine, startCol),
39 to: CodeMirror.Pos(endLine, endCol),
40 message: message.message,
41 severity : message.type
42 });
43 }
44 return found;
45 });
46 });
47