__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
// Depends on htmlhint.js from http://htmlhint.com/js/htmlhint.js
// declare global: HTMLHint
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("htmlhint"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "htmlhint"], mod);
else // Plain browser env
mod(CodeMirror, window.HTMLHint);
})(function(CodeMirror, HTMLHint) {
"use strict";
var defaultRules = {
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": true,
"doctype-first": false,
"tag-pair": true,
"spec-char-escape": true,
"id-unique": true,
"src-not-empty": true,
"attr-no-duplication": true
};
CodeMirror.registerHelper("lint", "html", function(text, options) {
var found = [];
if (HTMLHint && !HTMLHint.verify) {
if(typeof HTMLHint.default !== 'undefined') {
HTMLHint = HTMLHint.default;
} else {
HTMLHint = HTMLHint.HTMLHint;
}
}
if (!HTMLHint) HTMLHint = window.HTMLHint;
if (!HTMLHint) {
if (window.console) {
window.console.error("Error: HTMLHint not found, not defined on window, or not available through define/require, CodeMirror HTML linting cannot run.");
}
return found;
}
var messages = HTMLHint.verify(text, options && options.rules || defaultRules);
for (var i = 0; i < messages.length; i++) {
var message = messages[i];
var startLine = message.line - 1, endLine = message.line - 1, startCol = message.col - 1, endCol = message.col;
found.push({
from: CodeMirror.Pos(startLine, startCol),
to: CodeMirror.Pos(endLine, endCol),
message: message.message,
severity : message.type
});
}
return found;
});
});
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| coffeescript-lint.js | File | 1.43 KB | 0664 |
|
| coffeescript-lint.min.js | File | 758 B | 0664 |
|
| coffeescript-lint.min.js.gz | File | 416 B | 0664 |
|
| css-lint.js | File | 1.28 KB | 0664 |
|
| css-lint.min.js | File | 612 B | 0664 |
|
| css-lint.min.js.gz | File | 380 B | 0664 |
|
| html-lint.js | File | 1.94 KB | 0664 |
|
| html-lint.min.js | File | 972 B | 0664 |
|
| html-lint.min.js.gz | File | 556 B | 0664 |
|
| javascript-lint.js | File | 2.11 KB | 0664 |
|
| javascript-lint.min.js | File | 928 B | 0664 |
|
| javascript-lint.min.js.gz | File | 552 B | 0664 |
|
| json-lint.js | File | 1.3 KB | 0664 |
|
| json-lint.min.js | File | 627 B | 0664 |
|
| json-lint.min.js.gz | File | 359 B | 0664 |
|
| lint.css | File | 2.96 KB | 0664 |
|
| lint.js | File | 9.61 KB | 0664 |
|
| lint.min.js | File | 5 KB | 0664 |
|
| lint.min.js.gz | File | 2 KB | 0664 |
|
| yaml-lint.js | File | 1.23 KB | 0664 |
|
| yaml-lint.min.js | File | 541 B | 0664 |
|
| yaml-lint.min.js.gz | File | 342 B | 0664 |
|