Sha256: 3d83d878f1aa41098172f1a42ac61ca974219fb6ef18cbc2e8a2ee61e4e7f2b0
Contents?: true
Size: 527 Bytes
Versions: 14
Compression:
Stored size: 527 Bytes
Contents
// Depends on jsonlint.js from https://github.com/zaach/jsonlint CodeMirror.registerHelper("lint", "json", function(text) { var found = []; jsonlint.parseError = function(str, hash) { var loc = hash.loc; found.push({from: CodeMirror.Pos(loc.first_line - 1, loc.first_column), to: CodeMirror.Pos(loc.last_line - 1, loc.last_column), message: str}); }; try { jsonlint.parse(text); } catch(e) {} return found; }); CodeMirror.jsonValidator = CodeMirror.lint.json; // deprecated
Version data entries
14 entries across 14 versions & 2 rubygems