and others
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/README.md:
--------------------------------------------------------------------------------
1 | # CodeMirror
2 | [](https://travis-ci.org/codemirror/CodeMirror)
3 | [](https://www.npmjs.org/package/codemirror)
4 | [Funding status: ](https://marijnhaverbeke.nl/fund/)
5 |
6 | CodeMirror is a JavaScript component that provides a code editor in
7 | the browser. When a mode is available for the language you are coding
8 | in, it will color your code, and optionally help with indentation.
9 |
10 | The project page is http://codemirror.net
11 | The manual is at http://codemirror.net/doc/manual.html
12 | The contributing guidelines are in [CONTRIBUTING.md](https://github.com/codemirror/CodeMirror/blob/master/CONTRIBUTING.md)
13 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/dialog/dialog.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-dialog {
2 | position: absolute;
3 | left: 0; right: 0;
4 | background: inherit;
5 | z-index: 15;
6 | padding: .1em .8em;
7 | overflow: hidden;
8 | color: inherit;
9 | }
10 |
11 | .CodeMirror-dialog-top {
12 | border-bottom: 1px solid #eee;
13 | top: 0;
14 | }
15 |
16 | .CodeMirror-dialog-bottom {
17 | border-top: 1px solid #eee;
18 | bottom: 0;
19 | }
20 |
21 | .CodeMirror-dialog input {
22 | border: none;
23 | outline: none;
24 | background: transparent;
25 | width: 20em;
26 | color: inherit;
27 | font-family: monospace;
28 | }
29 |
30 | .CodeMirror-dialog button {
31 | font-size: 70%;
32 | }
33 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/display/fullscreen.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-fullscreen {
2 | position: fixed;
3 | top: 0; left: 0; right: 0; bottom: 0;
4 | height: auto;
5 | z-index: 9;
6 | }
7 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/display/fullscreen.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineOption("fullScreen", false, function(cm, val, old) {
15 | if (old == CodeMirror.Init) old = false;
16 | if (!old == !val) return;
17 | if (val) setFullscreen(cm);
18 | else setNormal(cm);
19 | });
20 |
21 | function setFullscreen(cm) {
22 | var wrap = cm.getWrapperElement();
23 | cm.state.fullScreenRestore = {scrollTop: window.pageYOffset, scrollLeft: window.pageXOffset,
24 | width: wrap.style.width, height: wrap.style.height};
25 | wrap.style.width = "";
26 | wrap.style.height = "auto";
27 | wrap.className += " CodeMirror-fullscreen";
28 | document.documentElement.style.overflow = "hidden";
29 | cm.refresh();
30 | }
31 |
32 | function setNormal(cm) {
33 | var wrap = cm.getWrapperElement();
34 | wrap.className = wrap.className.replace(/\s*CodeMirror-fullscreen\b/, "");
35 | document.documentElement.style.overflow = "";
36 | var info = cm.state.fullScreenRestore;
37 | wrap.style.width = info.width; wrap.style.height = info.height;
38 | window.scrollTo(info.scrollLeft, info.scrollTop);
39 | cm.refresh();
40 | }
41 | });
42 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/display/placeholder.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | CodeMirror.defineOption("placeholder", "", function(cm, val, old) {
13 | var prev = old && old != CodeMirror.Init;
14 | if (val && !prev) {
15 | cm.on("blur", onBlur);
16 | cm.on("change", onChange);
17 | onChange(cm);
18 | } else if (!val && prev) {
19 | cm.off("blur", onBlur);
20 | cm.off("change", onChange);
21 | clearPlaceholder(cm);
22 | var wrapper = cm.getWrapperElement();
23 | wrapper.className = wrapper.className.replace(" CodeMirror-empty", "");
24 | }
25 |
26 | if (val && !cm.hasFocus()) onBlur(cm);
27 | });
28 |
29 | function clearPlaceholder(cm) {
30 | if (cm.state.placeholder) {
31 | cm.state.placeholder.parentNode.removeChild(cm.state.placeholder);
32 | cm.state.placeholder = null;
33 | }
34 | }
35 | function setPlaceholder(cm) {
36 | clearPlaceholder(cm);
37 | var elt = cm.state.placeholder = document.createElement("pre");
38 | elt.style.cssText = "height: 0; overflow: visible";
39 | elt.className = "CodeMirror-placeholder";
40 | elt.appendChild(document.createTextNode(cm.getOption("placeholder")));
41 | cm.display.lineSpace.insertBefore(elt, cm.display.lineSpace.firstChild);
42 | }
43 |
44 | function onBlur(cm) {
45 | if (isEmpty(cm)) setPlaceholder(cm);
46 | }
47 | function onChange(cm) {
48 | var wrapper = cm.getWrapperElement(), empty = isEmpty(cm);
49 | wrapper.className = wrapper.className.replace(" CodeMirror-empty", "") + (empty ? " CodeMirror-empty" : "");
50 |
51 | if (empty) setPlaceholder(cm);
52 | else clearPlaceholder(cm);
53 | }
54 |
55 | function isEmpty(cm) {
56 | return (cm.lineCount() === 1) && (cm.getLine(0) === "");
57 | }
58 | });
59 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/edit/continuelist.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | var listRE = /^(\s*)(>[> ]*|[*+-]\s|(\d+)\.)(\s*)/,
15 | emptyListRE = /^(\s*)(>[> ]*|[*+-]|(\d+)\.)(\s*)$/,
16 | unorderedListRE = /[*+-]\s/;
17 |
18 | CodeMirror.commands.newlineAndIndentContinueMarkdownList = function(cm) {
19 | if (cm.getOption("disableInput")) return CodeMirror.Pass;
20 | var ranges = cm.listSelections(), replacements = [];
21 | for (var i = 0; i < ranges.length; i++) {
22 | var pos = ranges[i].head;
23 | var eolState = cm.getStateAfter(pos.line);
24 | var inList = eolState.list !== false;
25 | var inQuote = eolState.quote !== 0;
26 |
27 | var line = cm.getLine(pos.line), match = listRE.exec(line);
28 | if (!ranges[i].empty() || (!inList && !inQuote) || !match) {
29 | cm.execCommand("newlineAndIndent");
30 | return;
31 | }
32 | if (emptyListRE.test(line)) {
33 | cm.replaceRange("", {
34 | line: pos.line, ch: 0
35 | }, {
36 | line: pos.line, ch: pos.ch + 1
37 | });
38 | replacements[i] = "\n";
39 | } else {
40 | var indent = match[1], after = match[4];
41 | var bullet = unorderedListRE.test(match[2]) || match[2].indexOf(">") >= 0
42 | ? match[2]
43 | : (parseInt(match[3], 10) + 1) + ".";
44 |
45 | replacements[i] = "\n" + indent + bullet + after;
46 | }
47 | }
48 |
49 | cm.replaceSelections(replacements);
50 | };
51 | });
52 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/edit/trailingspace.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | CodeMirror.defineOption("showTrailingSpace", false, function(cm, val, prev) {
13 | if (prev == CodeMirror.Init) prev = false;
14 | if (prev && !val)
15 | cm.removeOverlay("trailingspace");
16 | else if (!prev && val)
17 | cm.addOverlay({
18 | token: function(stream) {
19 | for (var l = stream.string.length, i = l; i && /\s/.test(stream.string.charAt(i - 1)); --i) {}
20 | if (i > stream.pos) { stream.pos = i; return null; }
21 | stream.pos = l;
22 | return "trailingspace";
23 | },
24 | name: "trailingspace"
25 | });
26 | });
27 | });
28 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/fold/foldgutter.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-foldmarker {
2 | color: blue;
3 | text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;
4 | font-family: arial;
5 | line-height: .3;
6 | cursor: pointer;
7 | }
8 | .CodeMirror-foldgutter {
9 | width: .7em;
10 | }
11 | .CodeMirror-foldgutter-open,
12 | .CodeMirror-foldgutter-folded {
13 | cursor: pointer;
14 | }
15 | .CodeMirror-foldgutter-open:after {
16 | content: "\25BE";
17 | }
18 | .CodeMirror-foldgutter-folded:after {
19 | content: "\25B8";
20 | }
21 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/fold/indent-fold.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.registerHelper("fold", "indent", function(cm, start) {
15 | var tabSize = cm.getOption("tabSize"), firstLine = cm.getLine(start.line);
16 | if (!/\S/.test(firstLine)) return;
17 | var getIndent = function(line) {
18 | return CodeMirror.countColumn(line, null, tabSize);
19 | };
20 | var myIndent = getIndent(firstLine);
21 | var lastLineInFold = null;
22 | // Go through lines until we find a line that definitely doesn't belong in
23 | // the block we're folding, or to the end.
24 | for (var i = start.line + 1, end = cm.lastLine(); i <= end; ++i) {
25 | var curLine = cm.getLine(i);
26 | var curIndent = getIndent(curLine);
27 | if (curIndent > myIndent) {
28 | // Lines with a greater indent are considered part of the block.
29 | lastLineInFold = i;
30 | } else if (!/\S/.test(curLine)) {
31 | // Empty lines might be breaks within the block we're trying to fold.
32 | } else {
33 | // A non-empty line at an indent equal to or less than ours marks the
34 | // start of another block.
35 | break;
36 | }
37 | }
38 | if (lastLineInFold) return {
39 | from: CodeMirror.Pos(start.line, firstLine.length),
40 | to: CodeMirror.Pos(lastLineInFold, cm.getLine(lastLineInFold).length)
41 | };
42 | });
43 |
44 | });
45 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/fold/markdown-fold.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.registerHelper("fold", "markdown", function(cm, start) {
15 | var maxDepth = 100;
16 |
17 | function isHeader(lineNo) {
18 | var tokentype = cm.getTokenTypeAt(CodeMirror.Pos(lineNo, 0));
19 | return tokentype && /\bheader\b/.test(tokentype);
20 | }
21 |
22 | function headerLevel(lineNo, line, nextLine) {
23 | var match = line && line.match(/^#+/);
24 | if (match && isHeader(lineNo)) return match[0].length;
25 | match = nextLine && nextLine.match(/^[=\-]+\s*$/);
26 | if (match && isHeader(lineNo + 1)) return nextLine[0] == "=" ? 1 : 2;
27 | return maxDepth;
28 | }
29 |
30 | var firstLine = cm.getLine(start.line), nextLine = cm.getLine(start.line + 1);
31 | var level = headerLevel(start.line, firstLine, nextLine);
32 | if (level === maxDepth) return undefined;
33 |
34 | var lastLineNo = cm.lastLine();
35 | var end = start.line, nextNextLine = cm.getLine(end + 2);
36 | while (end < lastLineNo) {
37 | if (headerLevel(end + 1, nextLine, nextNextLine) <= level) break;
38 | ++end;
39 | nextLine = nextNextLine;
40 | nextNextLine = cm.getLine(end + 2);
41 | }
42 |
43 | return {
44 | from: CodeMirror.Pos(start.line, firstLine.length),
45 | to: CodeMirror.Pos(end, cm.getLine(end).length)
46 | };
47 | });
48 |
49 | });
50 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/hint/anyword-hint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | var WORD = /[\w$]+/, RANGE = 500;
15 |
16 | CodeMirror.registerHelper("hint", "anyword", function(editor, options) {
17 | var word = options && options.word || WORD;
18 | var range = options && options.range || RANGE;
19 | var cur = editor.getCursor(), curLine = editor.getLine(cur.line);
20 | var end = cur.ch, start = end;
21 | while (start && word.test(curLine.charAt(start - 1))) --start;
22 | var curWord = start != end && curLine.slice(start, end);
23 |
24 | var list = [], seen = {};
25 | var re = new RegExp(word.source, "g");
26 | for (var dir = -1; dir <= 1; dir += 2) {
27 | var line = cur.line, endLine = Math.min(Math.max(line + dir * range, editor.firstLine()), editor.lastLine()) + dir;
28 | for (; line != endLine; line += dir) {
29 | var text = editor.getLine(line), m;
30 | while (m = re.exec(text)) {
31 | if (line == cur.line && m[0] === curWord) continue;
32 | if ((!curWord || m[0].lastIndexOf(curWord, 0) == 0) && !Object.prototype.hasOwnProperty.call(seen, m[0])) {
33 | seen[m[0]] = true;
34 | list.push(m[0]);
35 | }
36 | }
37 | }
38 | }
39 | return {list: list, from: CodeMirror.Pos(cur.line, start), to: CodeMirror.Pos(cur.line, end)};
40 | });
41 | });
42 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/hint/show-hint.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-hints {
2 | position: absolute;
3 | z-index: 10;
4 | overflow: hidden;
5 | list-style: none;
6 |
7 | margin: 0;
8 | padding: 2px;
9 |
10 | -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
11 | -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
12 | box-shadow: 2px 3px 5px rgba(0,0,0,.2);
13 | border-radius: 3px;
14 | border: 1px solid silver;
15 |
16 | background: white;
17 | font-size: 90%;
18 | font-family: monospace;
19 |
20 | max-height: 20em;
21 | overflow-y: auto;
22 | }
23 |
24 | .CodeMirror-hint {
25 | margin: 0;
26 | padding: 0 4px;
27 | border-radius: 2px;
28 | max-width: 19em;
29 | overflow: hidden;
30 | white-space: pre;
31 | color: black;
32 | cursor: pointer;
33 | }
34 |
35 | li.CodeMirror-hint-active {
36 | background: #08f;
37 | color: white;
38 | }
39 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/lint/coffeescript-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on coffeelint.js from http://www.coffeelint.org/js/coffeelint.js
5 |
6 | // declare global: coffeelint
7 |
8 | (function(mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function(CodeMirror) {
16 | "use strict";
17 |
18 | CodeMirror.registerHelper("lint", "coffeescript", function(text) {
19 | var found = [];
20 | var parseError = function(err) {
21 | var loc = err.lineNumber;
22 | found.push({from: CodeMirror.Pos(loc-1, 0),
23 | to: CodeMirror.Pos(loc, 0),
24 | severity: err.level,
25 | message: err.message});
26 | };
27 | try {
28 | var res = coffeelint.lint(text);
29 | for(var i = 0; i < res.length; i++) {
30 | parseError(res[i]);
31 | }
32 | } catch(e) {
33 | found.push({from: CodeMirror.Pos(e.location.first_line, 0),
34 | to: CodeMirror.Pos(e.location.last_line, e.location.last_column),
35 | severity: 'error',
36 | message: e.message});
37 | }
38 | return found;
39 | });
40 |
41 | });
42 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/lint/css-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on csslint.js from https://github.com/stubbornella/csslint
5 |
6 | // declare global: CSSLint
7 |
8 | (function(mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function(CodeMirror) {
16 | "use strict";
17 |
18 | CodeMirror.registerHelper("lint", "css", function(text) {
19 | var found = [];
20 | if (!window.CSSLint) return found;
21 | var results = CSSLint.verify(text), messages = results.messages, message = null;
22 | for ( var i = 0; i < messages.length; i++) {
23 | message = messages[i];
24 | var startLine = message.line -1, endLine = message.line -1, startCol = message.col -1, endCol = message.col;
25 | found.push({
26 | from: CodeMirror.Pos(startLine, startCol),
27 | to: CodeMirror.Pos(endLine, endCol),
28 | message: message.message,
29 | severity : message.type
30 | });
31 | }
32 | return found;
33 | });
34 |
35 | });
36 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/lint/json-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on jsonlint.js from https://github.com/zaach/jsonlint
5 |
6 | // declare global: jsonlint
7 |
8 | (function(mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function(CodeMirror) {
16 | "use strict";
17 |
18 | CodeMirror.registerHelper("lint", "json", function(text) {
19 | var found = [];
20 | jsonlint.parseError = function(str, hash) {
21 | var loc = hash.loc;
22 | found.push({from: CodeMirror.Pos(loc.first_line - 1, loc.first_column),
23 | to: CodeMirror.Pos(loc.last_line - 1, loc.last_column),
24 | message: str});
25 | };
26 | try { jsonlint.parse(text); }
27 | catch(e) {}
28 | return found;
29 | });
30 |
31 | });
32 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/lint/yaml-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | // Depends on js-yaml.js from https://github.com/nodeca/js-yaml
15 |
16 | // declare global: jsyaml
17 |
18 | CodeMirror.registerHelper("lint", "yaml", function(text) {
19 | var found = [];
20 | try { jsyaml.load(text); }
21 | catch(e) {
22 | var loc = e.mark;
23 | found.push({ from: CodeMirror.Pos(loc.line, loc.column), to: CodeMirror.Pos(loc.line, loc.column), message: e.message });
24 | }
25 | return found;
26 | });
27 |
28 | });
29 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/mode/multiplex_test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | CodeMirror.defineMode("markdown_with_stex", function(){
6 | var inner = CodeMirror.getMode({}, "stex");
7 | var outer = CodeMirror.getMode({}, "markdown");
8 |
9 | var innerOptions = {
10 | open: '$',
11 | close: '$',
12 | mode: inner,
13 | delimStyle: 'delim',
14 | innerStyle: 'inner'
15 | };
16 |
17 | return CodeMirror.multiplexingMode(outer, innerOptions);
18 | });
19 |
20 | var mode = CodeMirror.getMode({}, "markdown_with_stex");
21 |
22 | function MT(name) {
23 | test.mode(
24 | name,
25 | mode,
26 | Array.prototype.slice.call(arguments, 1),
27 | 'multiplexing');
28 | }
29 |
30 | MT(
31 | "stexInsideMarkdown",
32 | "[strong **Equation:**] [delim $][inner&tag \\pi][delim $]");
33 | })();
34 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/runmode/colorize.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("./runmode"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror", "./runmode"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | var isBlock = /^(p|li|div|h\\d|pre|blockquote|td)$/;
15 |
16 | function textContent(node, out) {
17 | if (node.nodeType == 3) return out.push(node.nodeValue);
18 | for (var ch = node.firstChild; ch; ch = ch.nextSibling) {
19 | textContent(ch, out);
20 | if (isBlock.test(node.nodeType)) out.push("\n");
21 | }
22 | }
23 |
24 | CodeMirror.colorize = function(collection, defaultMode) {
25 | if (!collection) collection = document.body.getElementsByTagName("pre");
26 |
27 | for (var i = 0; i < collection.length; ++i) {
28 | var node = collection[i];
29 | var mode = node.getAttribute("data-lang") || defaultMode;
30 | if (!mode) continue;
31 |
32 | var text = [];
33 | textContent(node, text);
34 | node.innerHTML = "";
35 | CodeMirror.runMode(text.join(""), mode, node);
36 |
37 | node.className += " cm-s-default";
38 | }
39 | };
40 | });
41 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/scroll/scrollpastend.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineOption("scrollPastEnd", false, function(cm, val, old) {
15 | if (old && old != CodeMirror.Init) {
16 | cm.off("change", onChange);
17 | cm.off("refresh", updateBottomMargin);
18 | cm.display.lineSpace.parentNode.style.paddingBottom = "";
19 | cm.state.scrollPastEndPadding = null;
20 | }
21 | if (val) {
22 | cm.on("change", onChange);
23 | cm.on("refresh", updateBottomMargin);
24 | updateBottomMargin(cm);
25 | }
26 | });
27 |
28 | function onChange(cm, change) {
29 | if (CodeMirror.changeEnd(change).line == cm.lastLine())
30 | updateBottomMargin(cm);
31 | }
32 |
33 | function updateBottomMargin(cm) {
34 | var padding = "";
35 | if (cm.lineCount() > 1) {
36 | var totalH = cm.display.scroller.clientHeight - 30,
37 | lastLineH = cm.getLineHandle(cm.lastLine()).height;
38 | padding = (totalH - lastLineH) + "px";
39 | }
40 | if (cm.state.scrollPastEndPadding != padding) {
41 | cm.state.scrollPastEndPadding = padding;
42 | cm.display.lineSpace.parentNode.style.paddingBottom = padding;
43 | cm.setSize();
44 | }
45 | }
46 | });
47 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/scroll/simplescrollbars.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-simplescroll-horizontal div, .CodeMirror-simplescroll-vertical div {
2 | position: absolute;
3 | background: #ccc;
4 | -moz-box-sizing: border-box;
5 | box-sizing: border-box;
6 | border: 1px solid #bbb;
7 | border-radius: 2px;
8 | }
9 |
10 | .CodeMirror-simplescroll-horizontal, .CodeMirror-simplescroll-vertical {
11 | position: absolute;
12 | z-index: 6;
13 | background: #eee;
14 | }
15 |
16 | .CodeMirror-simplescroll-horizontal {
17 | bottom: 0; left: 0;
18 | height: 8px;
19 | }
20 | .CodeMirror-simplescroll-horizontal div {
21 | bottom: 0;
22 | height: 100%;
23 | }
24 |
25 | .CodeMirror-simplescroll-vertical {
26 | right: 0; top: 0;
27 | width: 8px;
28 | }
29 | .CodeMirror-simplescroll-vertical div {
30 | right: 0;
31 | width: 100%;
32 | }
33 |
34 |
35 | .CodeMirror-overlayscroll .CodeMirror-scrollbar-filler, .CodeMirror-overlayscroll .CodeMirror-gutter-filler {
36 | display: none;
37 | }
38 |
39 | .CodeMirror-overlayscroll-horizontal div, .CodeMirror-overlayscroll-vertical div {
40 | position: absolute;
41 | background: #bcd;
42 | border-radius: 3px;
43 | }
44 |
45 | .CodeMirror-overlayscroll-horizontal, .CodeMirror-overlayscroll-vertical {
46 | position: absolute;
47 | z-index: 6;
48 | }
49 |
50 | .CodeMirror-overlayscroll-horizontal {
51 | bottom: 0; left: 0;
52 | height: 6px;
53 | }
54 | .CodeMirror-overlayscroll-horizontal div {
55 | bottom: 0;
56 | height: 100%;
57 | }
58 |
59 | .CodeMirror-overlayscroll-vertical {
60 | right: 0; top: 0;
61 | width: 6px;
62 | }
63 | .CodeMirror-overlayscroll-vertical div {
64 | right: 0;
65 | width: 100%;
66 | }
67 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/search/matchesonscrollbar.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-search-match {
2 | background: gold;
3 | border-top: 1px solid orange;
4 | border-bottom: 1px solid orange;
5 | -moz-box-sizing: border-box;
6 | box-sizing: border-box;
7 | opacity: .5;
8 | }
9 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/tern/tern.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-Tern-completion {
2 | padding-left: 22px;
3 | position: relative;
4 | }
5 | .CodeMirror-Tern-completion:before {
6 | position: absolute;
7 | left: 2px;
8 | bottom: 2px;
9 | border-radius: 50%;
10 | font-size: 12px;
11 | font-weight: bold;
12 | height: 15px;
13 | width: 15px;
14 | line-height: 16px;
15 | text-align: center;
16 | color: white;
17 | -moz-box-sizing: border-box;
18 | box-sizing: border-box;
19 | }
20 | .CodeMirror-Tern-completion-unknown:before {
21 | content: "?";
22 | background: #4bb;
23 | }
24 | .CodeMirror-Tern-completion-object:before {
25 | content: "O";
26 | background: #77c;
27 | }
28 | .CodeMirror-Tern-completion-fn:before {
29 | content: "F";
30 | background: #7c7;
31 | }
32 | .CodeMirror-Tern-completion-array:before {
33 | content: "A";
34 | background: #c66;
35 | }
36 | .CodeMirror-Tern-completion-number:before {
37 | content: "1";
38 | background: #999;
39 | }
40 | .CodeMirror-Tern-completion-string:before {
41 | content: "S";
42 | background: #999;
43 | }
44 | .CodeMirror-Tern-completion-bool:before {
45 | content: "B";
46 | background: #999;
47 | }
48 |
49 | .CodeMirror-Tern-completion-guess {
50 | color: #999;
51 | }
52 |
53 | .CodeMirror-Tern-tooltip {
54 | border: 1px solid silver;
55 | border-radius: 3px;
56 | color: #444;
57 | padding: 2px 5px;
58 | font-size: 90%;
59 | font-family: monospace;
60 | background-color: white;
61 | white-space: pre-wrap;
62 |
63 | max-width: 40em;
64 | position: absolute;
65 | z-index: 10;
66 | -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
67 | -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
68 | box-shadow: 2px 3px 5px rgba(0,0,0,.2);
69 |
70 | transition: opacity 1s;
71 | -moz-transition: opacity 1s;
72 | -webkit-transition: opacity 1s;
73 | -o-transition: opacity 1s;
74 | -ms-transition: opacity 1s;
75 | }
76 |
77 | .CodeMirror-Tern-hint-doc {
78 | max-width: 25em;
79 | margin-top: -3px;
80 | }
81 |
82 | .CodeMirror-Tern-fname { color: black; }
83 | .CodeMirror-Tern-farg { color: #70a; }
84 | .CodeMirror-Tern-farg-current { text-decoration: underline; }
85 | .CodeMirror-Tern-type { color: #07c; }
86 | .CodeMirror-Tern-fhint-guess { opacity: .7; }
87 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/addon/tern/worker.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // declare global: tern, server
5 |
6 | var server;
7 |
8 | this.onmessage = function(e) {
9 | var data = e.data;
10 | switch (data.type) {
11 | case "init": return startServer(data.defs, data.plugins, data.scripts);
12 | case "add": return server.addFile(data.name, data.text);
13 | case "del": return server.delFile(data.name);
14 | case "req": return server.request(data.body, function(err, reqData) {
15 | postMessage({id: data.id, body: reqData, err: err && String(err)});
16 | });
17 | case "getFile":
18 | var c = pending[data.id];
19 | delete pending[data.id];
20 | return c(data.err, data.text);
21 | default: throw new Error("Unknown message type: " + data.type);
22 | }
23 | };
24 |
25 | var nextId = 0, pending = {};
26 | function getFile(file, c) {
27 | postMessage({type: "getFile", name: file, id: ++nextId});
28 | pending[nextId] = c;
29 | }
30 |
31 | function startServer(defs, plugins, scripts) {
32 | if (scripts) importScripts.apply(null, scripts);
33 |
34 | server = new tern.Server({
35 | getFile: getFile,
36 | async: true,
37 | defs: defs,
38 | plugins: plugins
39 | });
40 | }
41 |
42 | this.console = {
43 | log: function(v) { postMessage({type: "debug", message: v}); }
44 | };
45 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/bin/authors.sh:
--------------------------------------------------------------------------------
1 | # Combine existing list of authors with everyone known in git, sort, add header.
2 | tail --lines=+3 AUTHORS > AUTHORS.tmp
3 | git log --format='%aN' >> AUTHORS.tmp
4 | echo -e "List of CodeMirror contributors. Updated before every release.\n" > AUTHORS
5 | sort -u AUTHORS.tmp >> AUTHORS
6 | rm -f AUTHORS.tmp
7 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/bin/lint:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | process.exit(require("../test/lint").ok ? 0 : 1);
4 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/bin/release:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var fs = require("fs"), child = require("child_process");
4 |
5 | var number, bumpOnly;
6 |
7 | for (var i = 2; i < process.argv.length; i++) {
8 | if (process.argv[i] == "-bump") bumpOnly = true;
9 | else if (/^\d+\.\d+\.\d+$/.test(process.argv[i])) number = process.argv[i];
10 | else { console.log("Bogus command line arg: " + process.argv[i]); process.exit(1); }
11 | }
12 |
13 | if (!number) { console.log("Must give a version"); process.exit(1); }
14 |
15 | function rewrite(file, f) {
16 | fs.writeFileSync(file, f(fs.readFileSync(file, "utf8")), "utf8");
17 | }
18 |
19 | rewrite("lib/codemirror.js", function(lib) {
20 | return lib.replace(/CodeMirror\.version = "\d+\.\d+\.\d+"/,
21 | "CodeMirror.version = \"" + number + "\"");
22 | });
23 | function rewriteJSON(pack) {
24 | return pack.replace(/"version":"\d+\.\d+\.\d+"/, "\"version\":\"" + number + "\"");
25 | }
26 | rewrite("package.json", rewriteJSON);
27 | rewrite("bower.json", rewriteJSON);
28 | rewrite("doc/manual.html", function(manual) {
29 | return manual.replace(/>version \d+\.\d+\.\d+<\/span>/, ">version " + number + "");
30 | });
31 |
32 | if (bumpOnly) process.exit(0);
33 |
34 | child.exec("bash bin/authors.sh", function(){});
35 |
36 | var simple = number.slice(0, number.lastIndexOf("."));
37 |
38 | rewrite("doc/compress.html", function(cmp) {
39 | return cmp.replace(/HEAD<\/option>/,
40 | " HEAD \n " + simple + " ");
41 | });
42 |
43 | rewrite("index.html", function(index) {
44 | return index.replace(/\.zip">\d+\.\d+<\/a>/,
45 | ".zip\">" + simple + "");
46 | });
47 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/bin/source-highlight:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | // Simple command-line code highlighting tool. Reads code from stdin,
4 | // spits html to stdout. For example:
5 | //
6 | // echo 'function foo(a) { return a; }' | bin/source-highlight -s javascript
7 | // bin/source-highlight -s
8 |
9 | var fs = require("fs");
10 |
11 | var CodeMirror = require("../addon/runmode/runmode.node.js");
12 | require("../mode/meta.js");
13 |
14 | var sPos = process.argv.indexOf("-s");
15 | if (sPos == -1 || sPos == process.argv.length - 1) {
16 | console.error("Usage: source-highlight -s language");
17 | process.exit(1);
18 | }
19 | var lang = process.argv[sPos + 1].toLowerCase(), modeName = lang;
20 | CodeMirror.modeInfo.forEach(function(info) {
21 | if (info.mime == lang) {
22 | modeName = info.mode;
23 | } else if (info.name.toLowerCase() == lang) {
24 | modeName = info.mode;
25 | lang = info.mime;
26 | }
27 | });
28 |
29 | if (!CodeMirror.modes[modeName])
30 | require("../mode/" + modeName + "/" + modeName + ".js");
31 |
32 | function esc(str) {
33 | return str.replace(/[<&]/g, function(ch) { return ch == "&" ? "&" : "<"; });
34 | }
35 |
36 | var code = fs.readFileSync("/dev/stdin", "utf8");
37 | var curStyle = null, accum = "";
38 | function flush() {
39 | if (curStyle) process.stdout.write("" + esc(accum) + " ");
40 | else process.stdout.write(esc(accum));
41 | }
42 |
43 | CodeMirror.runMode(code, lang, function(text, style) {
44 | if (style != curStyle) {
45 | flush();
46 | curStyle = style; accum = text;
47 | } else {
48 | accum += text;
49 | }
50 | });
51 | flush();
52 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "codemirror",
3 | "version":"5.3.0",
4 | "main": ["lib/codemirror.js", "lib/codemirror.css"],
5 | "ignore": [
6 | "**/.*",
7 | "node_modules",
8 | "components",
9 | "bin",
10 | "demo",
11 | "doc",
12 | "test",
13 | "index.html",
14 | "package.json",
15 | "mode/*/*test.js",
16 | "mode/*/*.html"
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/changemode.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Mode-Changing Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
26 |
27 |
28 | Mode-Changing Demo
29 |
36 |
37 | On changes to the content of the above editor, a (crude) script
38 | tries to auto-detect the language used, and switches the editor to
39 | either JavaScript or Scheme mode based on that.
40 |
41 |
58 |
59 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/closebrackets.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Closebrackets Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
26 |
27 |
28 | Closebrackets Demo
29 | function Grid(width, height) {
30 | this.width = width;
31 | this.height = height;
32 | this.cells = new Array(width * height);
33 | }
34 | Grid.prototype.valueAt = function(point) {
35 | return this.cells[point.y * this.width + point.x];
36 | };
37 | Grid.prototype.setValueAt = function(point, value) {
38 | this.cells[point.y * this.width + point.x] = value;
39 | };
40 | Grid.prototype.isInside = function(point) {
41 | return point.x >= 0 && point.y >= 0 &&
42 | point.x < this.width && point.y < this.height;
43 | };
44 | Grid.prototype.moveValue = function(from, to) {
45 | this.setValueAt(to, this.valueAt(from));
46 | this.setValueAt(from, undefined);
47 | };
48 |
49 |
52 |
53 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/closetag.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Close-Tag Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
30 |
31 |
32 | Close-Tag Demo
33 |
34 |
35 |
41 |
42 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/html5complete.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CodeMirror: HTML completion demo
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
36 |
37 |
38 | HTML completion demo
39 |
40 | Shows the XML completer
41 | parameterized with information about the tags in HTML.
42 | Press ctrl-space to activate completion.
43 |
44 |
45 |
46 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/marker.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Breakpoint Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
27 |
28 |
29 | Breakpoint Demo
30 |
31 | var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
32 | lineNumbers: true,
33 | gutters: ["CodeMirror-linenumbers", "breakpoints"]
34 | });
35 | editor.on("gutterClick", function(cm, n) {
36 | var info = cm.lineInfo(n);
37 | cm.setGutterMarker(n, "breakpoints", info.gutterMarkers ? null : makeMarker());
38 | });
39 |
40 | function makeMarker() {
41 | var marker = document.createElement("div");
42 | marker.style.color = "#822";
43 | marker.innerHTML = "●";
44 | return marker;
45 | }
46 |
47 |
48 | Click the line-number gutter to add or remove 'breakpoints'.
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/markselection.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Selection Marking Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
17 |
29 |
30 |
31 | Selection Marking Demo
32 |
33 | Select something from here. You'll see that the selection's foreground
34 | color changes to white! Since, by default, CodeMirror only puts an
35 | independent "marker" layer behind the text, you'll need something like
36 | this to change its colour.
37 |
38 | Also notice that turning this addon on (with the default style) allows
39 | you to safely give text a background color without screwing up the
40 | visibility of the selection.
41 |
42 |
49 |
50 | Simple addon to easily mark (and style) selected text. Docs .
51 |
52 |
53 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/matchhighlighter.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Match Highlighter Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
19 |
31 |
32 |
33 | Match Highlighter Demo
34 | Select this text: hardToSpotVar
35 | And everywhere else in your code where hardToSpotVar appears will automatically illuminate.
36 | Give it a try! No more hardToSpotVars.
37 |
38 |
44 |
45 | Search and highlight occurences of the selected text.
46 |
47 |
48 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/matchtags.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Tag Matcher Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
15 |
27 |
28 |
29 | Tag Matcher Demo
30 |
31 |
32 |
33 |
34 |
44 |
45 | Put the cursor on or inside a pair of tags to highlight them.
46 | Press Ctrl-J to jump to the tag that matches the one under the
47 | cursor.
48 |
49 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/placeholder.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Placeholder demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
28 |
29 |
30 | Placeholder demo
31 |
32 |
33 | The placeholder
34 | plug-in adds an option placeholder
that can be set to
35 | make text appear in the editor when it is empty and not focused.
36 | If the source textarea has a placeholder
attribute,
37 | it will automatically be inherited.
38 |
39 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/requirejs.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CodeMirror: HTML completion demo
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
15 |
16 |
17 |
28 |
29 |
30 | RequireJS module loading demo
31 |
32 | This demo does the same thing as
33 | the HTML5 completion demo , but
34 | loads its dependencies
35 | with Require.js , rather than
36 | explicitly. Press ctrl-space to activate
37 | completion.
38 |
39 |
40 |
41 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/resize.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Autoresize Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
28 |
29 |
30 | Autoresize Demo
31 |
32 | .CodeMirror {
33 | border: 1px solid #eee;
34 | height: auto;
35 | }
36 |
37 |
38 | By setting an editor's height
style
39 | to auto
and giving
40 | the viewportMargin
41 | a value of Infinity
, CodeMirror can be made to
42 | automatically resize to fit its content.
43 |
44 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/rulers.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Ruler Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
13 |
25 |
26 |
27 | Ruler Demo
28 |
29 |
44 |
45 | Demonstration of
46 | the rulers addon, which
47 | displays vertical lines at given column offsets.
48 |
49 |
50 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/trailingspace.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Trailing Whitespace Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
18 |
30 |
31 |
32 | Trailing Whitespace Demo
33 | This text
34 | has some
35 | trailing whitespace!
36 |
37 |
43 |
44 | Uses
45 | the trailingspace
46 | addon to highlight trailing whitespace.
47 |
48 |
49 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/demo/visibletabs.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Visible tabs demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
18 |
30 |
31 |
32 | Visible tabs demo
33 |
34 | #include "syscalls.h"
35 | /* getchar: simple buffered version */
36 | int getchar(void)
37 | {
38 | static char buf[BUFSIZ];
39 | static char *bufp = buf;
40 | static int n = 0;
41 | if (n == 0) { /* buffer is empty */
42 | n = read(0, buf, sizeof buf);
43 | bufp = buf;
44 | }
45 | return (--n >= 0) ? (unsigned char) *bufp++ : EOF;
46 | }
47 |
48 |
49 | Tabs inside the editor are spans with the
50 | class cm-tab
, and can be styled.
51 |
52 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/doc/activebookmark.js:
--------------------------------------------------------------------------------
1 | // Kludge in HTML5 tag recognition in IE8
2 | document.createElement("section");
3 | document.createElement("article");
4 |
5 | (function() {
6 | if (!window.addEventListener) return;
7 | var pending = false, prevVal = null;
8 |
9 | function updateSoon() {
10 | if (!pending) {
11 | pending = true;
12 | setTimeout(update, 250);
13 | }
14 | }
15 |
16 | function update() {
17 | pending = false;
18 | var marks = document.getElementById("nav").getElementsByTagName("a"), found;
19 | for (var i = 0; i < marks.length; ++i) {
20 | var mark = marks[i], m;
21 | if (mark.getAttribute("data-default")) {
22 | if (found == null) found = i;
23 | } else if (m = mark.href.match(/#(.*)/)) {
24 | var ref = document.getElementById(m[1]);
25 | if (ref && ref.getBoundingClientRect().top < 50)
26 | found = i;
27 | }
28 | }
29 | if (found != null && found != prevVal) {
30 | prevVal = found;
31 | var lis = document.getElementById("nav").getElementsByTagName("li");
32 | for (var i = 0; i < lis.length; ++i) lis[i].className = "";
33 | for (var i = 0; i < marks.length; ++i) {
34 | if (found == i) {
35 | marks[i].className = "active";
36 | for (var n = marks[i]; n; n = n.parentNode)
37 | if (n.nodeName == "LI") n.className = "active";
38 | } else {
39 | marks[i].className = "";
40 | }
41 | }
42 | }
43 | }
44 |
45 | window.addEventListener("scroll", updateSoon);
46 | window.addEventListener("load", updateSoon);
47 | window.addEventListener("hashchange", function() {
48 | setTimeout(function() {
49 | var hash = document.location.hash, found = null, m;
50 | var marks = document.getElementById("nav").getElementsByTagName("a");
51 | for (var i = 0; i < marks.length; i++)
52 | if ((m = marks[i].href.match(/(#.*)/)) && m[1] == hash) { found = i; break; }
53 | if (found != null) for (var i = 0; i < marks.length; i++)
54 | marks[i].className = i == found ? "active" : "";
55 | }, 300);
56 | });
57 | })();
58 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/doc/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cethric/HTMLEditor-Pythonista/87dc95a7924e77d845981e94c7e10aecb766ffad/EditorView/CodeMirror-5.3.0/doc/logo.png
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/doc/yinyang.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cethric/HTMLEditor-Pythonista/87dc95a7924e77d845981e94c7e10aecb766ffad/EditorView/CodeMirror-5.3.0/doc/yinyang.png
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/asciiarmor/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: ASCII Armor (PGP) mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | ASCII Armor (PGP) mode
27 |
28 | -----BEGIN PGP MESSAGE-----
29 | Version: OpenPrivacy 0.99
30 |
31 | yDgBO22WxBHv7O8X7O/jygAEzol56iUKiXmV+XmpCtmpqQUKiQrFqclFqUDBovzS
32 | vBSFjNSiVHsuAA==
33 | =njUN
34 | -----END PGP MESSAGE-----
35 |
36 |
37 |
42 |
43 | MIME types
44 | defined: application/pgp
, application/pgp-keys
, application/pgp-signature
45 |
46 |
47 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/clike/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-c");
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
7 |
8 | MT("indent",
9 | "[variable-3 void] [def foo]([variable-3 void*] [variable a], [variable-3 int] [variable b]) {",
10 | " [variable-3 int] [variable c] [operator =] [variable b] [operator +]",
11 | " [number 1];",
12 | " [keyword return] [operator *][variable a];",
13 | "}");
14 |
15 | MT("indent_switch",
16 | "[keyword switch] ([variable x]) {",
17 | " [keyword case] [number 10]:",
18 | " [keyword return] [number 20];",
19 | " [keyword default]:",
20 | " [variable printf]([string \"foo %c\"], [variable x]);",
21 | "}");
22 |
23 | MT("def",
24 | "[variable-3 void] [def foo]() {}",
25 | "[keyword struct] [def bar]{}",
26 | "[variable-3 int] [variable-3 *][def baz]() {}");
27 | })();
28 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/css/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: CSS mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
27 |
28 |
29 | CSS mode
30 |
31 | /* Some example CSS */
32 |
33 | @import url("something.css");
34 |
35 | body {
36 | margin: 0;
37 | padding: 3em 6em;
38 | font-family: tahoma, arial, sans-serif;
39 | color: #000;
40 | }
41 |
42 | #navigation a {
43 | font-weight: bold;
44 | text-decoration: none !important;
45 | }
46 |
47 | h1 {
48 | font-size: 2.5em;
49 | }
50 |
51 | h2 {
52 | font-size: 1.7em;
53 | }
54 |
55 | h1:before, h2:before {
56 | content: "::";
57 | }
58 |
59 | code {
60 | font-family: courier, monospace;
61 | font-size: 80%;
62 | color: #418A8A;
63 | }
64 |
65 |
70 |
71 | MIME types defined: text/css
, text/x-scss
(demo ), text/x-less
(demo ).
72 |
73 | Parsing/Highlighting Tests: normal , verbose .
74 |
75 |
76 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/css/less_test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | "use strict";
6 |
7 | var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-less");
8 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "less"); }
9 |
10 | MT("variable",
11 | "[variable-2 @base]: [atom #f04615];",
12 | "[qualifier .class] {",
13 | " [property width]: [variable percentage]([number 0.5]); [comment // returns `50%`]",
14 | " [property color]: [variable saturate]([variable-2 @base], [number 5%]);",
15 | "}");
16 |
17 | MT("amp",
18 | "[qualifier .child], [qualifier .sibling] {",
19 | " [qualifier .parent] [atom &] {",
20 | " [property color]: [keyword black];",
21 | " }",
22 | " [atom &] + [atom &] {",
23 | " [property color]: [keyword red];",
24 | " }",
25 | "}");
26 |
27 | MT("mixin",
28 | "[qualifier .mixin] ([variable dark]; [variable-2 @color]) {",
29 | " [property color]: [variable darken]([variable-2 @color], [number 10%]);",
30 | "}",
31 | "[qualifier .mixin] ([variable light]; [variable-2 @color]) {",
32 | " [property color]: [variable lighten]([variable-2 @color], [number 10%]);",
33 | "}",
34 | "[qualifier .mixin] ([variable-2 @_]; [variable-2 @color]) {",
35 | " [property display]: [atom block];",
36 | "}",
37 | "[variable-2 @switch]: [variable light];",
38 | "[qualifier .class] {",
39 | " [qualifier .mixin]([variable-2 @switch]; [atom #888]);",
40 | "}");
41 |
42 | MT("nest",
43 | "[qualifier .one] {",
44 | " [def @media] ([property width]: [number 400px]) {",
45 | " [property font-size]: [number 1.2em];",
46 | " [def @media] [attribute print] [keyword and] [property color] {",
47 | " [property color]: [keyword blue];",
48 | " }",
49 | " }",
50 | "}");
51 |
52 |
53 | MT("interpolation", ".@{[variable foo]} { [property font-weight]: [atom bold]; }");
54 | })();
55 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/cypher/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Cypher Mode for CodeMirror
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
17 |
30 |
31 |
32 | Cypher Mode for CodeMirror
33 |
34 | // Cypher Mode for CodeMirror, using the neo theme
35 | MATCH (joe { name: 'Joe' })-[:knows*2..2]-(friend_of_friend)
36 | WHERE NOT (joe)-[:knows]-(friend_of_friend)
37 | RETURN friend_of_friend.name, COUNT(*)
38 | ORDER BY COUNT(*) DESC , friend_of_friend.name
39 |
40 |
41 | MIME types defined:
42 | application/x-cypher-query
43 |
44 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/dart/dart.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("../clike/clike"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror", "../clike/clike"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | var keywords = ("this super static final const abstract class extends external factory " +
15 | "implements get native operator set typedef with enum throw rethrow " +
16 | "assert break case continue default in return new deferred async await " +
17 | "try catch finally do else for if switch while import library export " +
18 | "part of show hide is").split(" ");
19 | var blockKeywords = "try catch finally do else for if switch while".split(" ");
20 | var atoms = "true false null".split(" ");
21 | var builtins = "void bool num int double dynamic var String".split(" ");
22 |
23 | function set(words) {
24 | var obj = {};
25 | for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
26 | return obj;
27 | }
28 |
29 | CodeMirror.defineMIME("application/dart", {
30 | name: "clike",
31 | keywords: set(keywords),
32 | multiLineStrings: true,
33 | blockKeywords: set(blockKeywords),
34 | builtin: set(builtins),
35 | atoms: set(atoms),
36 | hooks: {
37 | "@": function(stream) {
38 | stream.eatWhile(/[\w\$_]/);
39 | return "meta";
40 | }
41 | }
42 | });
43 |
44 | CodeMirror.registerHelper("hintWords", "application/dart", keywords.concat(atoms).concat(builtins));
45 |
46 | // This is needed to make loading through meta.js work.
47 | CodeMirror.defineMode("dart", function(conf) {
48 | return CodeMirror.getMode(conf, "application/dart");
49 | }, "clike");
50 | });
51 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/dart/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Dart mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Dart mode
27 |
28 |
29 | import 'dart:math' show Random;
30 |
31 | void main() {
32 | print(new Die(n: 12).roll());
33 | }
34 |
35 | // Define a class.
36 | class Die {
37 | // Define a class variable.
38 | static Random shaker = new Random();
39 |
40 | // Define instance variables.
41 | int sides, value;
42 |
43 | // Define a method using shorthand syntax.
44 | String toString() => '$value';
45 |
46 | // Define a constructor.
47 | Die({int n: 6}) {
48 | if (4 <= n && n <= 20) {
49 | sides = n;
50 | } else {
51 | // Support for errors and exceptions.
52 | throw new ArgumentError(/* */);
53 | }
54 | }
55 |
56 | // Define an instance method.
57 | int roll() {
58 | return value = shaker.nextInt(sides) + 1;
59 | }
60 | }
61 |
62 |
63 |
64 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/diff/diff.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineMode("diff", function() {
15 |
16 | var TOKEN_NAMES = {
17 | '+': 'positive',
18 | '-': 'negative',
19 | '@': 'meta'
20 | };
21 |
22 | return {
23 | token: function(stream) {
24 | var tw_pos = stream.string.search(/[\t ]+?$/);
25 |
26 | if (!stream.sol() || tw_pos === 0) {
27 | stream.skipToEnd();
28 | return ("error " + (
29 | TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, '');
30 | }
31 |
32 | var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();
33 |
34 | if (tw_pos === -1) {
35 | stream.skipToEnd();
36 | } else {
37 | stream.pos = tw_pos;
38 | }
39 |
40 | return token_name;
41 | }
42 | };
43 | });
44 |
45 | CodeMirror.defineMIME("text/x-diff", "diff");
46 |
47 | });
48 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/ecl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: ECL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | ECL mode
27 |
28 | /*
29 | sample useless code to demonstrate ecl syntax highlighting
30 | this is a multiline comment!
31 | */
32 |
33 | // this is a singleline comment!
34 |
35 | import ut;
36 | r :=
37 | record
38 | string22 s1 := '123';
39 | integer4 i1 := 123;
40 | end;
41 | #option('tmp', true);
42 | d := dataset('tmp::qb', r, thor);
43 | output(d);
44 |
45 |
48 |
49 | Based on CodeMirror's clike mode. For more information see HPCC Systems web site.
50 | MIME types defined: text/x-ecl
.
51 |
52 |
53 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/forth/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Forth mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
18 |
31 |
32 |
33 |
34 | Forth mode
35 |
36 |
37 | \ Insertion sort
38 |
39 | : cell- 1 cells - ;
40 |
41 | : insert ( start end -- start )
42 | dup @ >r ( r: v )
43 | begin
44 | 2dup <
45 | while
46 | r@ over cell- @ <
47 | while
48 | cell-
49 | dup @ over cell+ !
50 | repeat then
51 | r> swap ! ;
52 |
53 | : sort ( array len -- )
54 | 1 ?do
55 | dup i cells + insert
56 | loop drop ;
57 |
58 |
59 |
70 |
71 | Simple mode that handle Forth-Syntax (Forth on WikiPedia ).
72 |
73 | MIME types defined: text/x-forth
.
74 |
75 |
76 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/gas/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Gas mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Gas mode
27 |
28 |
29 | .syntax unified
30 | .global main
31 |
32 | /*
33 | * A
34 | * multi-line
35 | * comment.
36 | */
37 |
38 | @ A single line comment.
39 |
40 | main:
41 | push {sp, lr}
42 | ldr r0, =message
43 | bl puts
44 | mov r0, #0
45 | pop {sp, pc}
46 |
47 | message:
48 | .asciz "Hello world! "
49 |
50 |
51 |
52 |
58 |
59 | Handles AT&T assembler syntax (more specifically this handles
60 | the GNU Assembler (gas) syntax.)
61 | It takes a single optional configuration parameter:
62 | architecture
, which can be one of "ARM"
,
63 | "ARMv6"
or "x86"
.
64 | Including the parameter adds syntax for the registers and special
65 | directives for the supplied architecture.
66 |
67 |
MIME types defined: text/x-gas
68 |
69 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/gherkin/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Gherkin mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Gherkin mode
27 |
28 | Feature: Using Google
29 | Background:
30 | Something something
31 | Something else
32 | Scenario: Has a homepage
33 | When I navigate to the google home page
34 | Then the home page should contain the menu and the search form
35 | Scenario: Searching for a term
36 | When I navigate to the google home page
37 | When I search for Tofu
38 | Then the search results page is displayed
39 | Then the search results page contains 10 individual search results
40 | Then the search results contain a link to the wikipedia tofu page
41 |
42 |
45 |
46 | MIME types defined: text/x-feature
.
47 |
48 |
49 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/handlebars/handlebars.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("../../addon/mode/simple"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror", "../../addon/mode/simple"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineSimpleMode("handlebars", {
15 | start: [
16 | { regex: /\{\{!--/, push: "dash_comment", token: "comment" },
17 | { regex: /\{\{!/, push: "comment", token: "comment" },
18 | { regex: /\{\{/, push: "handlebars", token: "tag" }
19 | ],
20 | handlebars: [
21 | { regex: /\}\}/, pop: true, token: "tag" },
22 |
23 | // Double and single quotes
24 | { regex: /"(?:[^\\]|\\.)*?"/, token: "string" },
25 | { regex: /'(?:[^\\]|\\.)*?'/, token: "string" },
26 |
27 | // Handlebars keywords
28 | { regex: />|[#\/]([A-Za-z_]\w*)/, token: "keyword" },
29 | { regex: /(?:else|this)\b/, token: "keyword" },
30 |
31 | // Numeral
32 | { regex: /\d+/i, token: "number" },
33 |
34 | // Atoms like = and .
35 | { regex: /=|~|@|true|false/, token: "atom" },
36 |
37 | // Paths
38 | { regex: /(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/, token: "variable-2" }
39 | ],
40 | dash_comment: [
41 | { regex: /--\}\}/, pop: true, token: "comment" },
42 |
43 | // Commented code
44 | { regex: /./, token: "comment"}
45 | ],
46 | comment: [
47 | { regex: /\}\}/, pop: true, token: "comment" },
48 | { regex: /./, token: "comment" }
49 | ]
50 | });
51 |
52 | CodeMirror.defineMIME("text/x-handlebars-template", "handlebars");
53 | });
54 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/htmlembedded/htmlembedded.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"),
7 | require("../../addon/mode/multiplex"));
8 | else if (typeof define == "function" && define.amd) // AMD
9 | define(["../../lib/codemirror", "../htmlmixed/htmlmixed",
10 | "../../addon/mode/multiplex"], mod);
11 | else // Plain browser env
12 | mod(CodeMirror);
13 | })(function(CodeMirror) {
14 | "use strict";
15 |
16 | CodeMirror.defineMode("htmlembedded", function(config, parserConfig) {
17 | return CodeMirror.multiplexingMode(CodeMirror.getMode(config, "htmlmixed"), {
18 | open: parserConfig.open || parserConfig.scriptStartRegex || "<%",
19 | close: parserConfig.close || parserConfig.scriptEndRegex || "%>",
20 | mode: CodeMirror.getMode(config, parserConfig.scriptingModeSpec)
21 | });
22 | }, "htmlmixed");
23 |
24 | CodeMirror.defineMIME("application/x-ejs", {name: "htmlembedded", scriptingModeSpec:"javascript"});
25 | CodeMirror.defineMIME("application/x-aspx", {name: "htmlembedded", scriptingModeSpec:"text/x-csharp"});
26 | CodeMirror.defineMIME("application/x-jsp", {name: "htmlembedded", scriptingModeSpec:"text/x-java"});
27 | CodeMirror.defineMIME("application/x-erb", {name: "htmlembedded", scriptingModeSpec:"ruby"});
28 | });
29 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/http/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: HTTP mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | HTTP mode
27 |
28 |
29 |
30 | POST /somewhere HTTP/1.1
31 | Host: example.com
32 | If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
33 | Content-Type: application/x-www-form-urlencoded;
34 | charset=utf-8
35 | User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
36 |
37 | This is the request body!
38 |
39 |
40 |
43 |
44 | MIME types defined: message/http
.
45 |
46 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/idl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: IDL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | IDL mode
27 |
28 |
29 | ;; Example IDL code
30 | FUNCTION mean_and_stddev,array
31 | ;; This program reads in an array of numbers
32 | ;; and returns a structure containing the
33 | ;; average and standard deviation
34 |
35 | ave = 0.0
36 | count = 0.0
37 |
38 | for i=0,N_ELEMENTS(array)-1 do begin
39 | ave = ave + array[i]
40 | count = count + 1
41 | endfor
42 |
43 | ave = ave/count
44 |
45 | std = stddev(array)
46 |
47 | return, {average:ave,std:std}
48 |
49 | END
50 |
51 |
52 |
62 |
63 | MIME types defined: text/x-idl
.
64 |
65 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/javascript/typescript.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: TypeScript mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | TypeScript mode
27 |
28 |
29 |
30 | class Greeter {
31 | greeting: string;
32 | constructor (message: string) {
33 | this.greeting = message;
34 | }
35 | greet() {
36 | return "Hello, " + this.greeting;
37 | }
38 | }
39 |
40 | var greeter = new Greeter("world");
41 |
42 | var button = document.createElement('button')
43 | button.innerText = "Say Hello"
44 | button.onclick = function() {
45 | alert(greeter.greet())
46 | }
47 |
48 | document.body.appendChild(button)
49 |
50 |
51 |
52 |
59 |
60 | This is a specialization of the JavaScript mode .
61 |
62 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/jinja2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Jinja2 mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Jinja2 mode
27 |
28 | {# this is a comment #}
29 | {%- for item in li -%}
30 | <li>{{ item.label }}</li>
31 | {% endfor -%}
32 | {{ item.sand == true and item.keyword == false ? 1 : 0 }}
33 | {{ app.get(55, 1.2, true) }}
34 | {% if app.get('_route') == ('_home') %}home{% endif %}
35 | {% if app.session.flashbag.has('message') %}
36 | {% for message in app.session.flashbag.get('message') %}
37 | {{ message.content }}
38 | {% endfor %}
39 | {% endif %}
40 | {{ path('_home', {'section': app.request.get('section')}) }}
41 | {{ path('_home', {
42 | 'section': app.request.get('section'),
43 | 'boolean': true,
44 | 'number': 55.33
45 | })
46 | }}
47 | {% include ('test.incl.html.twig') %}
48 |
49 |
54 |
55 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/ntriples/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: NTriples mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
28 |
29 |
30 | NTriples mode
31 |
32 |
33 | .
34 | "literal 1" .
35 | _:bnode3 .
36 | _:bnode4 "literal 2"@lang .
37 | _:bnode5 "literal 3"^^ .
38 |
39 |
40 |
41 |
44 | MIME types defined: text/n-triples
.
45 |
46 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/octave/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Octave mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Octave mode
27 |
28 |
29 | %numbers
30 | [1234 1234i 1234j]
31 | [.234 .234j 2.23i]
32 | [23e2 12E1j 123D-4 0x234]
33 |
34 | %strings
35 | 'asda''a'
36 | "asda""a"
37 |
38 | %identifiers
39 | a + as123 - __asd__
40 |
41 | %operators
42 | -
43 | +
44 | =
45 | ==
46 | >
47 | <
48 | >=
49 | <=
50 | &
51 | ~
52 | ...
53 | break zeros default margin round ones rand
54 | ceil floor size clear zeros eye mean std cov
55 | error eval function
56 | abs acos atan asin cos cosh exp log prod sum
57 | log10 max min sign sin sinh sqrt tan reshape
58 | return
59 | case switch
60 | else elseif end if otherwise
61 | do for while
62 | try catch
63 | classdef properties events methods
64 | global persistent
65 |
66 | %one line comment
67 | %{ multi
68 | line commment %}
69 |
70 |
71 |
81 |
82 | MIME types defined: text/x-octave
.
83 |
84 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/pascal/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Pascal mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Pascal mode
27 |
28 |
29 |
30 | (* Example Pascal code *)
31 |
32 | while a <> b do writeln('Waiting');
33 |
34 | if a > b then
35 | writeln('Condition met')
36 | else
37 | writeln('Condition not met');
38 |
39 | for i := 1 to 10 do
40 | writeln('Iteration: ', i:1);
41 |
42 | repeat
43 | a := a + 1
44 | until a = 10;
45 |
46 | case i of
47 | 0: write('zero');
48 | 1: write('one');
49 | 2: write('two')
50 | end;
51 |
52 |
53 |
59 |
60 | MIME types defined: text/x-pascal
.
61 |
62 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/pegjs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CodeMirror: PEG.js Mode
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
28 |
29 |
30 | PEG.js Mode
31 |
32 | /*
33 | * Classic example grammar, which recognizes simple arithmetic expressions like
34 | * "2*(3+4)". The parser generated from this grammar then computes their value.
35 | */
36 |
37 | start
38 | = additive
39 |
40 | additive
41 | = left:multiplicative "+" right:additive { return left + right; }
42 | / multiplicative
43 |
44 | multiplicative
45 | = left:primary "*" right:multiplicative { return left * right; }
46 | / primary
47 |
48 | primary
49 | = integer
50 | / "(" additive:additive ")" { return additive; }
51 |
52 | integer "integer"
53 | = digits:[0-9]+ { return parseInt(digits.join(""), 10); }
54 |
55 | letter = [a-z]+
56 |
62 | The PEG.js Mode
63 | Created by Forbes Lindesay.
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/perl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Perl mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Perl mode
27 |
28 |
29 |
30 | #!/usr/bin/perl
31 |
32 | use Something qw(func1 func2);
33 |
34 | # strings
35 | my $s1 = qq'single line';
36 | our $s2 = q(multi-
37 | line);
38 |
39 | =item Something
40 | Example.
41 | =cut
42 |
43 | my $html=<<'HTML'
44 |
45 | hi!
46 |
47 | HTML
48 |
49 | print "first,".join(',', 'second', qq~third~);
50 |
51 | if($s1 =~ m[(?{$1}=$$.' predefined variables';
53 | $s2 =~ s/\-line//ox;
54 | $s1 =~ s[
55 | line ]
56 | [
57 | block
58 | ]ox;
59 | }
60 |
61 | 1; # numbers and comments
62 |
63 | __END__
64 | something...
65 |
66 |
67 |
68 |
73 |
74 | MIME types defined: text/x-perl
.
75 |
76 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/pig/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Pig Latin mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Pig Latin mode
27 |
28 | -- Apache Pig (Pig Latin Language) Demo
29 | /*
30 | This is a multiline comment.
31 | */
32 | a = LOAD "\path\to\input" USING PigStorage('\t') AS (x:long, y:chararray, z:bytearray);
33 | b = GROUP a BY (x,y,3+4);
34 | c = FOREACH b GENERATE flatten(group) as (x,y), SUM(group.$2) as z;
35 | STORE c INTO "\path\to\output";
36 |
37 | --
38 |
39 |
40 |
47 |
48 |
49 | Simple mode that handles Pig Latin language.
50 |
51 |
52 | MIME type defined: text/x-pig
53 | (PIG code)
54 |
55 |
56 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/properties/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Properties files mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Properties files mode
27 |
28 | # This is a properties file
29 | a.key = A value
30 | another.key = http://example.com
31 | ! Exclamation mark as comment
32 | but.not=Within ! A value # indeed
33 | # Spaces at the beginning of a line
34 | spaces.before.key=value
35 | backslash=Used for multi\
36 | line entries,\
37 | that's convenient.
38 | # Unicode sequences
39 | unicode.key=This is \u0020 Unicode
40 | no.multiline=here
41 | # Colons
42 | colons : can be used too
43 | # Spaces
44 | spaces\ in\ keys=Not very common...
45 |
46 |
49 |
50 | MIME types defined: text/x-properties
,
51 | text/x-ini
.
52 |
53 |
54 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/ruby/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 2}, "ruby");
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
7 |
8 | MT("divide_equal_operator",
9 | "[variable bar] [operator /=] [variable foo]");
10 |
11 | MT("divide_equal_operator_no_spacing",
12 | "[variable foo][operator /=][number 42]");
13 |
14 | })();
15 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/rust/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Rust mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Rust mode
27 |
28 |
29 |
30 | // Demo code.
31 |
32 | type foo = int;
33 | enum bar {
34 | some(int, foo),
35 | none
36 | }
37 |
38 | fn check_crate(x: int) {
39 | let v = 10;
40 | alt foo {
41 | 1 to 3 {
42 | print_foo();
43 | if x {
44 | blah() + 10;
45 | }
46 | }
47 | (x, y) { "bye" }
48 | _ { "hi" }
49 | }
50 | }
51 |
52 |
53 |
58 |
59 | MIME types defined: text/x-rustsrc
.
60 |
61 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/sass/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Sass mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | Sass mode
28 | // Variable Definitions
29 |
30 | $page-width: 800px
31 | $sidebar-width: 200px
32 | $primary-color: #eeeeee
33 |
34 | // Global Attributes
35 |
36 | body
37 | font:
38 | family: sans-serif
39 | size: 30em
40 | weight: bold
41 |
42 | // Scoped Styles
43 |
44 | #contents
45 | width: $page-width
46 | #sidebar
47 | float: right
48 | width: $sidebar-width
49 | #main
50 | width: $page-width - $sidebar-width
51 | background: $primary-color
52 | h2
53 | color: blue
54 |
55 | #footer
56 | height: 200px
57 |
58 |
64 |
65 | MIME types defined: text/x-sass
.
66 |
67 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/shell/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Shell mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
27 |
28 |
29 | Shell mode
30 |
31 |
32 |
33 | #!/bin/bash
34 |
35 | # clone the repository
36 | git clone http://github.com/garden/tree
37 |
38 | # generate HTTPS credentials
39 | cd tree
40 | openssl genrsa -aes256 -out https.key 1024
41 | openssl req -new -nodes -key https.key -out https.csr
42 | openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt
43 | cp https.key{,.orig}
44 | openssl rsa -in https.key.orig -out https.key
45 |
46 | # start the server in HTTPS mode
47 | cd web
48 | sudo node ../server.js 443 'yes' >> ../node.log &
49 |
50 | # here is how to stop the server
51 | for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do
52 | sudo kill -9 $pid 2> /dev/null
53 | done
54 |
55 | exit 0
56 |
57 |
64 |
65 | MIME types defined: text/x-sh
.
66 |
67 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/shell/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({}, "shell");
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
7 |
8 | MT("var",
9 | "text [def $var] text");
10 | MT("varBraces",
11 | "text[def ${var}]text");
12 | MT("varVar",
13 | "text [def $a$b] text");
14 | MT("varBracesVarBraces",
15 | "text[def ${a}${b}]text");
16 |
17 | MT("singleQuotedVar",
18 | "[string 'text $var text']");
19 | MT("singleQuotedVarBraces",
20 | "[string 'text ${var} text']");
21 |
22 | MT("doubleQuotedVar",
23 | '[string "text ][def $var][string text"]');
24 | MT("doubleQuotedVarBraces",
25 | '[string "text][def ${var}][string text"]');
26 | MT("doubleQuotedVarPunct",
27 | '[string "text ][def $@][string text"]');
28 | MT("doubleQuotedVarVar",
29 | '[string "][def $a$b][string "]');
30 | MT("doubleQuotedVarBracesVarBraces",
31 | '[string "][def ${a}${b}][string "]');
32 |
33 | MT("notAString",
34 | "text\\'text");
35 | MT("escapes",
36 | "outside\\'\\\"\\`\\\\[string \"inside\\`\\'\\\"\\\\`\\$notAVar\"]outside\\$\\(notASubShell\\)");
37 |
38 | MT("subshell",
39 | "[builtin echo] [quote $(whoami)] s log, stardate [quote `date`].");
40 | MT("doubleQuotedSubshell",
41 | "[builtin echo] [string \"][quote $(whoami)][string 's log, stardate `date`.\"]");
42 |
43 | MT("hashbang",
44 | "[meta #!/bin/bash]");
45 | MT("comment",
46 | "text [comment # Blurb]");
47 |
48 | MT("numbers",
49 | "[number 0] [number 1] [number 2]");
50 | MT("keywords",
51 | "[keyword while] [atom true]; [keyword do]",
52 | " [builtin sleep] [number 3]",
53 | "[keyword done]");
54 | MT("options",
55 | "[builtin ls] [attribute -l] [attribute --human-readable]");
56 | MT("operator",
57 | "[def var][operator =]value");
58 | })();
59 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/smalltalk/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Smalltalk mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
16 |
29 |
30 |
31 | Smalltalk mode
32 |
33 | "
34 | This is a test of the Smalltalk code
35 | "
36 | Seaside.WAComponent subclass: #MyCounter [
37 | | count |
38 | MyCounter class >> canBeRoot [ ^true ]
39 |
40 | initialize [
41 | super initialize.
42 | count := 0.
43 | ]
44 | states [ ^{ self } ]
45 | renderContentOn: html [
46 | html heading: count.
47 | html anchor callback: [ count := count + 1 ]; with: '++'.
48 | html space.
49 | html anchor callback: [ count := count - 1 ]; with: '--'.
50 | ]
51 | ]
52 |
53 | MyCounter registerAsApplication: 'mycounter'
54 |
55 |
56 |
64 |
65 | Simple Smalltalk mode.
66 |
67 | MIME types defined: text/x-stsrc
.
68 |
69 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/solr/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Solr mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
20 |
33 |
34 |
35 | Solr mode
36 |
37 |
38 | author:Camus
39 |
40 | title:"The Rebel" and author:Camus
41 |
42 | philosophy:Existentialism -author:Kierkegaard
43 |
44 | hardToSpell:Dostoevsky~
45 |
46 | published:[194* TO 1960] and author:(Sartre or "Simone de Beauvoir")
47 |
48 |
49 |
55 |
56 | MIME types defined: text/x-solr
.
57 |
58 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/soy/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Soy (Closure Template) mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
29 |
30 |
31 | Soy (Closure Template) mode
32 |
33 | {namespace example}
34 |
35 | /**
36 | * Says hello to the world.
37 | */
38 | {template .helloWorld}
39 | {@param name: string}
40 | {@param? score: number}
41 | Hello {$name} !
42 |
43 | {if $score}
44 | {$score} points
45 | {else}
46 | no score
47 | {/if}
48 |
49 | {/template}
50 |
51 | {template .alertHelloWorld kind="js"}
52 | alert('Hello World');
53 | {/template}
54 |
55 |
56 |
65 |
66 | A mode for Closure Templates (Soy).
67 | MIME type defined: text/x-soy
.
68 |
69 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/sparql/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: SPARQL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | SPARQL mode
28 |
29 | PREFIX a: <http://www.w3.org/2000/10/annotation-ns#>
30 | PREFIX dc: <http://purl.org/dc/elements/1.1/>
31 | PREFIX foaf: <http://xmlns.com/foaf/0.1/>
32 | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
33 |
34 | # Comment!
35 |
36 | SELECT ?given ?family
37 | WHERE {
38 | {
39 | ?annot a:annotates <http://www.w3.org/TR/rdf-sparql-query/> .
40 | ?annot dc:creator ?c .
41 | OPTIONAL {?c foaf:givenName ?given ;
42 | foaf:familyName ?family }
43 | } UNION {
44 | ?c !foaf:knows/foaf:knows? ?thing.
45 | ?thing rdfs
46 | } MINUS {
47 | ?thing rdfs:label "剛柔流"@jp
48 | }
49 | FILTER isBlank(?c)
50 | }
51 |
52 |
58 |
59 | MIME types defined: application/sparql-query
.
60 |
61 |
62 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/spreadsheet/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Spreadsheet mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | Spreadsheet mode
28 | =IF(A1:B2, TRUE, FALSE) / 100
29 |
30 |
37 |
38 | MIME types defined: text/x-spreadsheet
.
39 |
40 | The Spreadsheet Mode
41 | Created by Robert Plummer
42 |
43 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/tiddlywiki/tiddlywiki.css:
--------------------------------------------------------------------------------
1 | span.cm-underlined {
2 | text-decoration: underline;
3 | }
4 | span.cm-strikethrough {
5 | text-decoration: line-through;
6 | }
7 | span.cm-brace {
8 | color: #170;
9 | font-weight: bold;
10 | }
11 | span.cm-table {
12 | color: blue;
13 | font-weight: bold;
14 | }
15 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/tiki/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Tiki wiki mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | Tiki wiki mode
28 |
29 |
30 |
31 | Headings
32 | !Header 1
33 | !!Header 2
34 | !!!Header 3
35 | !!!!Header 4
36 | !!!!!Header 5
37 | !!!!!!Header 6
38 |
39 | Styling
40 | -=titlebar=-
41 | ^^ Box on multi
42 | lines
43 | of content^^
44 | __bold__
45 | ''italic''
46 | ===underline===
47 | ::center::
48 | --Line Through--
49 |
50 | Operators
51 | ~np~No parse~/np~
52 |
53 | Link
54 | [link|desc|nocache]
55 |
56 | Wiki
57 | ((Wiki))
58 | ((Wiki|desc))
59 | ((Wiki|desc|timeout))
60 |
61 | Table
62 | ||row1 col1|row1 col2|row1 col3
63 | row2 col1|row2 col2|row2 col3
64 | row3 col1|row3 col2|row3 col3||
65 |
66 | Lists:
67 | *bla
68 | **bla-1
69 | ++continue-bla-1
70 | ***bla-2
71 | ++continue-bla-1
72 | *bla
73 | +continue-bla
74 | #bla
75 | ** tra-la-la
76 | +continue-bla
77 | #bla
78 |
79 | Plugin (standard):
80 | {PLUGIN(attr="my attr")}
81 | Plugin Body
82 | {PLUGIN}
83 |
84 | Plugin (inline):
85 | {plugin attr="my attr"}
86 |
87 |
88 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/tiki/tiki.css:
--------------------------------------------------------------------------------
1 | .cm-tw-syntaxerror {
2 | color: #FFF;
3 | background-color: #900;
4 | }
5 |
6 | .cm-tw-deleted {
7 | text-decoration: line-through;
8 | }
9 |
10 | .cm-tw-header5 {
11 | font-weight: bold;
12 | }
13 | .cm-tw-listitem:first-child { /*Added first child to fix duplicate padding when highlighting*/
14 | padding-left: 10px;
15 | }
16 |
17 | .cm-tw-box {
18 | border-top-width: 0px ! important;
19 | border-style: solid;
20 | border-width: 1px;
21 | border-color: inherit;
22 | }
23 |
24 | .cm-tw-underline {
25 | text-decoration: underline;
26 | }
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/toml/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: TOML Mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | TOML Mode
27 |
28 | # This is a TOML document. Boom.
29 |
30 | title = "TOML Example"
31 |
32 | [owner]
33 | name = "Tom Preston-Werner"
34 | organization = "GitHub"
35 | bio = "GitHub Cofounder & CEO\nLikes tater tots and beer."
36 | dob = 1979-05-27T07:32:00Z # First class dates? Why not?
37 |
38 | [database]
39 | server = "192.168.1.1"
40 | ports = [ 8001, 8001, 8002 ]
41 | connection_max = 5000
42 | enabled = true
43 |
44 | [servers]
45 |
46 | # You can indent as you please. Tabs or spaces. TOML don't care.
47 | [servers.alpha]
48 | ip = "10.0.0.1"
49 | dc = "eqdc10"
50 |
51 | [servers.beta]
52 | ip = "10.0.0.2"
53 | dc = "eqdc10"
54 |
55 | [clients]
56 | data = [ ["gamma", "delta"], [1, 2] ]
57 |
58 | # Line breaks are OK when inside arrays
59 | hosts = [
60 | "alpha",
61 | "omega"
62 | ]
63 |
64 |
70 | The TOML Mode
71 | Created by Forbes Lindesay.
72 | MIME type defined: text/x-toml
.
73 |
74 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/tornado/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Tornado template mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
27 |
28 |
29 | Tornado template mode
30 |
31 |
32 |
33 |
34 | My Tornado web application
35 |
36 |
37 |
38 | {{ title }}
39 |
40 |
41 | {% for item in items %}
42 | {% item.name %}
43 | {% empty %}
44 | You have no items in your list.
45 | {% end %}
46 |
47 |
48 |
49 |
50 |
51 |
59 |
60 | Mode for HTML with embedded Tornado template markup.
61 |
62 | MIME types defined: text/x-tornado
63 |
64 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/turtle/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Turtle mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Turtle mode
27 |
28 | @prefix foaf: .
29 | @prefix geo: .
30 | @prefix rdf: .
31 |
32 |
33 | a foaf:Person;
34 | foaf:interest ;
35 | foaf:based_near [
36 | geo:lat "34.0736111" ;
37 | geo:lon "-118.3994444"
38 | ]
39 |
40 |
41 |
47 |
48 | MIME types defined: text/turtle
.
49 |
50 |
51 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/vbscript/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: VBScript mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | VBScript mode
27 |
28 |
29 |
30 | ' Pete Guhl
31 | ' 03-04-2012
32 | '
33 | ' Basic VBScript support for codemirror2
34 |
35 | Const ForReading = 1, ForWriting = 2, ForAppending = 8
36 |
37 | Call Sub020_PostBroadcastToUrbanAirship(strUserName, strPassword, intTransmitID, strResponse)
38 |
39 | If Not IsNull(strResponse) AND Len(strResponse) = 0 Then
40 | boolTransmitOkYN = False
41 | Else
42 | ' WScript.Echo "Oh Happy Day! Oh Happy DAY!"
43 | boolTransmitOkYN = True
44 | End If
45 |
46 |
47 |
53 |
54 | MIME types defined: text/vbscript
.
55 |
56 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/xml/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: XML mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | XML mode
27 |
28 | <html style="color: green">
29 | <!-- this is a comment -->
30 | <head>
31 | <title>HTML Example</title>
32 | </head>
33 | <body>
34 | The indentation tries to be <em>somewhat "do what
35 | I mean"</em>... but might not match your style.
36 | </body>
37 | </html>
38 |
39 |
45 | The XML mode supports two configuration parameters:
46 |
47 | htmlMode (boolean)
48 | This switches the mode to parse HTML instead of XML. This
49 | means attributes do not have to be quoted, and some elements
50 | (such as br
) do not require a closing tag.
51 | alignCDATA (boolean)
52 | Setting this to true will force the opening tag of CDATA
53 | blocks to not be indented.
54 |
55 |
56 | MIME types defined: application/xml
, text/html
.
57 |
58 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/xml/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 2}, "xml"), mname = "xml";
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), mname); }
7 |
8 | MT("matching",
9 | "[tag&bracket <][tag top][tag&bracket >]",
10 | " text",
11 | " [tag&bracket <][tag inner][tag&bracket />]",
12 | "[tag&bracket ][tag top][tag&bracket >]");
13 |
14 | MT("nonmatching",
15 | "[tag&bracket <][tag top][tag&bracket >]",
16 | " [tag&bracket <][tag inner][tag&bracket />]",
17 | " [tag&bracket ][tag&error tip][tag&bracket&error >]");
18 |
19 | MT("doctype",
20 | "[meta ]",
21 | "[tag&bracket <][tag top][tag&bracket />]");
22 |
23 | MT("cdata",
24 | "[tag&bracket <][tag top][tag&bracket >]",
25 | " [atom ]",
27 | "[tag&bracket ][tag top][tag&bracket >]");
28 |
29 | // HTML tests
30 | mode = CodeMirror.getMode({indentUnit: 2}, "text/html");
31 |
32 | MT("selfclose",
33 | "[tag&bracket <][tag html][tag&bracket >]",
34 | " [tag&bracket <][tag link] [attribute rel]=[string stylesheet] [attribute href]=[string \"/foobar\"][tag&bracket >]",
35 | "[tag&bracket ][tag html][tag&bracket >]");
36 |
37 | MT("list",
38 | "[tag&bracket <][tag ol][tag&bracket >]",
39 | " [tag&bracket <][tag li][tag&bracket >]one",
40 | " [tag&bracket <][tag li][tag&bracket >]two",
41 | "[tag&bracket ][tag ol][tag&bracket >]");
42 |
43 | MT("valueless",
44 | "[tag&bracket <][tag input] [attribute type]=[string checkbox] [attribute checked][tag&bracket />]");
45 |
46 | MT("pThenArticle",
47 | "[tag&bracket <][tag p][tag&bracket >]",
48 | " foo",
49 | "[tag&bracket <][tag article][tag&bracket >]bar");
50 |
51 | })();
52 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/mode/z80/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Z80 assembly mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Z80 assembly mode
27 |
28 |
29 |
30 | #include "ti83plus.inc"
31 | #define progStart $9D95
32 | .org progStart-2
33 | .db $BB,$6D
34 |
35 | bcall(_ClrLCDFull)
36 | ld hl,0
37 | ld (CurCol),hl
38 | ld hl,Message
39 | bcall(_PutS) ; Displays the string
40 | bcall(_NewLine)
41 | ret
42 | Message:
43 | .db "Hello world!",0
44 |
45 |
46 |
51 |
52 | MIME types defined: text/x-z80
, text/x-ez80
.
53 |
54 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "codemirror",
3 | "version":"5.3.0",
4 | "main": "lib/codemirror.js",
5 | "description": "In-browser code editing made bearable",
6 | "license": "MIT",
7 | "directories": {"lib": "./lib"},
8 | "scripts": {"test": "node ./test/run.js"},
9 | "devDependencies": {"node-static": "0.6.0",
10 | "phantomjs": "1.9.2-5",
11 | "blint": ">=0.1.1"},
12 | "bugs": "http://github.com/codemirror/CodeMirror/issues",
13 | "keywords": ["JavaScript", "CodeMirror", "Editor"],
14 | "homepage": "http://codemirror.net",
15 | "maintainers":[{"name": "Marijn Haverbeke",
16 | "email": "marijnh@gmail.com",
17 | "web": "http://marijnhaverbeke.nl"}],
18 | "repository": {"type": "git",
19 | "url": "https://github.com/codemirror/CodeMirror.git"}
20 | }
21 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/test/lint.js:
--------------------------------------------------------------------------------
1 | var blint = require("blint");
2 |
3 | ["mode", "lib", "addon", "keymap"].forEach(function(dir) {
4 | blint.checkDir(dir, {
5 | browser: true,
6 | allowedGlobals: ["CodeMirror", "define", "test", "requirejs"],
7 | blob: "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: http:\/\/codemirror.net\/LICENSE\n\n"
8 | });
9 | });
10 |
11 | module.exports = {ok: blint.success()};
12 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/test/mode_test.css:
--------------------------------------------------------------------------------
1 | .mt-output .mt-token {
2 | border: 1px solid #ddd;
3 | white-space: pre;
4 | font-family: "Consolas", monospace;
5 | text-align: center;
6 | }
7 |
8 | .mt-output .mt-style {
9 | font-size: x-small;
10 | }
11 |
12 | .mt-output .mt-state {
13 | font-size: x-small;
14 | vertical-align: top;
15 | }
16 |
17 | .mt-output .mt-state-row {
18 | display: none;
19 | }
20 |
21 | .mt-state-unhide .mt-output .mt-state-row {
22 | display: table-row;
23 | }
24 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/test/phantom_driver.js:
--------------------------------------------------------------------------------
1 | var page = require('webpage').create();
2 |
3 | page.open("http://localhost:3000/test/index.html", function (status) {
4 | if (status != "success") {
5 | console.log("page couldn't be loaded successfully");
6 | phantom.exit(1);
7 | }
8 | waitFor(function () {
9 | return page.evaluate(function () {
10 | var output = document.getElementById('status');
11 | if (!output) { return false; }
12 | return (/^(\d+ failures?|all passed)/i).test(output.innerText);
13 | });
14 | }, function () {
15 | var failed = page.evaluate(function () { return window.failed; });
16 | var output = page.evaluate(function () {
17 | return document.getElementById('output').innerText + "\n" +
18 | document.getElementById('status').innerText;
19 | });
20 | console.log(output);
21 | phantom.exit(failed > 0 ? 1 : 0);
22 | });
23 | });
24 |
25 | function waitFor (test, cb) {
26 | if (test()) {
27 | cb();
28 | } else {
29 | setTimeout(function () { waitFor(test, cb); }, 250);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/test/run.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var ok = require("./lint").ok;
4 |
5 | var files = new (require('node-static').Server)();
6 |
7 | var server = require('http').createServer(function (req, res) {
8 | req.addListener('end', function () {
9 | files.serve(req, res, function (err/*, result */) {
10 | if (err) {
11 | console.error(err);
12 | process.exit(1);
13 | }
14 | });
15 | }).resume();
16 | }).addListener('error', function (err) {
17 | throw err;
18 | }).listen(3000, function () {
19 | var childProcess = require('child_process');
20 | var phantomjs = require("phantomjs");
21 | var childArgs = [
22 | require("path").join(__dirname, 'phantom_driver.js')
23 | ];
24 | childProcess.execFile(phantomjs.path, childArgs, function (err, stdout, stderr) {
25 | server.close();
26 | console.log(stdout);
27 | if (err) console.error(err);
28 | if (stderr) console.error(stderr);
29 | process.exit(err || stderr || !ok ? 1 : 0);
30 | });
31 | });
32 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/3024-day.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: 3024 day
4 | Author: Jan T. Sott (http://github.com/idleberg)
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-3024-day.CodeMirror {background: #f7f7f7; color: #3a3432;}
12 | .cm-s-3024-day div.CodeMirror-selected {background: #d6d5d4 !important;}
13 | .cm-s-3024-day.CodeMirror ::selection { background: #d6d5d4; }
14 | .cm-s-3024-day.CodeMirror ::-moz-selection { background: #d9d9d9; }
15 |
16 | .cm-s-3024-day .CodeMirror-gutters {background: #f7f7f7; border-right: 0px;}
17 | .cm-s-3024-day .CodeMirror-guttermarker { color: #db2d20; }
18 | .cm-s-3024-day .CodeMirror-guttermarker-subtle { color: #807d7c; }
19 | .cm-s-3024-day .CodeMirror-linenumber {color: #807d7c;}
20 |
21 | .cm-s-3024-day .CodeMirror-cursor {border-left: 1px solid #5c5855 !important;}
22 |
23 | .cm-s-3024-day span.cm-comment {color: #cdab53;}
24 | .cm-s-3024-day span.cm-atom {color: #a16a94;}
25 | .cm-s-3024-day span.cm-number {color: #a16a94;}
26 |
27 | .cm-s-3024-day span.cm-property, .cm-s-3024-day span.cm-attribute {color: #01a252;}
28 | .cm-s-3024-day span.cm-keyword {color: #db2d20;}
29 | .cm-s-3024-day span.cm-string {color: #fded02;}
30 |
31 | .cm-s-3024-day span.cm-variable {color: #01a252;}
32 | .cm-s-3024-day span.cm-variable-2 {color: #01a0e4;}
33 | .cm-s-3024-day span.cm-def {color: #e8bbd0;}
34 | .cm-s-3024-day span.cm-bracket {color: #3a3432;}
35 | .cm-s-3024-day span.cm-tag {color: #db2d20;}
36 | .cm-s-3024-day span.cm-link {color: #a16a94;}
37 | .cm-s-3024-day span.cm-error {background: #db2d20; color: #5c5855;}
38 |
39 | .cm-s-3024-day .CodeMirror-activeline-background {background: #e8f2ff !important;}
40 | .cm-s-3024-day .CodeMirror-matchingbracket { text-decoration: underline; color: #a16a94 !important;}
41 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/3024-night.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: 3024 night
4 | Author: Jan T. Sott (http://github.com/idleberg)
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-3024-night.CodeMirror {background: #090300; color: #d6d5d4;}
12 | .cm-s-3024-night div.CodeMirror-selected {background: #3a3432 !important;}
13 | .cm-s-3024-night.CodeMirror ::selection { background: rgba(58, 52, 50, .99); }
14 | .cm-s-3024-night.CodeMirror ::-moz-selection { background: rgba(58, 52, 50, .99); }
15 | .cm-s-3024-night .CodeMirror-gutters {background: #090300; border-right: 0px;}
16 | .cm-s-3024-night .CodeMirror-guttermarker { color: #db2d20; }
17 | .cm-s-3024-night .CodeMirror-guttermarker-subtle { color: #5c5855; }
18 | .cm-s-3024-night .CodeMirror-linenumber {color: #5c5855;}
19 |
20 | .cm-s-3024-night .CodeMirror-cursor {border-left: 1px solid #807d7c !important;}
21 |
22 | .cm-s-3024-night span.cm-comment {color: #cdab53;}
23 | .cm-s-3024-night span.cm-atom {color: #a16a94;}
24 | .cm-s-3024-night span.cm-number {color: #a16a94;}
25 |
26 | .cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute {color: #01a252;}
27 | .cm-s-3024-night span.cm-keyword {color: #db2d20;}
28 | .cm-s-3024-night span.cm-string {color: #fded02;}
29 |
30 | .cm-s-3024-night span.cm-variable {color: #01a252;}
31 | .cm-s-3024-night span.cm-variable-2 {color: #01a0e4;}
32 | .cm-s-3024-night span.cm-def {color: #e8bbd0;}
33 | .cm-s-3024-night span.cm-bracket {color: #d6d5d4;}
34 | .cm-s-3024-night span.cm-tag {color: #db2d20;}
35 | .cm-s-3024-night span.cm-link {color: #a16a94;}
36 | .cm-s-3024-night span.cm-error {background: #db2d20; color: #807d7c;}
37 |
38 | .cm-s-3024-night .CodeMirror-activeline-background {background: #2F2F2F !important;}
39 | .cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
40 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/ambiance-mobile.css:
--------------------------------------------------------------------------------
1 | .cm-s-ambiance.CodeMirror {
2 | -webkit-box-shadow: none;
3 | -moz-box-shadow: none;
4 | box-shadow: none;
5 | }
6 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/base16-dark.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Base16 Default Dark
4 | Author: Chris Kempson (http://chriskempson.com)
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-chrome-devtools)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-base16-dark.CodeMirror {background: #151515; color: #e0e0e0;}
12 | .cm-s-base16-dark div.CodeMirror-selected {background: #303030 !important;}
13 | .cm-s-base16-dark.CodeMirror ::selection { background: rgba(48, 48, 48, .99); }
14 | .cm-s-base16-dark.CodeMirror ::-moz-selection { background: rgba(48, 48, 48, .99); }
15 | .cm-s-base16-dark .CodeMirror-gutters {background: #151515; border-right: 0px;}
16 | .cm-s-base16-dark .CodeMirror-guttermarker { color: #ac4142; }
17 | .cm-s-base16-dark .CodeMirror-guttermarker-subtle { color: #505050; }
18 | .cm-s-base16-dark .CodeMirror-linenumber {color: #505050;}
19 | .cm-s-base16-dark .CodeMirror-cursor {border-left: 1px solid #b0b0b0 !important;}
20 |
21 | .cm-s-base16-dark span.cm-comment {color: #8f5536;}
22 | .cm-s-base16-dark span.cm-atom {color: #aa759f;}
23 | .cm-s-base16-dark span.cm-number {color: #aa759f;}
24 |
25 | .cm-s-base16-dark span.cm-property, .cm-s-base16-dark span.cm-attribute {color: #90a959;}
26 | .cm-s-base16-dark span.cm-keyword {color: #ac4142;}
27 | .cm-s-base16-dark span.cm-string {color: #f4bf75;}
28 |
29 | .cm-s-base16-dark span.cm-variable {color: #90a959;}
30 | .cm-s-base16-dark span.cm-variable-2 {color: #6a9fb5;}
31 | .cm-s-base16-dark span.cm-def {color: #d28445;}
32 | .cm-s-base16-dark span.cm-bracket {color: #e0e0e0;}
33 | .cm-s-base16-dark span.cm-tag {color: #ac4142;}
34 | .cm-s-base16-dark span.cm-link {color: #aa759f;}
35 | .cm-s-base16-dark span.cm-error {background: #ac4142; color: #b0b0b0;}
36 |
37 | .cm-s-base16-dark .CodeMirror-activeline-background {background: #202020 !important;}
38 | .cm-s-base16-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
39 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/base16-light.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Base16 Default Light
4 | Author: Chris Kempson (http://chriskempson.com)
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-chrome-devtools)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-base16-light.CodeMirror {background: #f5f5f5; color: #202020;}
12 | .cm-s-base16-light div.CodeMirror-selected {background: #e0e0e0 !important;}
13 | .cm-s-base16-light.CodeMirror ::selection { background: #e0e0e0; }
14 | .cm-s-base16-light.CodeMirror ::-moz-selection { background: #e0e0e0; }
15 | .cm-s-base16-light .CodeMirror-gutters {background: #f5f5f5; border-right: 0px;}
16 | .cm-s-base16-light .CodeMirror-guttermarker { color: #ac4142; }
17 | .cm-s-base16-light .CodeMirror-guttermarker-subtle { color: #b0b0b0; }
18 | .cm-s-base16-light .CodeMirror-linenumber {color: #b0b0b0;}
19 | .cm-s-base16-light .CodeMirror-cursor {border-left: 1px solid #505050 !important;}
20 |
21 | .cm-s-base16-light span.cm-comment {color: #8f5536;}
22 | .cm-s-base16-light span.cm-atom {color: #aa759f;}
23 | .cm-s-base16-light span.cm-number {color: #aa759f;}
24 |
25 | .cm-s-base16-light span.cm-property, .cm-s-base16-light span.cm-attribute {color: #90a959;}
26 | .cm-s-base16-light span.cm-keyword {color: #ac4142;}
27 | .cm-s-base16-light span.cm-string {color: #f4bf75;}
28 |
29 | .cm-s-base16-light span.cm-variable {color: #90a959;}
30 | .cm-s-base16-light span.cm-variable-2 {color: #6a9fb5;}
31 | .cm-s-base16-light span.cm-def {color: #d28445;}
32 | .cm-s-base16-light span.cm-bracket {color: #202020;}
33 | .cm-s-base16-light span.cm-tag {color: #ac4142;}
34 | .cm-s-base16-light span.cm-link {color: #aa759f;}
35 | .cm-s-base16-light span.cm-error {background: #ac4142; color: #505050;}
36 |
37 | .cm-s-base16-light .CodeMirror-activeline-background {background: #DDDCDC !important;}
38 | .cm-s-base16-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
39 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/blackboard.css:
--------------------------------------------------------------------------------
1 | /* Port of TextMate's Blackboard theme */
2 |
3 | .cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; }
4 | .cm-s-blackboard .CodeMirror-selected { background: #253B76 !important; }
5 | .cm-s-blackboard.CodeMirror ::selection { background: rgba(37, 59, 118, .99); }
6 | .cm-s-blackboard.CodeMirror ::-moz-selection { background: rgba(37, 59, 118, .99); }
7 | .cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; }
8 | .cm-s-blackboard .CodeMirror-guttermarker { color: #FBDE2D; }
9 | .cm-s-blackboard .CodeMirror-guttermarker-subtle { color: #888; }
10 | .cm-s-blackboard .CodeMirror-linenumber { color: #888; }
11 | .cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; }
12 |
13 | .cm-s-blackboard .cm-keyword { color: #FBDE2D; }
14 | .cm-s-blackboard .cm-atom { color: #D8FA3C; }
15 | .cm-s-blackboard .cm-number { color: #D8FA3C; }
16 | .cm-s-blackboard .cm-def { color: #8DA6CE; }
17 | .cm-s-blackboard .cm-variable { color: #FF6400; }
18 | .cm-s-blackboard .cm-operator { color: #FBDE2D;}
19 | .cm-s-blackboard .cm-comment { color: #AEAEAE; }
20 | .cm-s-blackboard .cm-string { color: #61CE3C; }
21 | .cm-s-blackboard .cm-string-2 { color: #61CE3C; }
22 | .cm-s-blackboard .cm-meta { color: #D8FA3C; }
23 | .cm-s-blackboard .cm-builtin { color: #8DA6CE; }
24 | .cm-s-blackboard .cm-tag { color: #8DA6CE; }
25 | .cm-s-blackboard .cm-attribute { color: #8DA6CE; }
26 | .cm-s-blackboard .cm-header { color: #FF6400; }
27 | .cm-s-blackboard .cm-hr { color: #AEAEAE; }
28 | .cm-s-blackboard .cm-link { color: #8DA6CE; }
29 | .cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; }
30 |
31 | .cm-s-blackboard .CodeMirror-activeline-background {background: #3C3636 !important;}
32 | .cm-s-blackboard .CodeMirror-matchingbracket {outline:1px solid grey;color:white !important}
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/cobalt.css:
--------------------------------------------------------------------------------
1 | .cm-s-cobalt.CodeMirror { background: #002240; color: white; }
2 | .cm-s-cobalt div.CodeMirror-selected { background: #b36539 !important; }
3 | .cm-s-cobalt.CodeMirror ::selection { background: rgba(179, 101, 57, .99); }
4 | .cm-s-cobalt.CodeMirror ::-moz-selection { background: rgba(179, 101, 57, .99); }
5 | .cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
6 | .cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; }
7 | .cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
8 | .cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; }
9 | .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; }
10 |
11 | .cm-s-cobalt span.cm-comment { color: #08f; }
12 | .cm-s-cobalt span.cm-atom { color: #845dc4; }
13 | .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
14 | .cm-s-cobalt span.cm-keyword { color: #ffee80; }
15 | .cm-s-cobalt span.cm-string { color: #3ad900; }
16 | .cm-s-cobalt span.cm-meta { color: #ff9d00; }
17 | .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
18 | .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; }
19 | .cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
20 | .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
21 | .cm-s-cobalt span.cm-link { color: #845dc4; }
22 | .cm-s-cobalt span.cm-error { color: #9d1e15; }
23 |
24 | .cm-s-cobalt .CodeMirror-activeline-background {background: #002D57 !important;}
25 | .cm-s-cobalt .CodeMirror-matchingbracket {outline:1px solid grey;color:white !important}
26 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/colorforth.css:
--------------------------------------------------------------------------------
1 | .cm-s-colorforth.CodeMirror { background: #000000; color: #f8f8f8; }
2 | .cm-s-colorforth .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
3 | .cm-s-colorforth .CodeMirror-guttermarker { color: #FFBD40; }
4 | .cm-s-colorforth .CodeMirror-guttermarker-subtle { color: #78846f; }
5 | .cm-s-colorforth .CodeMirror-linenumber { color: #bababa; }
6 | .cm-s-colorforth .CodeMirror-cursor { border-left: 1px solid white !important; }
7 |
8 | .cm-s-colorforth span.cm-comment { color: #ededed; }
9 | .cm-s-colorforth span.cm-def { color: #ff1c1c; font-weight:bold; }
10 | .cm-s-colorforth span.cm-keyword { color: #ffd900; }
11 | .cm-s-colorforth span.cm-builtin { color: #00d95a; }
12 | .cm-s-colorforth span.cm-variable { color: #73ff00; }
13 | .cm-s-colorforth span.cm-string { color: #007bff; }
14 | .cm-s-colorforth span.cm-number { color: #00c4ff; }
15 | .cm-s-colorforth span.cm-atom { color: #606060; }
16 |
17 | .cm-s-colorforth span.cm-variable-2 { color: #EEE; }
18 | .cm-s-colorforth span.cm-variable-3 { color: #DDD; }
19 | .cm-s-colorforth span.cm-property {}
20 | .cm-s-colorforth span.cm-operator {}
21 |
22 | .cm-s-colorforth span.cm-meta { color: yellow; }
23 | .cm-s-colorforth span.cm-qualifier { color: #FFF700; }
24 | .cm-s-colorforth span.cm-bracket { color: #cc7; }
25 | .cm-s-colorforth span.cm-tag { color: #FFBD40; }
26 | .cm-s-colorforth span.cm-attribute { color: #FFF700; }
27 | .cm-s-colorforth span.cm-error { color: #f00; }
28 |
29 | .cm-s-colorforth .CodeMirror-selected { background: #333d53 !important; }
30 |
31 | .cm-s-colorforth span.cm-compilation { background: rgba(255, 255, 255, 0.12); }
32 |
33 | .cm-s-colorforth .CodeMirror-activeline-background {background: #253540 !important;}
34 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/eclipse.css:
--------------------------------------------------------------------------------
1 | .cm-s-eclipse span.cm-meta {color: #FF1717;}
2 | .cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; }
3 | .cm-s-eclipse span.cm-atom {color: #219;}
4 | .cm-s-eclipse span.cm-number {color: #164;}
5 | .cm-s-eclipse span.cm-def {color: #00f;}
6 | .cm-s-eclipse span.cm-variable {color: black;}
7 | .cm-s-eclipse span.cm-variable-2 {color: #0000C0;}
8 | .cm-s-eclipse span.cm-variable-3 {color: #0000C0;}
9 | .cm-s-eclipse span.cm-property {color: black;}
10 | .cm-s-eclipse span.cm-operator {color: black;}
11 | .cm-s-eclipse span.cm-comment {color: #3F7F5F;}
12 | .cm-s-eclipse span.cm-string {color: #2A00FF;}
13 | .cm-s-eclipse span.cm-string-2 {color: #f50;}
14 | .cm-s-eclipse span.cm-qualifier {color: #555;}
15 | .cm-s-eclipse span.cm-builtin {color: #30a;}
16 | .cm-s-eclipse span.cm-bracket {color: #cc7;}
17 | .cm-s-eclipse span.cm-tag {color: #170;}
18 | .cm-s-eclipse span.cm-attribute {color: #00c;}
19 | .cm-s-eclipse span.cm-link {color: #219;}
20 | .cm-s-eclipse span.cm-error {color: #f00;}
21 |
22 | .cm-s-eclipse .CodeMirror-activeline-background {background: #e8f2ff !important;}
23 | .cm-s-eclipse .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;}
24 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/elegant.css:
--------------------------------------------------------------------------------
1 | .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;}
2 | .cm-s-elegant span.cm-comment {color: #262; font-style: italic; line-height: 1em;}
3 | .cm-s-elegant span.cm-meta {color: #555; font-style: italic; line-height: 1em;}
4 | .cm-s-elegant span.cm-variable {color: black;}
5 | .cm-s-elegant span.cm-variable-2 {color: #b11;}
6 | .cm-s-elegant span.cm-qualifier {color: #555;}
7 | .cm-s-elegant span.cm-keyword {color: #730;}
8 | .cm-s-elegant span.cm-builtin {color: #30a;}
9 | .cm-s-elegant span.cm-link {color: #762;}
10 | .cm-s-elegant span.cm-error {background-color: #fdd;}
11 |
12 | .cm-s-elegant .CodeMirror-activeline-background {background: #e8f2ff !important;}
13 | .cm-s-elegant .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;}
14 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/erlang-dark.css:
--------------------------------------------------------------------------------
1 | .cm-s-erlang-dark.CodeMirror { background: #002240; color: white; }
2 | .cm-s-erlang-dark div.CodeMirror-selected { background: #b36539 !important; }
3 | .cm-s-erlang-dark.CodeMirror ::selection { background: rgba(179, 101, 57, .99); }
4 | .cm-s-erlang-dark.CodeMirror ::-moz-selection { background: rgba(179, 101, 57, .99); }
5 | .cm-s-erlang-dark .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
6 | .cm-s-erlang-dark .CodeMirror-guttermarker { color: white; }
7 | .cm-s-erlang-dark .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
8 | .cm-s-erlang-dark .CodeMirror-linenumber { color: #d0d0d0; }
9 | .cm-s-erlang-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
10 |
11 | .cm-s-erlang-dark span.cm-atom { color: #f133f1; }
12 | .cm-s-erlang-dark span.cm-attribute { color: #ff80e1; }
13 | .cm-s-erlang-dark span.cm-bracket { color: #ff9d00; }
14 | .cm-s-erlang-dark span.cm-builtin { color: #eaa; }
15 | .cm-s-erlang-dark span.cm-comment { color: #77f; }
16 | .cm-s-erlang-dark span.cm-def { color: #e7a; }
17 | .cm-s-erlang-dark span.cm-keyword { color: #ffee80; }
18 | .cm-s-erlang-dark span.cm-meta { color: #50fefe; }
19 | .cm-s-erlang-dark span.cm-number { color: #ffd0d0; }
20 | .cm-s-erlang-dark span.cm-operator { color: #d55; }
21 | .cm-s-erlang-dark span.cm-property { color: #ccc; }
22 | .cm-s-erlang-dark span.cm-qualifier { color: #ccc; }
23 | .cm-s-erlang-dark span.cm-quote { color: #ccc; }
24 | .cm-s-erlang-dark span.cm-special { color: #ffbbbb; }
25 | .cm-s-erlang-dark span.cm-string { color: #3ad900; }
26 | .cm-s-erlang-dark span.cm-string-2 { color: #ccc; }
27 | .cm-s-erlang-dark span.cm-tag { color: #9effff; }
28 | .cm-s-erlang-dark span.cm-variable { color: #50fe50; }
29 | .cm-s-erlang-dark span.cm-variable-2 { color: #e0e; }
30 | .cm-s-erlang-dark span.cm-variable-3 { color: #ccc; }
31 | .cm-s-erlang-dark span.cm-error { color: #9d1e15; }
32 |
33 | .cm-s-erlang-dark .CodeMirror-activeline-background {background: #013461 !important;}
34 | .cm-s-erlang-dark .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
35 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/mbo.css:
--------------------------------------------------------------------------------
1 | /****************************************************************/
2 | /* Based on mbonaci's Brackets mbo theme */
3 | /* https://github.com/mbonaci/global/blob/master/Mbo.tmTheme */
4 | /* Create your own: http://tmtheme-editor.herokuapp.com */
5 | /****************************************************************/
6 |
7 | .cm-s-mbo.CodeMirror {background: #2c2c2c; color: #ffffec;}
8 | .cm-s-mbo div.CodeMirror-selected {background: #716C62 !important;}
9 | .cm-s-mbo.CodeMirror ::selection { background: rgba(113, 108, 98, .99); }
10 | .cm-s-mbo.CodeMirror ::-moz-selection { background: rgba(113, 108, 98, .99); }
11 | .cm-s-mbo .CodeMirror-gutters {background: #4e4e4e; border-right: 0px;}
12 | .cm-s-mbo .CodeMirror-guttermarker { color: white; }
13 | .cm-s-mbo .CodeMirror-guttermarker-subtle { color: grey; }
14 | .cm-s-mbo .CodeMirror-linenumber {color: #dadada;}
15 | .cm-s-mbo .CodeMirror-cursor {border-left: 1px solid #ffffec !important;}
16 |
17 | .cm-s-mbo span.cm-comment {color: #95958a;}
18 | .cm-s-mbo span.cm-atom {color: #00a8c6;}
19 | .cm-s-mbo span.cm-number {color: #00a8c6;}
20 |
21 | .cm-s-mbo span.cm-property, .cm-s-mbo span.cm-attribute {color: #9ddfe9;}
22 | .cm-s-mbo span.cm-keyword {color: #ffb928;}
23 | .cm-s-mbo span.cm-string {color: #ffcf6c;}
24 | .cm-s-mbo span.cm-string.cm-property {color: #ffffec;}
25 |
26 | .cm-s-mbo span.cm-variable {color: #ffffec;}
27 | .cm-s-mbo span.cm-variable-2 {color: #00a8c6;}
28 | .cm-s-mbo span.cm-def {color: #ffffec;}
29 | .cm-s-mbo span.cm-bracket {color: #fffffc; font-weight: bold;}
30 | .cm-s-mbo span.cm-tag {color: #9ddfe9;}
31 | .cm-s-mbo span.cm-link {color: #f54b07;}
32 | .cm-s-mbo span.cm-error {border-bottom: #636363; color: #ffffec;}
33 | .cm-s-mbo span.cm-qualifier {color: #ffffec;}
34 |
35 | .cm-s-mbo .CodeMirror-activeline-background {background: #494b41 !important;}
36 | .cm-s-mbo .CodeMirror-matchingbracket {color: #222 !important;}
37 | .cm-s-mbo .CodeMirror-matchingtag {background: rgba(255, 255, 255, .37);}
38 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/midnight.css:
--------------------------------------------------------------------------------
1 | /* Based on the theme at http://bonsaiden.github.com/JavaScript-Garden */
2 |
3 | /**/
4 | .cm-s-midnight span.CodeMirror-matchhighlight { background: #494949; }
5 | .cm-s-midnight.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67 !important; }
6 |
7 | /**/
8 | .cm-s-midnight .CodeMirror-activeline-background {background: #253540 !important;}
9 |
10 | .cm-s-midnight.CodeMirror {
11 | background: #0F192A;
12 | color: #D1EDFF;
13 | }
14 |
15 | .cm-s-midnight.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
16 |
17 | .cm-s-midnight div.CodeMirror-selected {background: #314D67 !important;}
18 | .cm-s-midnight.CodeMirror ::selection { background: rgba(49, 77, 103, .99); }
19 | .cm-s-midnight.CodeMirror ::-moz-selection { background: rgba(49, 77, 103, .99); }
20 | .cm-s-midnight .CodeMirror-gutters {background: #0F192A; border-right: 1px solid;}
21 | .cm-s-midnight .CodeMirror-guttermarker { color: white; }
22 | .cm-s-midnight .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
23 | .cm-s-midnight .CodeMirror-linenumber {color: #D0D0D0;}
24 | .cm-s-midnight .CodeMirror-cursor {
25 | border-left: 1px solid #F8F8F0 !important;
26 | }
27 |
28 | .cm-s-midnight span.cm-comment {color: #428BDD;}
29 | .cm-s-midnight span.cm-atom {color: #AE81FF;}
30 | .cm-s-midnight span.cm-number {color: #D1EDFF;}
31 |
32 | .cm-s-midnight span.cm-property, .cm-s-midnight span.cm-attribute {color: #A6E22E;}
33 | .cm-s-midnight span.cm-keyword {color: #E83737;}
34 | .cm-s-midnight span.cm-string {color: #1DC116;}
35 |
36 | .cm-s-midnight span.cm-variable {color: #FFAA3E;}
37 | .cm-s-midnight span.cm-variable-2 {color: #FFAA3E;}
38 | .cm-s-midnight span.cm-def {color: #4DD;}
39 | .cm-s-midnight span.cm-bracket {color: #D1EDFF;}
40 | .cm-s-midnight span.cm-tag {color: #449;}
41 | .cm-s-midnight span.cm-link {color: #AE81FF;}
42 | .cm-s-midnight span.cm-error {background: #F92672; color: #F8F8F0;}
43 |
44 | .cm-s-midnight .CodeMirror-matchingbracket {
45 | text-decoration: underline;
46 | color: white !important;
47 | }
48 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/monokai.css:
--------------------------------------------------------------------------------
1 | /* Based on Sublime Text's Monokai theme */
2 |
3 | .cm-s-monokai.CodeMirror {background: #272822; color: #f8f8f2;}
4 | .cm-s-monokai div.CodeMirror-selected {background: #49483E !important;}
5 | .cm-s-monokai.CodeMirror ::selection { background: rgba(73, 72, 62, .99); }
6 | .cm-s-monokai.CodeMirror ::-moz-selection { background: rgba(73, 72, 62, .99); }
7 | .cm-s-monokai .CodeMirror-gutters {background: #272822; border-right: 0px;}
8 | .cm-s-monokai .CodeMirror-guttermarker { color: white; }
9 | .cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
10 | .cm-s-monokai .CodeMirror-linenumber {color: #d0d0d0;}
11 | .cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;}
12 |
13 | .cm-s-monokai span.cm-comment {color: #75715e;}
14 | .cm-s-monokai span.cm-atom {color: #ae81ff;}
15 | .cm-s-monokai span.cm-number {color: #ae81ff;}
16 |
17 | .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;}
18 | .cm-s-monokai span.cm-keyword {color: #f92672;}
19 | .cm-s-monokai span.cm-string {color: #e6db74;}
20 |
21 | .cm-s-monokai span.cm-variable {color: #f8f8f2;}
22 | .cm-s-monokai span.cm-variable-2 {color: #9effff;}
23 | .cm-s-monokai span.cm-variable-3 {color: #66d9ef;}
24 | .cm-s-monokai span.cm-def {color: #fd971f;}
25 | .cm-s-monokai span.cm-bracket {color: #f8f8f2;}
26 | .cm-s-monokai span.cm-tag {color: #f92672;}
27 | .cm-s-monokai span.cm-link {color: #ae81ff;}
28 | .cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;}
29 |
30 | .cm-s-monokai .CodeMirror-activeline-background {background: #373831 !important;}
31 | .cm-s-monokai .CodeMirror-matchingbracket {
32 | text-decoration: underline;
33 | color: white !important;
34 | }
35 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/neat.css:
--------------------------------------------------------------------------------
1 | .cm-s-neat span.cm-comment { color: #a86; }
2 | .cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }
3 | .cm-s-neat span.cm-string { color: #a22; }
4 | .cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; }
5 | .cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; }
6 | .cm-s-neat span.cm-variable { color: black; }
7 | .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
8 | .cm-s-neat span.cm-meta {color: #555;}
9 | .cm-s-neat span.cm-link { color: #3a3; }
10 |
11 | .cm-s-neat .CodeMirror-activeline-background {background: #e8f2ff !important;}
12 | .cm-s-neat .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;}
13 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/neo.css:
--------------------------------------------------------------------------------
1 | /* neo theme for codemirror */
2 |
3 | /* Color scheme */
4 |
5 | .cm-s-neo.CodeMirror {
6 | background-color:#ffffff;
7 | color:#2e383c;
8 | line-height:1.4375;
9 | }
10 | .cm-s-neo .cm-comment {color:#75787b}
11 | .cm-s-neo .cm-keyword, .cm-s-neo .cm-property {color:#1d75b3}
12 | .cm-s-neo .cm-atom,.cm-s-neo .cm-number {color:#75438a}
13 | .cm-s-neo .cm-node,.cm-s-neo .cm-tag {color:#9c3328}
14 | .cm-s-neo .cm-string {color:#b35e14}
15 | .cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier {color:#047d65}
16 |
17 |
18 | /* Editor styling */
19 |
20 | .cm-s-neo pre {
21 | padding:0;
22 | }
23 |
24 | .cm-s-neo .CodeMirror-gutters {
25 | border:none;
26 | border-right:10px solid transparent;
27 | background-color:transparent;
28 | }
29 |
30 | .cm-s-neo .CodeMirror-linenumber {
31 | padding:0;
32 | color:#e0e2e5;
33 | }
34 |
35 | .cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; }
36 | .cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; }
37 |
38 | .cm-s-neo div.CodeMirror-cursor {
39 | width: auto;
40 | border: 0;
41 | background: rgba(155,157,162,0.37);
42 | z-index: 1;
43 | }
44 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/night.css:
--------------------------------------------------------------------------------
1 | /* Loosely based on the Midnight Textmate theme */
2 |
3 | .cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; }
4 | .cm-s-night div.CodeMirror-selected { background: #447 !important; }
5 | .cm-s-night.CodeMirror ::selection { background: rgba(68, 68, 119, .99); }
6 | .cm-s-night.CodeMirror ::-moz-selection { background: rgba(68, 68, 119, .99); }
7 | .cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
8 | .cm-s-night .CodeMirror-guttermarker { color: white; }
9 | .cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; }
10 | .cm-s-night .CodeMirror-linenumber { color: #f8f8f8; }
11 | .cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; }
12 |
13 | .cm-s-night span.cm-comment { color: #6900a1; }
14 | .cm-s-night span.cm-atom { color: #845dc4; }
15 | .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
16 | .cm-s-night span.cm-keyword { color: #599eff; }
17 | .cm-s-night span.cm-string { color: #37f14a; }
18 | .cm-s-night span.cm-meta { color: #7678e2; }
19 | .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
20 | .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
21 | .cm-s-night span.cm-bracket { color: #8da6ce; }
22 | .cm-s-night span.cm-comment { color: #6900a1; }
23 | .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
24 | .cm-s-night span.cm-link { color: #845dc4; }
25 | .cm-s-night span.cm-error { color: #9d1e15; }
26 |
27 | .cm-s-night .CodeMirror-activeline-background {background: #1C005A !important;}
28 | .cm-s-night .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
29 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/paraiso-dark.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Paraíso (Dark)
4 | Author: Jan T. Sott
5 |
6 | Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror)
7 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
8 |
9 | */
10 |
11 | .cm-s-paraiso-dark.CodeMirror {background: #2f1e2e; color: #b9b6b0;}
12 | .cm-s-paraiso-dark div.CodeMirror-selected {background: #41323f !important;}
13 | .cm-s-paraiso-dark.CodeMirror ::selection { background: rgba(65, 50, 63, .99); }
14 | .cm-s-paraiso-dark.CodeMirror ::-moz-selection { background: rgba(65, 50, 63, .99); }
15 | .cm-s-paraiso-dark .CodeMirror-gutters {background: #2f1e2e; border-right: 0px;}
16 | .cm-s-paraiso-dark .CodeMirror-guttermarker { color: #ef6155; }
17 | .cm-s-paraiso-dark .CodeMirror-guttermarker-subtle { color: #776e71; }
18 | .cm-s-paraiso-dark .CodeMirror-linenumber {color: #776e71;}
19 | .cm-s-paraiso-dark .CodeMirror-cursor {border-left: 1px solid #8d8687 !important;}
20 |
21 | .cm-s-paraiso-dark span.cm-comment {color: #e96ba8;}
22 | .cm-s-paraiso-dark span.cm-atom {color: #815ba4;}
23 | .cm-s-paraiso-dark span.cm-number {color: #815ba4;}
24 |
25 | .cm-s-paraiso-dark span.cm-property, .cm-s-paraiso-dark span.cm-attribute {color: #48b685;}
26 | .cm-s-paraiso-dark span.cm-keyword {color: #ef6155;}
27 | .cm-s-paraiso-dark span.cm-string {color: #fec418;}
28 |
29 | .cm-s-paraiso-dark span.cm-variable {color: #48b685;}
30 | .cm-s-paraiso-dark span.cm-variable-2 {color: #06b6ef;}
31 | .cm-s-paraiso-dark span.cm-def {color: #f99b15;}
32 | .cm-s-paraiso-dark span.cm-bracket {color: #b9b6b0;}
33 | .cm-s-paraiso-dark span.cm-tag {color: #ef6155;}
34 | .cm-s-paraiso-dark span.cm-link {color: #815ba4;}
35 | .cm-s-paraiso-dark span.cm-error {background: #ef6155; color: #8d8687;}
36 |
37 | .cm-s-paraiso-dark .CodeMirror-activeline-background {background: #4D344A !important;}
38 | .cm-s-paraiso-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
39 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/paraiso-light.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Paraíso (Light)
4 | Author: Jan T. Sott
5 |
6 | Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror)
7 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
8 |
9 | */
10 |
11 | .cm-s-paraiso-light.CodeMirror {background: #e7e9db; color: #41323f;}
12 | .cm-s-paraiso-light div.CodeMirror-selected {background: #b9b6b0 !important;}
13 | .cm-s-paraiso-light.CodeMirror ::selection { background: #b9b6b0; }
14 | .cm-s-paraiso-light.CodeMirror ::-moz-selection { background: #b9b6b0; }
15 | .cm-s-paraiso-light .CodeMirror-gutters {background: #e7e9db; border-right: 0px;}
16 | .cm-s-paraiso-light .CodeMirror-guttermarker { color: black; }
17 | .cm-s-paraiso-light .CodeMirror-guttermarker-subtle { color: #8d8687; }
18 | .cm-s-paraiso-light .CodeMirror-linenumber {color: #8d8687;}
19 | .cm-s-paraiso-light .CodeMirror-cursor {border-left: 1px solid #776e71 !important;}
20 |
21 | .cm-s-paraiso-light span.cm-comment {color: #e96ba8;}
22 | .cm-s-paraiso-light span.cm-atom {color: #815ba4;}
23 | .cm-s-paraiso-light span.cm-number {color: #815ba4;}
24 |
25 | .cm-s-paraiso-light span.cm-property, .cm-s-paraiso-light span.cm-attribute {color: #48b685;}
26 | .cm-s-paraiso-light span.cm-keyword {color: #ef6155;}
27 | .cm-s-paraiso-light span.cm-string {color: #fec418;}
28 |
29 | .cm-s-paraiso-light span.cm-variable {color: #48b685;}
30 | .cm-s-paraiso-light span.cm-variable-2 {color: #06b6ef;}
31 | .cm-s-paraiso-light span.cm-def {color: #f99b15;}
32 | .cm-s-paraiso-light span.cm-bracket {color: #41323f;}
33 | .cm-s-paraiso-light span.cm-tag {color: #ef6155;}
34 | .cm-s-paraiso-light span.cm-link {color: #815ba4;}
35 | .cm-s-paraiso-light span.cm-error {background: #ef6155; color: #776e71;}
36 |
37 | .cm-s-paraiso-light .CodeMirror-activeline-background {background: #CFD1C4 !important;}
38 | .cm-s-paraiso-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
39 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/rubyblue.css:
--------------------------------------------------------------------------------
1 | .cm-s-rubyblue.CodeMirror { background: #112435; color: white; }
2 | .cm-s-rubyblue div.CodeMirror-selected { background: #38566F !important; }
3 | .cm-s-rubyblue.CodeMirror ::selection { background: rgba(56, 86, 111, 0.99); }
4 | .cm-s-rubyblue.CodeMirror ::-moz-selection { background: rgba(56, 86, 111, 0.99); }
5 | .cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; }
6 | .cm-s-rubyblue .CodeMirror-guttermarker { color: white; }
7 | .cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; }
8 | .cm-s-rubyblue .CodeMirror-linenumber { color: white; }
9 | .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; }
10 |
11 | .cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }
12 | .cm-s-rubyblue span.cm-atom { color: #F4C20B; }
13 | .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
14 | .cm-s-rubyblue span.cm-keyword { color: #F0F; }
15 | .cm-s-rubyblue span.cm-string { color: #F08047; }
16 | .cm-s-rubyblue span.cm-meta { color: #F0F; }
17 | .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }
18 | .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; }
19 | .cm-s-rubyblue span.cm-bracket { color: #F0F; }
20 | .cm-s-rubyblue span.cm-link { color: #F4C20B; }
21 | .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
22 | .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
23 | .cm-s-rubyblue span.cm-error { color: #AF2018; }
24 |
25 | .cm-s-rubyblue .CodeMirror-activeline-background {background: #173047 !important;}
26 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/the-matrix.css:
--------------------------------------------------------------------------------
1 | .cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; }
2 | .cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D !important; }
3 | .cm-s-the-matrix.CodeMirror ::selection { background: rgba(45, 45, 45, 0.99); }
4 | .cm-s-the-matrix.CodeMirror ::-moz-selection { background: rgba(45, 45, 45, 0.99); }
5 | .cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; }
6 | .cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; }
7 | .cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; }
8 | .cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; }
9 | .cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00 !important; }
10 |
11 | .cm-s-the-matrix span.cm-keyword {color: #008803; font-weight: bold;}
12 | .cm-s-the-matrix span.cm-atom {color: #3FF;}
13 | .cm-s-the-matrix span.cm-number {color: #FFB94F;}
14 | .cm-s-the-matrix span.cm-def {color: #99C;}
15 | .cm-s-the-matrix span.cm-variable {color: #F6C;}
16 | .cm-s-the-matrix span.cm-variable-2 {color: #C6F;}
17 | .cm-s-the-matrix span.cm-variable-3 {color: #96F;}
18 | .cm-s-the-matrix span.cm-property {color: #62FFA0;}
19 | .cm-s-the-matrix span.cm-operator {color: #999}
20 | .cm-s-the-matrix span.cm-comment {color: #CCCCCC;}
21 | .cm-s-the-matrix span.cm-string {color: #39C;}
22 | .cm-s-the-matrix span.cm-meta {color: #C9F;}
23 | .cm-s-the-matrix span.cm-qualifier {color: #FFF700;}
24 | .cm-s-the-matrix span.cm-builtin {color: #30a;}
25 | .cm-s-the-matrix span.cm-bracket {color: #cc7;}
26 | .cm-s-the-matrix span.cm-tag {color: #FFBD40;}
27 | .cm-s-the-matrix span.cm-attribute {color: #FFF700;}
28 | .cm-s-the-matrix span.cm-error {color: #FF0000;}
29 |
30 | .cm-s-the-matrix .CodeMirror-activeline-background {background: #040;}
31 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/tomorrow-night-bright.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Tomorrow Night - Bright
4 | Author: Chris Kempson
5 |
6 | Port done by Gerard Braad
7 |
8 | */
9 |
10 | .cm-s-tomorrow-night-bright.CodeMirror {background: #000000; color: #eaeaea;}
11 | .cm-s-tomorrow-night-bright div.CodeMirror-selected {background: #424242 !important;}
12 | .cm-s-tomorrow-night-bright .CodeMirror-gutters {background: #000000; border-right: 0px;}
13 | .cm-s-tomorrow-night-bright .CodeMirror-guttermarker { color: #e78c45; }
14 | .cm-s-tomorrow-night-bright .CodeMirror-guttermarker-subtle { color: #777; }
15 | .cm-s-tomorrow-night-bright .CodeMirror-linenumber {color: #424242;}
16 | .cm-s-tomorrow-night-bright .CodeMirror-cursor {border-left: 1px solid #6A6A6A !important;}
17 |
18 | .cm-s-tomorrow-night-bright span.cm-comment {color: #d27b53;}
19 | .cm-s-tomorrow-night-bright span.cm-atom {color: #a16a94;}
20 | .cm-s-tomorrow-night-bright span.cm-number {color: #a16a94;}
21 |
22 | .cm-s-tomorrow-night-bright span.cm-property, .cm-s-tomorrow-night-bright span.cm-attribute {color: #99cc99;}
23 | .cm-s-tomorrow-night-bright span.cm-keyword {color: #d54e53;}
24 | .cm-s-tomorrow-night-bright span.cm-string {color: #e7c547;}
25 |
26 | .cm-s-tomorrow-night-bright span.cm-variable {color: #b9ca4a;}
27 | .cm-s-tomorrow-night-bright span.cm-variable-2 {color: #7aa6da;}
28 | .cm-s-tomorrow-night-bright span.cm-def {color: #e78c45;}
29 | .cm-s-tomorrow-night-bright span.cm-bracket {color: #eaeaea;}
30 | .cm-s-tomorrow-night-bright span.cm-tag {color: #d54e53;}
31 | .cm-s-tomorrow-night-bright span.cm-link {color: #a16a94;}
32 | .cm-s-tomorrow-night-bright span.cm-error {background: #d54e53; color: #6A6A6A;}
33 |
34 | .cm-s-tomorrow-night-bright .CodeMirror-activeline-background {background: #2a2a2a !important;}
35 | .cm-s-tomorrow-night-bright .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
36 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/twilight.css:
--------------------------------------------------------------------------------
1 | .cm-s-twilight.CodeMirror { background: #141414; color: #f7f7f7; } /**/
2 | .cm-s-twilight .CodeMirror-selected { background: #323232 !important; } /**/
3 | .cm-s-twilight.CodeMirror ::selection { background: rgba(50, 50, 50, 0.99); }
4 | .cm-s-twilight.CodeMirror ::-moz-selection { background: rgba(50, 50, 50, 0.99); }
5 |
6 | .cm-s-twilight .CodeMirror-gutters { background: #222; border-right: 1px solid #aaa; }
7 | .cm-s-twilight .CodeMirror-guttermarker { color: white; }
8 | .cm-s-twilight .CodeMirror-guttermarker-subtle { color: #aaa; }
9 | .cm-s-twilight .CodeMirror-linenumber { color: #aaa; }
10 | .cm-s-twilight .CodeMirror-cursor { border-left: 1px solid white !important; }
11 |
12 | .cm-s-twilight .cm-keyword { color: #f9ee98; } /**/
13 | .cm-s-twilight .cm-atom { color: #FC0; }
14 | .cm-s-twilight .cm-number { color: #ca7841; } /**/
15 | .cm-s-twilight .cm-def { color: #8DA6CE; }
16 | .cm-s-twilight span.cm-variable-2, .cm-s-twilight span.cm-tag { color: #607392; } /**/
17 | .cm-s-twilight span.cm-variable-3, .cm-s-twilight span.cm-def { color: #607392; } /**/
18 | .cm-s-twilight .cm-operator { color: #cda869; } /**/
19 | .cm-s-twilight .cm-comment { color:#777; font-style:italic; font-weight:normal; } /**/
20 | .cm-s-twilight .cm-string { color:#8f9d6a; font-style:italic; } /**/
21 | .cm-s-twilight .cm-string-2 { color:#bd6b18 } /*?*/
22 | .cm-s-twilight .cm-meta { background-color:#141414; color:#f7f7f7; } /*?*/
23 | .cm-s-twilight .cm-builtin { color: #cda869; } /*?*/
24 | .cm-s-twilight .cm-tag { color: #997643; } /**/
25 | .cm-s-twilight .cm-attribute { color: #d6bb6d; } /*?*/
26 | .cm-s-twilight .cm-header { color: #FF6400; }
27 | .cm-s-twilight .cm-hr { color: #AEAEAE; }
28 | .cm-s-twilight .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } /**/
29 | .cm-s-twilight .cm-error { border-bottom: 1px solid red; }
30 |
31 | .cm-s-twilight .CodeMirror-activeline-background {background: #27282E !important;}
32 | .cm-s-twilight .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
33 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/vibrant-ink.css:
--------------------------------------------------------------------------------
1 | /* Taken from the popular Visual Studio Vibrant Ink Schema */
2 |
3 | .cm-s-vibrant-ink.CodeMirror { background: black; color: white; }
4 | .cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; }
5 | .cm-s-vibrant-ink.CodeMirror ::selection { background: rgba(53, 73, 60, 0.99); }
6 | .cm-s-vibrant-ink.CodeMirror ::-moz-selection { background: rgba(53, 73, 60, 0.99); }
7 |
8 | .cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
9 | .cm-s-vibrant-ink .CodeMirror-guttermarker { color: white; }
10 | .cm-s-vibrant-ink .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
11 | .cm-s-vibrant-ink .CodeMirror-linenumber { color: #d0d0d0; }
12 | .cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white !important; }
13 |
14 | .cm-s-vibrant-ink .cm-keyword { color: #CC7832; }
15 | .cm-s-vibrant-ink .cm-atom { color: #FC0; }
16 | .cm-s-vibrant-ink .cm-number { color: #FFEE98; }
17 | .cm-s-vibrant-ink .cm-def { color: #8DA6CE; }
18 | .cm-s-vibrant-ink span.cm-variable-2, .cm-s-vibrant span.cm-tag { color: #FFC66D }
19 | .cm-s-vibrant-ink span.cm-variable-3, .cm-s-vibrant span.cm-def { color: #FFC66D }
20 | .cm-s-vibrant-ink .cm-operator { color: #888; }
21 | .cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; }
22 | .cm-s-vibrant-ink .cm-string { color: #A5C25C }
23 | .cm-s-vibrant-ink .cm-string-2 { color: red }
24 | .cm-s-vibrant-ink .cm-meta { color: #D8FA3C; }
25 | .cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; }
26 | .cm-s-vibrant-ink .cm-tag { color: #8DA6CE; }
27 | .cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; }
28 | .cm-s-vibrant-ink .cm-header { color: #FF6400; }
29 | .cm-s-vibrant-ink .cm-hr { color: #AEAEAE; }
30 | .cm-s-vibrant-ink .cm-link { color: blue; }
31 | .cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; }
32 |
33 | .cm-s-vibrant-ink .CodeMirror-activeline-background {background: #27282E !important;}
34 | .cm-s-vibrant-ink .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
35 |
--------------------------------------------------------------------------------
/EditorView/CodeMirror-5.3.0/theme/zenburn.css:
--------------------------------------------------------------------------------
1 | /**
2 | * "
3 | * Using Zenburn color palette from the Emacs Zenburn Theme
4 | * https://github.com/bbatsov/zenburn-emacs/blob/master/zenburn-theme.el
5 | *
6 | * Also using parts of https://github.com/xavi/coderay-lighttable-theme
7 | * "
8 | * From: https://github.com/wisenomad/zenburn-lighttable-theme/blob/master/zenburn.css
9 | */
10 |
11 | .cm-s-zenburn .CodeMirror-gutters { background: #3f3f3f !important; }
12 | .cm-s-zenburn .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded { color: #999; }
13 | .cm-s-zenburn .CodeMirror-cursor { border-left: 1px solid white !important; }
14 | .cm-s-zenburn { background-color: #3f3f3f; color: #dcdccc; }
15 | .cm-s-zenburn span.cm-builtin { color: #dcdccc; font-weight: bold; }
16 | .cm-s-zenburn span.cm-comment { color: #7f9f7f; }
17 | .cm-s-zenburn span.cm-keyword { color: #f0dfaf; font-weight: bold; }
18 | .cm-s-zenburn span.cm-atom { color: #bfebbf; }
19 | .cm-s-zenburn span.cm-def { color: #dcdccc; }
20 | .cm-s-zenburn span.cm-variable { color: #dfaf8f; }
21 | .cm-s-zenburn span.cm-variable-2 { color: #dcdccc; }
22 | .cm-s-zenburn span.cm-string { color: #cc9393; }
23 | .cm-s-zenburn span.cm-string-2 { color: #cc9393; }
24 | .cm-s-zenburn span.cm-number { color: #dcdccc; }
25 | .cm-s-zenburn span.cm-tag { color: #93e0e3; }
26 | .cm-s-zenburn span.cm-property { color: #dfaf8f; }
27 | .cm-s-zenburn span.cm-attribute { color: #dfaf8f; }
28 | .cm-s-zenburn span.cm-qualifier { color: #7cb8bb; }
29 | .cm-s-zenburn span.cm-meta { color: #f0dfaf; }
30 | .cm-s-zenburn span.cm-header { color: #f0efd0; }
31 | .cm-s-zenburn span.cm-operator { color: #f0efd0; }
32 | .cm-s-zenburn span.CodeMirror-matchingbracket { box-sizing: border-box; background: transparent; border-bottom: 1px solid; }
33 | .cm-s-zenburn span.CodeMirror-nonmatchingbracket { border-bottom: 1px solid; background: none; }
34 | .cm-s-zenburn .CodeMirror-activeline { background: #000000; }
35 | .cm-s-zenburn .CodeMirror-activeline-background { background: #000000; }
36 | .cm-s-zenburn .CodeMirror-selected { background: #545454; }
37 | .cm-s-zenburn .CodeMirror-focused .CodeMirror-selected { background: #4f4f4f; }
38 |
--------------------------------------------------------------------------------
/EditorView/EditorView.pyui:
--------------------------------------------------------------------------------
1 | [{"class":"View","attributes":{"custom_class":"WebView","background_color":"RGBA(1.000000,1.000000,1.000000,1.000000)","tint_color":"RGBA(0.000000,0.478000,1.000000,1.000000)","enabled":true,"border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","flex":""},"frame":"{{0, 0}, {540, 575}}","nodes":[{"class":"WebView","attributes":{"name":"web_view","uuid":"23173EA0-27D2-4C4B-A03C-F455FDB3F5B7","enabled":true,"border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","flex":"WH"},"frame":"{{0, 0}, {540, 575}}","nodes":[]}]}]
--------------------------------------------------------------------------------
/EditorView/EditorViewConsole.pyui:
--------------------------------------------------------------------------------
1 | [{"class":"View","attributes":{"custom_class":"WebViewConsole","background_color":"RGBA(1.000000,1.000000,1.000000,1.000000)","tint_color":"RGBA(0.000000,0.478000,1.000000,1.000000)","enabled":true,"border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","flex":""},"frame":"{{0, 0}, {540, 575}}","nodes":[{"class":"TextView","attributes":{"background_color":"RGBA(0.857143,0.857143,0.857143,1.000000)","alignment":"left","autocorrection_type":"no","font_size":17,"border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","enabled":true,"flex":"WHTB","text_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","name":"log_view","spellchecking_type":"no","editable":false,"uuid":"9F472D99-D6E3-4BC9-95E3-ACBFC4C19E32"},"frame":"{{0, 393.5}, {540, 150.5}}","nodes":[]},{"class":"WebView","attributes":{"name":"web_view","uuid":"E36DA4A2-FE06-4EA2-A757-C4A231904C51","enabled":true,"border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","flex":"WH"},"frame":"{{0, 0}, {540, 393.5}}","nodes":[]},{"class":"TextField","attributes":{"font_size":17,"enabled":true,"flex":"WHT","autocorrection_type":"no","name":"console_input","border_style":3,"text_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","alignment":"left","border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","spellchecking_type":"no","uuid":"2BDBCFDB-2439-4A21-AE4F-989E6160DDFD"},"frame":"{{0, 543}, {540, 32}}","nodes":[]}]}]
--------------------------------------------------------------------------------
/EditorView/JSONStringify/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules/
2 | /*.tgz
3 |
--------------------------------------------------------------------------------
/EditorView/JSONStringify/.npmignore:
--------------------------------------------------------------------------------
1 | /*.tgz
2 |
--------------------------------------------------------------------------------
/EditorView/JSONStringify/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 5.0.1 (May 19, 2015)
2 | - Fixes stringify to only take ancestors into account when checking
3 | circularity.
4 | It previously assumed every visited object was circular which led to [false
5 | positives][issue9].
6 | Uses the tiny serializer I wrote for [Must.js][must] a year and a half ago.
7 | - Fixes calling the `replacer` function in the proper context (`thisArg`).
8 | - Fixes calling the `cycleReplacer` function in the proper context (`thisArg`).
9 | - Speeds serializing by a factor of
10 | Big-O(h-my-god-it-linearly-searched-every-object) it had ever seen. Searching
11 | only the ancestors for a circular references speeds up things considerably.
12 |
13 | [must]: https://github.com/moll/js-must
14 | [issue9]: https://github.com/isaacs/json-stringify-safe/issues/9
15 |
--------------------------------------------------------------------------------
/EditorView/JSONStringify/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/EditorView/JSONStringify/Makefile:
--------------------------------------------------------------------------------
1 | NODE_OPTS =
2 | TEST_OPTS =
3 |
4 | love:
5 | @echo "Feel like makin' love."
6 |
7 | test:
8 | @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot $(TEST_OPTS)
9 |
10 | spec:
11 | @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec $(TEST_OPTS)
12 |
13 | autotest:
14 | @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot --watch $(TEST_OPTS)
15 |
16 | autospec:
17 | @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec --watch $(TEST_OPTS)
18 |
19 | pack:
20 | @file=$$(npm pack); echo "$$file"; tar tf "$$file"
21 |
22 | publish:
23 | npm publish
24 |
25 | tag:
26 | git tag "v$$(node -e 'console.log(require("./package").version)')"
27 |
28 | clean:
29 | rm -f *.tgz
30 | npm prune --production
31 |
32 | .PHONY: love
33 | .PHONY: test spec autotest autospec
34 | .PHONY: pack publish tag
35 | .PHONY: clean
36 |
--------------------------------------------------------------------------------
/EditorView/JSONStringify/README.md:
--------------------------------------------------------------------------------
1 | # json-stringify-safe
2 |
3 | Like JSON.stringify, but doesn't throw on circular references.
4 |
5 | ## Usage
6 |
7 | Takes the same arguments as `JSON.stringify`.
8 |
9 | ```javascript
10 | var stringify = require('json-stringify-safe');
11 | var circularObj = {};
12 | circularObj.circularRef = circularObj;
13 | circularObj.list = [ circularObj, circularObj ];
14 | console.log(stringify(circularObj, null, 2));
15 | ```
16 |
17 | Output:
18 |
19 | ```json
20 | {
21 | "circularRef": "[Circular]",
22 | "list": [
23 | "[Circular]",
24 | "[Circular]"
25 | ]
26 | }
27 | ```
28 |
29 | ## Details
30 |
31 | ```
32 | stringify(obj, serializer, indent, decycler)
33 | ```
34 |
35 | The first three arguments are the same as to JSON.stringify. The last
36 | is an argument that's only used when the object has been seen already.
37 |
38 | The default `decycler` function returns the string `'[Circular]'`.
39 | If, for example, you pass in `function(k,v){}` (return nothing) then it
40 | will prune cycles. If you pass in `function(k,v){ return {foo: 'bar'}}`,
41 | then cyclical objects will always be represented as `{"foo":"bar"}` in
42 | the result.
43 |
44 | ```
45 | stringify.getSerialize(serializer, decycler)
46 | ```
47 |
48 | Returns a serializer that can be used elsewhere. This is the actual
49 | function that's passed to JSON.stringify.
50 |
51 | **Note** that the function returned from `getSerialize` is stateful for now, so
52 | do **not** use it more than once.
53 |
--------------------------------------------------------------------------------
/EditorView/JSONStringify/master.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cethric/HTMLEditor-Pythonista/87dc95a7924e77d845981e94c7e10aecb766ffad/EditorView/JSONStringify/master.zip
--------------------------------------------------------------------------------
/EditorView/JSONStringify/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "json-stringify-safe",
3 | "version": "5.0.1",
4 | "description": "Like JSON.stringify, but doesn't blow up on circular refs.",
5 | "keywords": [
6 | "json",
7 | "stringify",
8 | "circular",
9 | "safe"
10 | ],
11 | "homepage": "https://github.com/isaacs/json-stringify-safe",
12 | "bugs": "https://github.com/isaacs/json-stringify-safe/issues",
13 | "author": "Isaac Z. Schlueter (http://blog.izs.me)",
14 | "contributors": [
15 | "Andri Möll (http://themoll.com)"
16 | ],
17 | "license": "ISC",
18 | "repository": {
19 | "type": "git",
20 | "url": "git://github.com/isaacs/json-stringify-safe"
21 | },
22 | "main": "stringify.js",
23 | "scripts": {
24 | "test": "make test"
25 | },
26 | "devDependencies": {
27 | "mocha": ">= 2.1.0 < 3",
28 | "must": ">= 0.12 < 0.13",
29 | "sinon": ">= 1.12.2 < 2"
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/EditorView/JSONStringify/stringify.js:
--------------------------------------------------------------------------------
1 | exports = module.exports = stringify
2 | exports.getSerialize = serializer
3 |
4 | function stringify(obj, replacer, spaces, cycleReplacer) {
5 | return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces)
6 | }
7 |
8 | function serializer(replacer, cycleReplacer) {
9 | var stack = [], keys = []
10 |
11 | if (cycleReplacer == null) cycleReplacer = function(key, value) {
12 | if (stack[0] === value) return "[Circular ~]"
13 | return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"
14 | }
15 |
16 | return function(key, value) {
17 | if (stack.length > 0) {
18 | var thisPos = stack.indexOf(this)
19 | ~thisPos ? stack.splice(thisPos + 1) : stack.push(this)
20 | ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key)
21 | if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value)
22 | }
23 | else stack.push(value)
24 |
25 | return replacer == null ? value : replacer.call(this, key, value)
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/EditorView/JSONStringify/test/mocha.opts:
--------------------------------------------------------------------------------
1 | --recursive
2 | --require must
3 |
--------------------------------------------------------------------------------
/EditorView/__init__.py:
--------------------------------------------------------------------------------
1 | import WebDelegate
2 |
--------------------------------------------------------------------------------
/EditorView/main.js:
--------------------------------------------------------------------------------
1 | function send_to_python(name, param) {
2 | var iframe = document.createElement("IFRAME");
3 | iframe.setAttribute("src", name + ":" + param);
4 | document.documentElement.appendChild(iframe);
5 | iframe.parentNode.removeChild(iframe);
6 | iframe = null;
7 | }
8 | console.log = function(log) {
9 | send_to_python("ios-log", log);
10 | }
11 | console.debug = function(log) {
12 | send_to_python("ios-debug", log);
13 | }
14 | console.info = function(log) {
15 | send_to_python("ios-info", log);
16 | }
17 | console.warn = function(log) {
18 | send_to_python("ios-warn", log);
19 | }
20 | console.error = function(log) {
21 | send_to_python("ios-error", log);
22 | }
23 | console.alert = function(prompt, msg) {
24 | send_to_python("ios-alert", prompt + ":" + stringify(msg));
25 | }
26 | window.onerror = (function(error, url, line, col, errorobj) {
27 | console.error(error + " at " + line + ":" + col);
28 | console.error(stringify(errorobj));
29 | });
30 | console.log("logging activated");
31 |
--------------------------------------------------------------------------------
/EditorView/template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Preview
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/FileManager.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cethric/HTMLEditor-Pythonista/87dc95a7924e77d845981e94c7e10aecb766ffad/FileManager.pyc
--------------------------------------------------------------------------------
/HTMLEditor/tag_manager.pyui:
--------------------------------------------------------------------------------
1 | [{"class":"View","attributes":{"custom_class":"TagAddView","background_color":"RGBA(1.000000,1.000000,1.000000,1.000000)","tint_color":"RGBA(0.000000,0.478000,1.000000,1.000000)","enabled":true,"border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","flex":""},"frame":"{{0, 0}, {540, 575}}","nodes":[{"class":"SegmentedControl","attributes":{"name":"tab_selection","border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","uuid":"2AB53628-0E09-4DA1-A24C-F4D083D431B6","enabled":true,"segments":"General|Global Attributes|Misc Attributes|Events","flex":"LR"},"frame":"{{0, 0}, {540, 29}}","nodes":[]},{"class":"Button","attributes":{"font_size":15,"enabled":true,"flex":"","font_bold":false,"name":"ok_btn","uuid":"883CE727-8DB3-4BE6-B03E-D24BBA518D75","border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","title":"Ok"},"frame":"{{6, 537}, {80, 32}}","nodes":[]},{"class":"Button","attributes":{"font_size":15,"enabled":true,"flex":"","font_bold":false,"name":"cancle_btn","uuid":"2350761C-1D78-438B-A275-BC6545944775","border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","action":"","title":"Cancle"},"frame":"{{94, 537}, {80, 32}}","nodes":[]},{"class":"Button","attributes":{"font_size":15,"enabled":true,"flex":"","font_bold":false,"name":"preview_btn","uuid":"466862D7-29AD-4267-B141-597B8D4E4D6C","border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","title":"Preview"},"frame":"{{182, 537}, {80, 32}}","nodes":[]},{"class":"View","attributes":{"name":"items","uuid":"3859DB9C-72B2-48FB-8D96-7AFE4583D170","enabled":true,"corner_radius":20,"border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","flex":""},"frame":"{{0, 37}, {540, 492}}","nodes":[]}]}]
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://travis-ci.org/Cethric/HTMLEditor-Pythonista/builds)
2 | # HTMLEditor-Pythonista
3 | A basic html editor for the pythonista app
4 | This is a complete rewrite of the code paying attention to the suggestions and improvements by cclauss
5 |
6 | ### Features to include
7 | + [ ] Builtin Customizable lan server
8 | + [x] ~~Code checker for html, css and js (HTML, JS, CSS are done)~~ this is done by CodeMirror
9 | + [x] ~~Builtin page previewer~~ Finished for HTML only
10 | + [ ] Dropbox, Onedrive, GoogleDrive, FPT and other cloud based file management services to be incoorperated.
11 | + [x] Ability to save to zipfile
12 | + [ ] Send webfiles from iDevice to a computer (possibly as a zip and intergrated HTTP server).
13 |
14 | ### TODO
15 | + [ ] Code clean up
16 | + [ ] Work on the server side (Thank you [Gerzer](https://github.com/Gerzer))
17 | + [ ] Make the editor a litle but more reliable
18 |
19 | ### HTML Editor Features
20 | + ~~HTML tag completions~~ CodeMirror might not do this...
21 | + HTML quick previewer
22 | + ~~HTML code checking~~ CodeMirror might not do this...
23 | + Syntax Highlighter - Done Through CodeMirror
24 |
25 |
26 | ### Server Editor Features
27 | + Yet to be done.
28 |
29 |
30 | ### KNOWN BUGS
31 | + ~~Opening a file usually doesn't work, the file gets overwritten before display causing major issues (issue #12)~~
32 | + The close button sometimes hangs requiring an app restart (issue [#13](https://github.com/Cethric/HTMLEditor-Pythonista/issues/13)) (RE-OPENED :( )
33 | + ~~Opening a file disables the ui.Webview (issue [#18](https://github.com/Cethric/HTMLEditor-Pythonista/issues/18))~~
34 | + Adding a tag through the tag insert system may overwrite all of the open files (issue [#24](https://github.com/Cethric/HTMLEditor-Pythonista/issues/24))
35 | + Themes are not correctly applied to ui.TableView and ui.TableViewCells (issue [#25](https://github.com/Cethric/HTMLEditor-Pythonista/issues/25))
36 | + Themes sometimes have incorrect background colour (issue [#26](https://github.com/Cethric/HTMLEditor-Pythonista/issues/26))
37 |
--------------------------------------------------------------------------------
/config.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | editor.font.size
6 | 13
7 | editor.line.wrap
8 | false
9 | editor.print.margin
10 | false
11 | editor.show.gutter
12 | false
13 | editor.soft.tabs
14 | false
15 | editor.style
16 | erlang-dark
17 | editor.tab.size
18 | 4
19 |
20 |
21 |
--------------------------------------------------------------------------------
/dummyConsole.py:
--------------------------------------------------------------------------------
1 | # todo: Add the necissary functions for this to work on the desktop
2 | # independant of platform.
3 |
--------------------------------------------------------------------------------
/main.pyui:
--------------------------------------------------------------------------------
1 | [{"class":"View","attributes":{"custom_class":"MainView","background_color":"RGBA(1.000000,1.000000,1.000000,1.000000)","tint_color":"RGBA(0.000000,0.478000,1.000000,1.000000)","enabled":true,"border_color":"RGBA(0.000000,0.000000,0.000000,1.000000)","flex":""},"frame":"{{0, 0}, {540, 575}}","nodes":[]}]
--------------------------------------------------------------------------------
/open_travis.py:
--------------------------------------------------------------------------------
1 | import editor
2 | import os
3 |
4 | CONTENTS = '''language: python
5 | python:
6 | - "2.6"
7 | - "2.7"
8 |
9 | script: nosetest
10 | '''
11 | path = os.path.abspath(".travis.yml")
12 | print path
13 | # with open(path, "wb") as f:
14 | # f.write(CONTENTS)
15 |
16 | editor.open_file("HTMLEditor-Pythonista/.travis.yml")
17 |
--------------------------------------------------------------------------------
/templates.py:
--------------------------------------------------------------------------------
1 | JAVASCRIPT = '''
2 | function hello_world() {
3 | alert('hello {}');
4 | }
5 | '''
6 |
7 | HTML = '''
8 |
9 |
10 | Hello {}
11 |
12 |
13 | Hello World
14 |
15 |
16 | '''
17 |
18 | CSS = '''
19 | p {
20 | color: #000000;
21 | }
22 | '''
23 |
24 |
25 | # TODO - Update the request handler to work for this setup.
26 | REQUEST_HANDLER = '''
27 | class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
28 | def do_GET(self):
29 | print self.path
30 | if self.path in ['', '/', '/index.html']:
31 | self.send_response(200)
32 | self.end_headers()
33 | index = view['editor_view']['file_nav'].selected_index
34 | if not index == -1:
35 | file = view['editor_view']['file_nav'].segments[index]
36 | #print file
37 | file_data = file_system['data'][file][0]
38 | #print file_data
39 | self.wfile.write(file_data)
40 | else:
41 | name = self.path.split('/')[-1]
42 | try:
43 | self.send_response(200)
44 | self.end_headers()
45 | self.wfile.write(file_system['data'][name][0])
46 | except:
47 | pass
48 | '''
49 |
--------------------------------------------------------------------------------
/templates.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cethric/HTMLEditor-Pythonista/87dc95a7924e77d845981e94c7e10aecb766ffad/templates.pyc
--------------------------------------------------------------------------------