the class "CodeMirror-activeline-background".
9 |
10 | (function(mod) {
11 | if (typeof exports == "object" && typeof module == "object") // CommonJS
12 | mod(require("../../lib/codemirror"));
13 | else if (typeof define == "function" && define.amd) // AMD
14 | define(["../../lib/codemirror"], mod);
15 | else // Plain browser env
16 | mod(CodeMirror);
17 | })(function(CodeMirror) {
18 | "use strict";
19 | var WRAP_CLASS = "CodeMirror-activeline";
20 | var BACK_CLASS = "CodeMirror-activeline-background";
21 |
22 | CodeMirror.defineOption("styleActiveLine", false, function(cm, val, old) {
23 | var prev = old && old != CodeMirror.Init;
24 | if (val && !prev) {
25 | cm.state.activeLines = [];
26 | updateActiveLines(cm, cm.listSelections());
27 | cm.on("beforeSelectionChange", selectionChange);
28 | } else if (!val && prev) {
29 | cm.off("beforeSelectionChange", selectionChange);
30 | clearActiveLines(cm);
31 | delete cm.state.activeLines;
32 | }
33 | });
34 |
35 | function clearActiveLines(cm) {
36 | for (var i = 0; i < cm.state.activeLines.length; i++) {
37 | cm.removeLineClass(cm.state.activeLines[i], "wrap", WRAP_CLASS);
38 | cm.removeLineClass(cm.state.activeLines[i], "background", BACK_CLASS);
39 | }
40 | }
41 |
42 | function sameArray(a, b) {
43 | if (a.length != b.length) return false;
44 | for (var i = 0; i < a.length; i++)
45 | if (a[i] != b[i]) return false;
46 | return true;
47 | }
48 |
49 | function updateActiveLines(cm, ranges) {
50 | var active = [];
51 | for (var i = 0; i < ranges.length; i++) {
52 | var range = ranges[i];
53 | if (!range.empty()) continue;
54 | var line = cm.getLineHandleVisualStart(range.head.line);
55 | if (active[active.length - 1] != line) active.push(line);
56 | }
57 | if (sameArray(cm.state.activeLines, active)) return;
58 | cm.operation(function() {
59 | clearActiveLines(cm);
60 | for (var i = 0; i < active.length; i++) {
61 | cm.addLineClass(active[i], "wrap", WRAP_CLASS);
62 | cm.addLineClass(active[i], "background", BACK_CLASS);
63 | }
64 | cm.state.activeLines = active;
65 | });
66 | }
67 |
68 | function selectionChange(cm, sel) {
69 | updateActiveLines(cm, sel.ranges);
70 | }
71 | });
72 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/addon/selection/mark-selection.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Because sometimes you need to mark the selected *text*.
5 | //
6 | // Adds an option 'styleSelectedText' which, when enabled, gives
7 | // selected text the CSS class given as option value, or
8 | // "CodeMirror-selectedtext" when the value is not a string.
9 |
10 | (function(mod) {
11 | if (typeof exports == "object" && typeof module == "object") // CommonJS
12 | mod(require("../../lib/codemirror"));
13 | else if (typeof define == "function" && define.amd) // AMD
14 | define(["../../lib/codemirror"], mod);
15 | else // Plain browser env
16 | mod(CodeMirror);
17 | })(function(CodeMirror) {
18 | "use strict";
19 |
20 | CodeMirror.defineOption("styleSelectedText", false, function(cm, val, old) {
21 | var prev = old && old != CodeMirror.Init;
22 | if (val && !prev) {
23 | cm.state.markedSelection = [];
24 | cm.state.markedSelectionStyle = typeof val == "string" ? val : "CodeMirror-selectedtext";
25 | reset(cm);
26 | cm.on("cursorActivity", onCursorActivity);
27 | cm.on("change", onChange);
28 | } else if (!val && prev) {
29 | cm.off("cursorActivity", onCursorActivity);
30 | cm.off("change", onChange);
31 | clear(cm);
32 | cm.state.markedSelection = cm.state.markedSelectionStyle = null;
33 | }
34 | });
35 |
36 | function onCursorActivity(cm) {
37 | cm.operation(function() { update(cm); });
38 | }
39 |
40 | function onChange(cm) {
41 | if (cm.state.markedSelection.length)
42 | cm.operation(function() { clear(cm); });
43 | }
44 |
45 | var CHUNK_SIZE = 8;
46 | var Pos = CodeMirror.Pos;
47 | var cmp = CodeMirror.cmpPos;
48 |
49 | function coverRange(cm, from, to, addAt) {
50 | if (cmp(from, to) == 0) return;
51 | var array = cm.state.markedSelection;
52 | var cls = cm.state.markedSelectionStyle;
53 | for (var line = from.line;;) {
54 | var start = line == from.line ? from : Pos(line, 0);
55 | var endLine = line + CHUNK_SIZE, atEnd = endLine >= to.line;
56 | var end = atEnd ? to : Pos(endLine, 0);
57 | var mark = cm.markText(start, end, {className: cls});
58 | if (addAt == null) array.push(mark);
59 | else array.splice(addAt++, 0, mark);
60 | if (atEnd) break;
61 | line = endLine;
62 | }
63 | }
64 |
65 | function clear(cm) {
66 | var array = cm.state.markedSelection;
67 | for (var i = 0; i < array.length; ++i) array[i].clear();
68 | array.length = 0;
69 | }
70 |
71 | function reset(cm) {
72 | clear(cm);
73 | var ranges = cm.listSelections();
74 | for (var i = 0; i < ranges.length; i++)
75 | coverRange(cm, ranges[i].from(), ranges[i].to());
76 | }
77 |
78 | function update(cm) {
79 | if (!cm.somethingSelected()) return clear(cm);
80 | if (cm.listSelections().length > 1) return reset(cm);
81 |
82 | var from = cm.getCursor("start"), to = cm.getCursor("end");
83 |
84 | var array = cm.state.markedSelection;
85 | if (!array.length) return coverRange(cm, from, to);
86 |
87 | var coverStart = array[0].find(), coverEnd = array[array.length - 1].find();
88 | if (!coverStart || !coverEnd || to.line - from.line < CHUNK_SIZE ||
89 | cmp(from, coverEnd.to) >= 0 || cmp(to, coverStart.from) <= 0)
90 | return reset(cm);
91 |
92 | while (cmp(from, coverStart.from) > 0) {
93 | array.shift().clear();
94 | coverStart = array[0].find();
95 | }
96 | if (cmp(from, coverStart.from) < 0) {
97 | if (coverStart.to.line - from.line < CHUNK_SIZE) {
98 | array.shift().clear();
99 | coverRange(cm, from, coverStart.to, 0);
100 | } else {
101 | coverRange(cm, from, coverStart.from, 0);
102 | }
103 | }
104 |
105 | while (cmp(to, coverEnd.to) < 0) {
106 | array.pop().clear();
107 | coverEnd = array[array.length - 1].find();
108 | }
109 | if (cmp(to, coverEnd.to) > 0) {
110 | if (to.line - coverEnd.from.line < CHUNK_SIZE) {
111 | array.pop().clear();
112 | coverRange(cm, coverEnd.from, to);
113 | } else {
114 | coverRange(cm, coverEnd.to, to);
115 | }
116 | }
117 | }
118 | });
119 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/addon/selection/selection-pointer.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("selectionPointer", false, function(cm, val) {
15 | var data = cm.state.selectionPointer;
16 | if (data) {
17 | CodeMirror.off(cm.getWrapperElement(), "mousemove", data.mousemove);
18 | CodeMirror.off(cm.getWrapperElement(), "mouseout", data.mouseout);
19 | CodeMirror.off(window, "scroll", data.windowScroll);
20 | cm.off("cursorActivity", reset);
21 | cm.off("scroll", reset);
22 | cm.state.selectionPointer = null;
23 | cm.display.lineDiv.style.cursor = "";
24 | }
25 | if (val) {
26 | data = cm.state.selectionPointer = {
27 | value: typeof val == "string" ? val : "default",
28 | mousemove: function(event) { mousemove(cm, event); },
29 | mouseout: function(event) { mouseout(cm, event); },
30 | windowScroll: function() { reset(cm); },
31 | rects: null,
32 | mouseX: null, mouseY: null,
33 | willUpdate: false
34 | };
35 | CodeMirror.on(cm.getWrapperElement(), "mousemove", data.mousemove);
36 | CodeMirror.on(cm.getWrapperElement(), "mouseout", data.mouseout);
37 | CodeMirror.on(window, "scroll", data.windowScroll);
38 | cm.on("cursorActivity", reset);
39 | cm.on("scroll", reset);
40 | }
41 | });
42 |
43 | function mousemove(cm, event) {
44 | var data = cm.state.selectionPointer;
45 | if (event.buttons == null ? event.which : event.buttons) {
46 | data.mouseX = data.mouseY = null;
47 | } else {
48 | data.mouseX = event.clientX;
49 | data.mouseY = event.clientY;
50 | }
51 | scheduleUpdate(cm);
52 | }
53 |
54 | function mouseout(cm, event) {
55 | if (!cm.getWrapperElement().contains(event.relatedTarget)) {
56 | var data = cm.state.selectionPointer;
57 | data.mouseX = data.mouseY = null;
58 | scheduleUpdate(cm);
59 | }
60 | }
61 |
62 | function reset(cm) {
63 | cm.state.selectionPointer.rects = null;
64 | scheduleUpdate(cm);
65 | }
66 |
67 | function scheduleUpdate(cm) {
68 | if (!cm.state.selectionPointer.willUpdate) {
69 | cm.state.selectionPointer.willUpdate = true;
70 | setTimeout(function() {
71 | update(cm);
72 | cm.state.selectionPointer.willUpdate = false;
73 | }, 50);
74 | }
75 | }
76 |
77 | function update(cm) {
78 | var data = cm.state.selectionPointer;
79 | if (!data) return;
80 | if (data.rects == null && data.mouseX != null) {
81 | data.rects = [];
82 | if (cm.somethingSelected()) {
83 | for (var sel = cm.display.selectionDiv.firstChild; sel; sel = sel.nextSibling)
84 | data.rects.push(sel.getBoundingClientRect());
85 | }
86 | }
87 | var inside = false;
88 | if (data.mouseX != null) for (var i = 0; i < data.rects.length; i++) {
89 | var rect = data.rects[i];
90 | if (rect.left <= data.mouseX && rect.right >= data.mouseX &&
91 | rect.top <= data.mouseY && rect.bottom >= data.mouseY)
92 | inside = true;
93 | }
94 | var cursor = inside ? data.value : "";
95 | if (cm.display.lineDiv.style.cursor != cursor)
96 | cm.display.lineDiv.style.cursor = cursor;
97 | }
98 | });
99 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 | var console = {
43 | log: function(v) { postMessage({type: "debug", message: v}); }
44 | };
45 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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}
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/theme/lesser-dark.css:
--------------------------------------------------------------------------------
1 | /*
2 | http://lesscss.org/ dark theme
3 | Ported to CodeMirror by Peter Kroon
4 | */
5 | .cm-s-lesser-dark {
6 | line-height: 1.3em;
7 | }
8 | .cm-s-lesser-dark.CodeMirror { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; }
9 | .cm-s-lesser-dark div.CodeMirror-selected {background: #45443B !important;} /* 33322B*/
10 | .cm-s-lesser-dark.CodeMirror ::selection { background: rgba(69, 68, 59, .99); }
11 | .cm-s-lesser-dark.CodeMirror ::-moz-selection { background: rgba(69, 68, 59, .99); }
12 | .cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
13 | .cm-s-lesser-dark pre { padding: 0 8px; }/*editable code holder*/
14 |
15 | .cm-s-lesser-dark.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/
16 |
17 | .cm-s-lesser-dark .CodeMirror-gutters { background: #262626; border-right:1px solid #aaa; }
18 | .cm-s-lesser-dark .CodeMirror-guttermarker { color: #599eff; }
19 | .cm-s-lesser-dark .CodeMirror-guttermarker-subtle { color: #777; }
20 | .cm-s-lesser-dark .CodeMirror-linenumber { color: #777; }
21 |
22 | .cm-s-lesser-dark span.cm-keyword { color: #599eff; }
23 | .cm-s-lesser-dark span.cm-atom { color: #C2B470; }
24 | .cm-s-lesser-dark span.cm-number { color: #B35E4D; }
25 | .cm-s-lesser-dark span.cm-def {color: white;}
26 | .cm-s-lesser-dark span.cm-variable { color:#D9BF8C; }
27 | .cm-s-lesser-dark span.cm-variable-2 { color: #669199; }
28 | .cm-s-lesser-dark span.cm-variable-3 { color: white; }
29 | .cm-s-lesser-dark span.cm-property {color: #92A75C;}
30 | .cm-s-lesser-dark span.cm-operator {color: #92A75C;}
31 | .cm-s-lesser-dark span.cm-comment { color: #666; }
32 | .cm-s-lesser-dark span.cm-string { color: #BCD279; }
33 | .cm-s-lesser-dark span.cm-string-2 {color: #f50;}
34 | .cm-s-lesser-dark span.cm-meta { color: #738C73; }
35 | .cm-s-lesser-dark span.cm-qualifier {color: #555;}
36 | .cm-s-lesser-dark span.cm-builtin { color: #ff9e59; }
37 | .cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; }
38 | .cm-s-lesser-dark span.cm-tag { color: #669199; }
39 | .cm-s-lesser-dark span.cm-attribute {color: #00c;}
40 | .cm-s-lesser-dark span.cm-header {color: #a0a;}
41 | .cm-s-lesser-dark span.cm-quote {color: #090;}
42 | .cm-s-lesser-dark span.cm-hr {color: #999;}
43 | .cm-s-lesser-dark span.cm-link {color: #00c;}
44 | .cm-s-lesser-dark span.cm-error { color: #9d1e15; }
45 |
46 | .cm-s-lesser-dark .CodeMirror-activeline-background {background: #3C3A3A !important;}
47 | .cm-s-lesser-dark .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
48 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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: #a6e22e;}
22 | .cm-s-monokai span.cm-variable-2 {color: #9effff;}
23 | .cm-s-monokai span.cm-def {color: #fd971f;}
24 | .cm-s-monokai span.cm-bracket {color: #f8f8f2;}
25 | .cm-s-monokai span.cm-tag {color: #f92672;}
26 | .cm-s-monokai span.cm-link {color: #ae81ff;}
27 | .cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;}
28 |
29 | .cm-s-monokai .CodeMirror-activeline-background {background: #373831 !important;}
30 | .cm-s-monokai .CodeMirror-matchingbracket {
31 | text-decoration: underline;
32 | color: white !important;
33 | }
34 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/theme/pastel-on-dark.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Pastel On Dark theme ported from ACE editor
3 | * @license MIT
4 | * @copyright AtomicPages LLC 2014
5 | * @author Dennis Thompson, AtomicPages LLC
6 | * @version 1.1
7 | * @source https://github.com/atomicpages/codemirror-pastel-on-dark-theme
8 | */
9 |
10 | .cm-s-pastel-on-dark.CodeMirror {
11 | background: #2c2827;
12 | color: #8F938F;
13 | line-height: 1.5;
14 | font-size: 14px;
15 | }
16 | .cm-s-pastel-on-dark div.CodeMirror-selected { background: rgba(221,240,255,0.2) !important; }
17 | .cm-s-pastel-on-dark.CodeMirror ::selection { background: rgba(221,240,255,0.2); }
18 | .cm-s-pastel-on-dark.CodeMirror ::-moz-selection { background: rgba(221,240,255,0.2); }
19 |
20 | .cm-s-pastel-on-dark .CodeMirror-gutters {
21 | background: #34302f;
22 | border-right: 0px;
23 | padding: 0 3px;
24 | }
25 | .cm-s-pastel-on-dark .CodeMirror-guttermarker { color: white; }
26 | .cm-s-pastel-on-dark .CodeMirror-guttermarker-subtle { color: #8F938F; }
27 | .cm-s-pastel-on-dark .CodeMirror-linenumber { color: #8F938F; }
28 | .cm-s-pastel-on-dark .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; }
29 | .cm-s-pastel-on-dark span.cm-comment { color: #A6C6FF; }
30 | .cm-s-pastel-on-dark span.cm-atom { color: #DE8E30; }
31 | .cm-s-pastel-on-dark span.cm-number { color: #CCCCCC; }
32 | .cm-s-pastel-on-dark span.cm-property { color: #8F938F; }
33 | .cm-s-pastel-on-dark span.cm-attribute { color: #a6e22e; }
34 | .cm-s-pastel-on-dark span.cm-keyword { color: #AEB2F8; }
35 | .cm-s-pastel-on-dark span.cm-string { color: #66A968; }
36 | .cm-s-pastel-on-dark span.cm-variable { color: #AEB2F8; }
37 | .cm-s-pastel-on-dark span.cm-variable-2 { color: #BEBF55; }
38 | .cm-s-pastel-on-dark span.cm-variable-3 { color: #DE8E30; }
39 | .cm-s-pastel-on-dark span.cm-def { color: #757aD8; }
40 | .cm-s-pastel-on-dark span.cm-bracket { color: #f8f8f2; }
41 | .cm-s-pastel-on-dark span.cm-tag { color: #C1C144; }
42 | .cm-s-pastel-on-dark span.cm-link { color: #ae81ff; }
43 | .cm-s-pastel-on-dark span.cm-qualifier,.cm-s-pastel-on-dark span.cm-builtin { color: #C1C144; }
44 | .cm-s-pastel-on-dark span.cm-error {
45 | background: #757aD8;
46 | color: #f8f8f0;
47 | }
48 | .cm-s-pastel-on-dark .CodeMirror-activeline-background { background: rgba(255, 255, 255, 0.031) !important; }
49 | .cm-s-pastel-on-dark .CodeMirror-matchingbracket {
50 | border: 1px solid rgba(255,255,255,0.25);
51 | color: #8F938F !important;
52 | margin: -1px -1px 0 -1px;
53 | }
54 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/theme/tomorrow-night-eighties.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Tomorrow Night - Eighties
4 | Author: Chris Kempson
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-tomorrow-night-eighties.CodeMirror {background: #000000; color: #CCCCCC;}
12 | .cm-s-tomorrow-night-eighties div.CodeMirror-selected {background: #2D2D2D !important;}
13 | .cm-s-tomorrow-night-eighties.CodeMirror ::selection { background: rgba(45, 45, 45, 0.99); }
14 | .cm-s-tomorrow-night-eighties.CodeMirror ::-moz-selection { background: rgba(45, 45, 45, 0.99); }
15 | .cm-s-tomorrow-night-eighties .CodeMirror-gutters {background: #000000; border-right: 0px;}
16 | .cm-s-tomorrow-night-eighties .CodeMirror-guttermarker { color: #f2777a; }
17 | .cm-s-tomorrow-night-eighties .CodeMirror-guttermarker-subtle { color: #777; }
18 | .cm-s-tomorrow-night-eighties .CodeMirror-linenumber {color: #515151;}
19 | .cm-s-tomorrow-night-eighties .CodeMirror-cursor {border-left: 1px solid #6A6A6A !important;}
20 |
21 | .cm-s-tomorrow-night-eighties span.cm-comment {color: #d27b53;}
22 | .cm-s-tomorrow-night-eighties span.cm-atom {color: #a16a94;}
23 | .cm-s-tomorrow-night-eighties span.cm-number {color: #a16a94;}
24 |
25 | .cm-s-tomorrow-night-eighties span.cm-property, .cm-s-tomorrow-night-eighties span.cm-attribute {color: #99cc99;}
26 | .cm-s-tomorrow-night-eighties span.cm-keyword {color: #f2777a;}
27 | .cm-s-tomorrow-night-eighties span.cm-string {color: #ffcc66;}
28 |
29 | .cm-s-tomorrow-night-eighties span.cm-variable {color: #99cc99;}
30 | .cm-s-tomorrow-night-eighties span.cm-variable-2 {color: #6699cc;}
31 | .cm-s-tomorrow-night-eighties span.cm-def {color: #f99157;}
32 | .cm-s-tomorrow-night-eighties span.cm-bracket {color: #CCCCCC;}
33 | .cm-s-tomorrow-night-eighties span.cm-tag {color: #f2777a;}
34 | .cm-s-tomorrow-night-eighties span.cm-link {color: #a16a94;}
35 | .cm-s-tomorrow-night-eighties span.cm-error {background: #f2777a; color: #6A6A6A;}
36 |
37 | .cm-s-tomorrow-night-eighties .CodeMirror-activeline-background {background: #343600 !important;}
38 | .cm-s-tomorrow-night-eighties .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
39 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/theme/xq-dark.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2011 by MarkLogic Corporation
3 | Author: Mike Brevoort
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 | */
23 | .cm-s-xq-dark.CodeMirror { background: #0a001f; color: #f8f8f8; }
24 | .cm-s-xq-dark .CodeMirror-selected { background: #27007A !important; }
25 | .cm-s-xq-dark.CodeMirror ::selection { background: rgba(39, 0, 122, 0.99); }
26 | .cm-s-xq-dark.CodeMirror ::-moz-selection { background: rgba(39, 0, 122, 0.99); }
27 | .cm-s-xq-dark .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
28 | .cm-s-xq-dark .CodeMirror-guttermarker { color: #FFBD40; }
29 | .cm-s-xq-dark .CodeMirror-guttermarker-subtle { color: #f8f8f8; }
30 | .cm-s-xq-dark .CodeMirror-linenumber { color: #f8f8f8; }
31 | .cm-s-xq-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
32 |
33 | .cm-s-xq-dark span.cm-keyword {color: #FFBD40;}
34 | .cm-s-xq-dark span.cm-atom {color: #6C8CD5;}
35 | .cm-s-xq-dark span.cm-number {color: #164;}
36 | .cm-s-xq-dark span.cm-def {color: #FFF; text-decoration:underline;}
37 | .cm-s-xq-dark span.cm-variable {color: #FFF;}
38 | .cm-s-xq-dark span.cm-variable-2 {color: #EEE;}
39 | .cm-s-xq-dark span.cm-variable-3 {color: #DDD;}
40 | .cm-s-xq-dark span.cm-property {}
41 | .cm-s-xq-dark span.cm-operator {}
42 | .cm-s-xq-dark span.cm-comment {color: gray;}
43 | .cm-s-xq-dark span.cm-string {color: #9FEE00;}
44 | .cm-s-xq-dark span.cm-meta {color: yellow;}
45 | .cm-s-xq-dark span.cm-qualifier {color: #FFF700;}
46 | .cm-s-xq-dark span.cm-builtin {color: #30a;}
47 | .cm-s-xq-dark span.cm-bracket {color: #cc7;}
48 | .cm-s-xq-dark span.cm-tag {color: #FFBD40;}
49 | .cm-s-xq-dark span.cm-attribute {color: #FFF700;}
50 | .cm-s-xq-dark span.cm-error {color: #f00;}
51 |
52 | .cm-s-xq-dark .CodeMirror-activeline-background {background: #27282E !important;}
53 | .cm-s-xq-dark .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/theme/xq-light.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2011 by MarkLogic Corporation
3 | Author: Mike Brevoort
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 | */
23 | .cm-s-xq-light span.cm-keyword {line-height: 1em; font-weight: bold; color: #5A5CAD; }
24 | .cm-s-xq-light span.cm-atom {color: #6C8CD5;}
25 | .cm-s-xq-light span.cm-number {color: #164;}
26 | .cm-s-xq-light span.cm-def {text-decoration:underline;}
27 | .cm-s-xq-light span.cm-variable {color: black; }
28 | .cm-s-xq-light span.cm-variable-2 {color:black;}
29 | .cm-s-xq-light span.cm-variable-3 {color: black; }
30 | .cm-s-xq-light span.cm-property {}
31 | .cm-s-xq-light span.cm-operator {}
32 | .cm-s-xq-light span.cm-comment {color: #0080FF; font-style: italic;}
33 | .cm-s-xq-light span.cm-string {color: red;}
34 | .cm-s-xq-light span.cm-meta {color: yellow;}
35 | .cm-s-xq-light span.cm-qualifier {color: grey}
36 | .cm-s-xq-light span.cm-builtin {color: #7EA656;}
37 | .cm-s-xq-light span.cm-bracket {color: #cc7;}
38 | .cm-s-xq-light span.cm-tag {color: #3F7F7F;}
39 | .cm-s-xq-light span.cm-attribute {color: #7F007F;}
40 | .cm-s-xq-light span.cm-error {color: #f00;}
41 |
42 | .cm-s-xq-light .CodeMirror-activeline-background {background: #e8f2ff !important;}
43 | .cm-s-xq-light .CodeMirror-matchingbracket {outline:1px solid grey;color:black !important;background:yellow;}
--------------------------------------------------------------------------------
/static/editor.md/lib/codemirror/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 |
--------------------------------------------------------------------------------
/static/editor.md/lib/jquery.flowchart.min.js:
--------------------------------------------------------------------------------
1 | /*! jQuery.flowchart.js v1.1.0 | jquery.flowchart.min.js | jQuery plugin for flowchart.js. | MIT License | By: Pandao | https://github.com/pandao/jquery.flowchart.js | 2015-03-09 */
2 | (function(factory){if(typeof require==="function"&&typeof exports==="object"&&typeof module==="object"){module.exports=factory}else{if(typeof define==="function"){factory(jQuery,flowchart)}else{factory($,flowchart)}}}(function(jQuery,flowchart){(function($){$.fn.flowChart=function(options){options=options||{};var defaults={"x":0,"y":0,"line-width":2,"line-length":50,"text-margin":10,"font-size":14,"font-color":"black","line-color":"black","element-color":"black","fill":"white","yes-text":"yes","no-text":"no","arrow-end":"block","symbols":{"start":{"font-color":"black","element-color":"black","fill":"white"},"end":{"class":"end-element"}},"flowstate":{"past":{"fill":"#CCCCCC","font-size":12},"current":{"fill":"black","font-color":"white","font-weight":"bold"},"future":{"fill":"white"},"request":{"fill":"blue"},"invalid":{"fill":"#444444"},"approved":{"fill":"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},"rejected":{"fill":"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}}};return this.each(function(){var $this=$(this);var diagram=flowchart.parse($this.text());var settings=$.extend(true,defaults,options);$this.html("");diagram.drawSVG(this,settings)})}})(jQuery)}));
--------------------------------------------------------------------------------
/static/editor.md/plugins/help-dialog/help-dialog.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Help dialog plugin for Editor.md
3 | *
4 | * @file help-dialog.js
5 | * @author pandao
6 | * @version 1.2.0
7 | * @updateTime 2015-03-08
8 | * {@link https://github.com/pandao/editor.md}
9 | * @license MIT
10 | */
11 |
12 | (function() {
13 |
14 | var factory = function (exports) {
15 |
16 | var $ = jQuery;
17 | var pluginName = "help-dialog";
18 |
19 | exports.fn.helpDialog = function() {
20 | var _this = this;
21 | var lang = this.lang;
22 | var editor = this.editor;
23 | var settings = this.settings;
24 | var path = settings.pluginPath + pluginName + "/";
25 | var classPrefix = this.classPrefix;
26 | var dialogName = classPrefix + pluginName, dialog;
27 | var dialogLang = lang.dialog.help;
28 |
29 | if (editor.find("." + dialogName).length < 1)
30 | {
31 | var dialogContent = "";
32 |
33 | dialog = this.createDialog({
34 | name : dialogName,
35 | title : dialogLang.title,
36 | width : 840,
37 | height : 540,
38 | mask : settings.dialogShowMask,
39 | drag : settings.dialogDraggable,
40 | content : dialogContent,
41 | lockScreen : settings.dialogLockScreen,
42 | maskStyle : {
43 | opacity : settings.dialogMaskOpacity,
44 | backgroundColor : settings.dialogMaskBgColor
45 | },
46 | buttons : {
47 | close : [lang.buttons.close, function() {
48 | this.hide().lockScreen(false).hideMask();
49 |
50 | return false;
51 | }]
52 | }
53 | });
54 | }
55 |
56 | dialog = editor.find("." + dialogName);
57 |
58 | this.dialogShowMask(dialog);
59 | this.dialogLockScreen();
60 | dialog.show();
61 |
62 | var helpContent = dialog.find(".markdown-body");
63 |
64 | if (helpContent.html() === "")
65 | {
66 | $.get(path + "help.md", function(text) {
67 | var md = exports.$marked(text);
68 | helpContent.html(md);
69 |
70 | helpContent.find("a").attr("target", "_blank");
71 | });
72 | }
73 | };
74 |
75 | };
76 |
77 | // CommonJS/Node.js
78 | if (typeof require === "function" && typeof exports === "object" && typeof module === "object")
79 | {
80 | module.exports = factory;
81 | }
82 | else if (typeof define === "function") // AMD/CMD/Sea.js
83 | {
84 | if (define.amd) { // for Require.js
85 |
86 | define(["editormd"], function(editormd) {
87 | factory(editormd);
88 | });
89 |
90 | } else { // for Sea.js
91 | define(function(require) {
92 | var editormd = require("./../../editormd");
93 | factory(editormd);
94 | });
95 | }
96 | }
97 | else
98 | {
99 | factory(window.editormd);
100 | }
101 |
102 | })();
103 |
--------------------------------------------------------------------------------
/static/editor.md/plugins/plugin-template.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Link dialog plugin for Editor.md
3 | *
4 | * @file link-dialog.js
5 | * @author pandao
6 | * @version 1.2.0
7 | * @updateTime 2015-03-07
8 | * {@link https://github.com/pandao/editor.md}
9 | * @license MIT
10 | */
11 |
12 | (function() {
13 |
14 | var factory = function (exports) {
15 |
16 | var $ = jQuery; // if using module loader(Require.js/Sea.js).
17 |
18 | var langs = {
19 | "zh-cn" : {
20 | toolbar : {
21 | table : "表格"
22 | },
23 | dialog : {
24 | table : {
25 | title : "添加表格",
26 | cellsLabel : "单元格数",
27 | alignLabel : "对齐方式",
28 | rows : "行数",
29 | cols : "列数",
30 | aligns : ["默认", "左对齐", "居中对齐", "右对齐"]
31 | }
32 | }
33 | },
34 | "zh-tw" : {
35 | toolbar : {
36 | table : "添加表格"
37 | },
38 | dialog : {
39 | table : {
40 | title : "添加表格",
41 | cellsLabel : "單元格數",
42 | alignLabel : "對齊方式",
43 | rows : "行數",
44 | cols : "列數",
45 | aligns : ["默認", "左對齊", "居中對齊", "右對齊"]
46 | }
47 | }
48 | },
49 | "en" : {
50 | toolbar : {
51 | table : "Tables"
52 | },
53 | dialog : {
54 | table : {
55 | title : "Tables",
56 | cellsLabel : "Cells",
57 | alignLabel : "Align",
58 | rows : "Rows",
59 | cols : "Cols",
60 | aligns : ["Default", "Left align", "Center align", "Right align"]
61 | }
62 | }
63 | }
64 | };
65 |
66 | exports.fn.htmlEntities = function() {
67 | /*
68 | var _this = this; // this == the current instance object of Editor.md
69 | var lang = _this.lang;
70 | var settings = _this.settings;
71 | var editor = this.editor;
72 | var cursor = cm.getCursor();
73 | var selection = cm.getSelection();
74 | var classPrefix = this.classPrefix;
75 |
76 | $.extend(true, this.lang, langs[this.lang.name]); // l18n
77 | this.setToolbar();
78 |
79 | cm.focus();
80 | */
81 | //....
82 | };
83 |
84 | };
85 |
86 | // CommonJS/Node.js
87 | if (typeof require === "function" && typeof exports === "object" && typeof module === "object")
88 | {
89 | module.exports = factory;
90 | }
91 | else if (typeof define === "function") // AMD/CMD/Sea.js
92 | {
93 | if (define.amd) { // for Require.js
94 |
95 | define(["editormd"], function(editormd) {
96 | factory(editormd);
97 | });
98 |
99 | } else { // for Sea.js
100 | define(function(require) {
101 | var editormd = require("./../../editormd");
102 | factory(editormd);
103 | });
104 | }
105 | }
106 | else
107 | {
108 | factory(window.editormd);
109 | }
110 |
111 | })();
112 |
--------------------------------------------------------------------------------
/static/editor.md/plugins/test-plugin/test-plugin.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Test plugin for Editor.md
3 | *
4 | * @file test-plugin.js
5 | * @author pandao
6 | * @version 1.2.0
7 | * @updateTime 2015-03-07
8 | * {@link https://github.com/pandao/editor.md}
9 | * @license MIT
10 | */
11 |
12 | (function() {
13 |
14 | var factory = function (exports) {
15 |
16 | var $ = jQuery; // if using module loader(Require.js/Sea.js).
17 |
18 | exports.testPlugin = function(){
19 | alert("testPlugin");
20 | };
21 |
22 | exports.fn.testPluginMethodA = function() {
23 | /*
24 | var _this = this; // this == the current instance object of Editor.md
25 | var lang = _this.lang;
26 | var settings = _this.settings;
27 | var editor = this.editor;
28 | var cursor = cm.getCursor();
29 | var selection = cm.getSelection();
30 | var classPrefix = this.classPrefix;
31 |
32 | cm.focus();
33 | */
34 | //....
35 |
36 | alert("testPluginMethodA");
37 | };
38 |
39 | };
40 |
41 | // CommonJS/Node.js
42 | if (typeof require === "function" && typeof exports === "object" && typeof module === "object")
43 | {
44 | module.exports = factory;
45 | }
46 | else if (typeof define === "function") // AMD/CMD/Sea.js
47 | {
48 | if (define.amd) { // for Require.js
49 |
50 | define(["editormd"], function(editormd) {
51 | factory(editormd);
52 | });
53 |
54 | } else { // for Sea.js
55 | define(function(require) {
56 | var editormd = require("./../../editormd");
57 | factory(editormd);
58 | });
59 | }
60 | }
61 | else
62 | {
63 | factory(window.editormd);
64 | }
65 |
66 | })();
67 |
--------------------------------------------------------------------------------
/static/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lincenying/mmf-blog-vue2-jsx/30b25c41347189c6539420b59e779635003f2ff3/static/favicon.ico
--------------------------------------------------------------------------------