X7ROOT File Manager
Current Path:
/home/notabjze/narcev.com/media/vendor/codemirror/addon/hint
home
/
notabjze
/
narcev.com
/
media
/
vendor
/
codemirror
/
addon
/
hint
/
ðŸ“
..
📄
anyword-hint.js
(1.64 KB)
📄
anyword-hint.min.js
(791 B)
📄
anyword-hint.min.js.gz
(506 B)
📄
css-hint.js
(2.52 KB)
📄
css-hint.min.js
(1.5 KB)
📄
css-hint.min.js.gz
(785 B)
📄
html-hint.js
(11.19 KB)
📄
html-hint.min.js
(7.54 KB)
📄
html-hint.min.js.gz
(2.93 KB)
📄
javascript-hint.js
(6.69 KB)
📄
javascript-hint.min.js
(3.21 KB)
📄
javascript-hint.min.js.gz
(1.44 KB)
📄
show-hint.css
(623 B)
📄
show-hint.js
(19.51 KB)
📄
show-hint.min.js
(10.6 KB)
📄
show-hint.min.js.gz
(3.76 KB)
📄
sql-hint.js
(9.38 KB)
📄
sql-hint.min.js
(3.6 KB)
📄
sql-hint.min.js.gz
(1.57 KB)
📄
xml-hint.js
(5.57 KB)
📄
xml-hint.min.js
(2.35 KB)
📄
xml-hint.min.js.gz
(1.15 KB)
Editing: anyword-hint.js
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; var WORD = /[\w$]+/, RANGE = 500; CodeMirror.registerHelper("hint", "anyword", function(editor, options) { var word = options && options.word || WORD; var range = options && options.range || RANGE; var cur = editor.getCursor(), curLine = editor.getLine(cur.line); var end = cur.ch, start = end; while (start && word.test(curLine.charAt(start - 1))) --start; var curWord = start != end && curLine.slice(start, end); var list = options && options.list || [], seen = {}; var re = new RegExp(word.source, "g"); for (var dir = -1; dir <= 1; dir += 2) { var line = cur.line, endLine = Math.min(Math.max(line + dir * range, editor.firstLine()), editor.lastLine()) + dir; for (; line != endLine; line += dir) { var text = editor.getLine(line), m; while (m = re.exec(text)) { if (line == cur.line && m[0] === curWord) continue; if ((!curWord || m[0].lastIndexOf(curWord, 0) == 0) && !Object.prototype.hasOwnProperty.call(seen, m[0])) { seen[m[0]] = true; list.push(m[0]); } } } } return {list: list, from: CodeMirror.Pos(cur.line, start), to: CodeMirror.Pos(cur.line, end)}; }); });
Upload File
Create Folder