codemirror-rails 2.22 → 2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/codemirror/rails/version.rb +2 -2
- data/vendor/assets/javascripts/codemirror.js +164 -83
- data/vendor/assets/javascripts/codemirror/modes/clojure.js +13 -13
- data/vendor/assets/javascripts/codemirror/modes/css.js +1 -1
- data/vendor/assets/javascripts/codemirror/modes/htmlmixed.js +1 -1
- data/vendor/assets/javascripts/codemirror/modes/javascript.js +3 -3
- data/vendor/assets/javascripts/codemirror/modes/less.js +86 -57
- data/vendor/assets/javascripts/codemirror/modes/markdown.js +29 -60
- data/vendor/assets/javascripts/codemirror/modes/properties.js +17 -11
- data/vendor/assets/javascripts/codemirror/modes/smarty.js +148 -0
- data/vendor/assets/javascripts/codemirror/modes/stex.js +15 -2
- data/vendor/assets/javascripts/codemirror/modes/tiddlywiki.js +41 -31
- data/vendor/assets/javascripts/codemirror/modes/vbscript.js +26 -0
- data/vendor/assets/javascripts/codemirror/modes/xml.js +2 -1
- data/vendor/assets/javascripts/codemirror/modes/xquery.js +448 -0
- data/vendor/assets/javascripts/codemirror/utils/closetag.js +174 -0
- data/vendor/assets/javascripts/codemirror/utils/foldcode.js +1 -1
- data/vendor/assets/javascripts/codemirror/utils/formatting.js +1 -1
- data/vendor/assets/javascripts/codemirror/utils/javascript-hint.js +4 -2
- data/vendor/assets/javascripts/codemirror/utils/simple-hint.js +6 -0
- data/vendor/assets/stylesheets/codemirror.css +2 -0
- data/vendor/assets/stylesheets/codemirror/modes/tiddlywiki.css +1 -1
- data/vendor/assets/stylesheets/codemirror/themes/eclipse.css +1 -1
- data/vendor/assets/stylesheets/codemirror/themes/elegant.css +2 -2
- data/vendor/assets/stylesheets/codemirror/themes/lesser-dark.css +45 -0
- data/vendor/assets/stylesheets/codemirror/themes/neat.css +3 -3
- data/vendor/assets/stylesheets/codemirror/themes/rubyblue.css +1 -1
- data/vendor/assets/stylesheets/codemirror/themes/xq-dark.css +46 -0
- metadata +10 -6
- data/vendor/assets/javascripts/codemirror/modes/rpm-spec.css +0 -5
- data/vendor/assets/stylesheets/codemirror/modes/properties.css +0 -3
@@ -0,0 +1,174 @@
|
|
1
|
+
/**
|
2
|
+
* Tag-closer extension for CodeMirror.
|
3
|
+
*
|
4
|
+
* This extension adds a "closeTag" utility function that can be used with key bindings to
|
5
|
+
* insert a matching end tag after the ">" character of a start tag has been typed. It can
|
6
|
+
* also complete "</" if a matching start tag is found. It will correctly ignore signal
|
7
|
+
* characters for empty tags, comments, CDATA, etc.
|
8
|
+
*
|
9
|
+
* The function depends on internal parser state to identify tags. It is compatible with the
|
10
|
+
* following CodeMirror modes and will ignore all others:
|
11
|
+
* - htmlmixed
|
12
|
+
* - xml
|
13
|
+
* - xmlpure
|
14
|
+
*
|
15
|
+
* See demos/closetag.html for a usage example.
|
16
|
+
*
|
17
|
+
* @author Nathan Williams <nathan@nlwillia.net>
|
18
|
+
* Contributed under the same license terms as CodeMirror.
|
19
|
+
*/
|
20
|
+
(function() {
|
21
|
+
/** Option that allows tag closing behavior to be toggled. Default is true. */
|
22
|
+
CodeMirror.defaults['closeTagEnabled'] = true;
|
23
|
+
|
24
|
+
/** Array of tag names to add indentation after the start tag for. Default is the list of block-level html tags. */
|
25
|
+
CodeMirror.defaults['closeTagIndent'] = ['applet', 'blockquote', 'body', 'button', 'div', 'dl', 'fieldset', 'form', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'html', 'iframe', 'layer', 'legend', 'object', 'ol', 'p', 'select', 'table', 'ul'];
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Call during key processing to close tags. Handles the key event if the tag is closed, otherwise throws CodeMirror.Pass.
|
29
|
+
* - cm: The editor instance.
|
30
|
+
* - ch: The character being processed.
|
31
|
+
* - indent: Optional. Omit or pass true to use the default indentation tag list defined in the 'closeTagIndent' option.
|
32
|
+
* Pass false to disable indentation. Pass an array to override the default list of tag names.
|
33
|
+
*/
|
34
|
+
CodeMirror.defineExtension("closeTag", function(cm, ch, indent) {
|
35
|
+
if (!cm.getOption('closeTagEnabled')) {
|
36
|
+
throw CodeMirror.Pass;
|
37
|
+
}
|
38
|
+
|
39
|
+
var mode = cm.getOption('mode');
|
40
|
+
|
41
|
+
if (mode == 'text/html') {
|
42
|
+
|
43
|
+
/*
|
44
|
+
* Relevant structure of token:
|
45
|
+
*
|
46
|
+
* htmlmixed
|
47
|
+
* className
|
48
|
+
* state
|
49
|
+
* htmlState
|
50
|
+
* type
|
51
|
+
* context
|
52
|
+
* tagName
|
53
|
+
* mode
|
54
|
+
*
|
55
|
+
* xml
|
56
|
+
* className
|
57
|
+
* state
|
58
|
+
* tagName
|
59
|
+
* type
|
60
|
+
*/
|
61
|
+
|
62
|
+
var pos = cm.getCursor();
|
63
|
+
var tok = cm.getTokenAt(pos);
|
64
|
+
var state = tok.state;
|
65
|
+
|
66
|
+
if (state.mode && state.mode != 'html') {
|
67
|
+
throw CodeMirror.Pass; // With htmlmixed, we only care about the html sub-mode.
|
68
|
+
}
|
69
|
+
|
70
|
+
if (ch == '>') {
|
71
|
+
var type = state.htmlState ? state.htmlState.type : state.type; // htmlmixed : xml
|
72
|
+
|
73
|
+
if (tok.className == 'tag' && type == 'closeTag') {
|
74
|
+
throw CodeMirror.Pass; // Don't process the '>' at the end of an end-tag.
|
75
|
+
}
|
76
|
+
|
77
|
+
cm.replaceSelection('>'); // Mode state won't update until we finish the tag.
|
78
|
+
pos = {line: pos.line, ch: pos.ch + 1};
|
79
|
+
cm.setCursor(pos);
|
80
|
+
|
81
|
+
tok = cm.getTokenAt(cm.getCursor());
|
82
|
+
state = tok.state;
|
83
|
+
type = state.htmlState ? state.htmlState.type : state.type; // htmlmixed : xml
|
84
|
+
|
85
|
+
if (tok.className == 'tag' && type != 'selfcloseTag') {
|
86
|
+
var tagName = state.htmlState ? state.htmlState.context.tagName : state.tagName; // htmlmixed : xml
|
87
|
+
if (tagName.length > 0) {
|
88
|
+
insertEndTag(cm, indent, pos, tagName);
|
89
|
+
}
|
90
|
+
return;
|
91
|
+
}
|
92
|
+
|
93
|
+
// Undo the '>' insert and allow cm to handle the key instead.
|
94
|
+
cm.setSelection({line: pos.line, ch: pos.ch - 1}, pos);
|
95
|
+
cm.replaceSelection("");
|
96
|
+
|
97
|
+
} else if (ch == '/') {
|
98
|
+
if (tok.className == 'tag' && tok.string == '<') {
|
99
|
+
var tagName = state.htmlState ? (state.htmlState.context ? state.htmlState.context.tagName : '') : state.context.tagName; // htmlmixed : xml # extra htmlmized check is for '</' edge case
|
100
|
+
if (tagName.length > 0) {
|
101
|
+
completeEndTag(cm, pos, tagName);
|
102
|
+
return;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
} else if (mode == 'xmlpure') {
|
108
|
+
|
109
|
+
var pos = cm.getCursor();
|
110
|
+
var tok = cm.getTokenAt(pos);
|
111
|
+
var tagName = tok.state.context.tagName;
|
112
|
+
|
113
|
+
if (ch == '>') {
|
114
|
+
// <foo> tagName=foo, string=foo
|
115
|
+
// <foo /> tagName=foo, string=/ # ignore
|
116
|
+
// <foo></foo> tagName=foo, string=/foo # ignore
|
117
|
+
if (tok.string == tagName) {
|
118
|
+
cm.replaceSelection('>'); // parity w/html modes
|
119
|
+
pos = {line: pos.line, ch: pos.ch + 1};
|
120
|
+
cm.setCursor(pos);
|
121
|
+
|
122
|
+
insertEndTag(cm, indent, pos, tagName);
|
123
|
+
return;
|
124
|
+
}
|
125
|
+
|
126
|
+
} else if (ch == '/') {
|
127
|
+
// <foo / tagName=foo, string= # ignore
|
128
|
+
// <foo></ tagName=foo, string=<
|
129
|
+
if (tok.string == '<') {
|
130
|
+
completeEndTag(cm, pos, tagName);
|
131
|
+
return;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
throw CodeMirror.Pass; // Bubble if not handled
|
137
|
+
});
|
138
|
+
|
139
|
+
function insertEndTag(cm, indent, pos, tagName) {
|
140
|
+
if (shouldIndent(cm, indent, tagName)) {
|
141
|
+
cm.replaceSelection('\n\n</' + tagName + '>', 'end');
|
142
|
+
cm.indentLine(pos.line + 1);
|
143
|
+
cm.indentLine(pos.line + 2);
|
144
|
+
cm.setCursor({line: pos.line + 1, ch: cm.getLine(pos.line + 1).length});
|
145
|
+
} else {
|
146
|
+
cm.replaceSelection('</' + tagName + '>');
|
147
|
+
cm.setCursor(pos);
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
function shouldIndent(cm, indent, tagName) {
|
152
|
+
if (typeof indent == 'undefined' || indent == null || indent == true) {
|
153
|
+
indent = cm.getOption('closeTagIndent');
|
154
|
+
}
|
155
|
+
if (!indent) {
|
156
|
+
indent = [];
|
157
|
+
}
|
158
|
+
return indexOf(indent, tagName.toLowerCase()) != -1;
|
159
|
+
}
|
160
|
+
|
161
|
+
// C&P from codemirror.js...would be nice if this were visible to utilities.
|
162
|
+
function indexOf(collection, elt) {
|
163
|
+
if (collection.indexOf) return collection.indexOf(elt);
|
164
|
+
for (var i = 0, e = collection.length; i < e; ++i)
|
165
|
+
if (collection[i] == elt) return i;
|
166
|
+
return -1;
|
167
|
+
}
|
168
|
+
|
169
|
+
function completeEndTag(cm, pos, tagName) {
|
170
|
+
cm.replaceSelection('/' + tagName + '>');
|
171
|
+
cm.setCursor({line: pos.line, ch: pos.ch + tagName.length + 2 });
|
172
|
+
}
|
173
|
+
|
174
|
+
})();
|
@@ -80,7 +80,7 @@ CodeMirror.tagRangeFinder = function(cm, line) {
|
|
80
80
|
}
|
81
81
|
|
82
82
|
if (found) {
|
83
|
-
var startTag = "(\\<\\/" + tag + "\\>)|(\\<" + tag + "\\>)|(\\<" + tag + "
|
83
|
+
var startTag = "(\\<\\/" + tag + "\\>)|(\\<" + tag + "\\>)|(\\<" + tag + "\\s)|(\\<" + tag + "$)";
|
84
84
|
var startTagRegExp = new RegExp(startTag, "g");
|
85
85
|
var endTag = "</" + tag + ">";
|
86
86
|
var depth = 1;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
// ============== Formatting extensions ============================
|
2
2
|
// A common storage for all mode-specific formatting features
|
3
3
|
if (!CodeMirror.modeExtensions) CodeMirror.modeExtensions = {};
|
4
4
|
|
@@ -113,8 +113,10 @@
|
|
113
113
|
base = 1;
|
114
114
|
else if (obj.className == "function") {
|
115
115
|
if (window.jQuery != null && (obj.string == '$' || obj.string == 'jQuery') &&
|
116
|
-
(typeof jQuery == 'function'))
|
117
|
-
|
116
|
+
(typeof window.jQuery == 'function'))
|
117
|
+
base = window.jQuery();
|
118
|
+
else if (window._ != null && (obj.string == '_') && (typeof window._ == 'function'))
|
119
|
+
base = window._();
|
118
120
|
}
|
119
121
|
while (base != null && context.length)
|
120
122
|
base = base[context.pop().string];
|
@@ -29,6 +29,10 @@
|
|
29
29
|
complete.style.left = pos.x + "px";
|
30
30
|
complete.style.top = pos.yBot + "px";
|
31
31
|
document.body.appendChild(complete);
|
32
|
+
// If we're at the edge of the screen, then we want the menu to appear on the left of the cursor.
|
33
|
+
var winW = window.innerWidth || Math.max(document.body.offsetWidth, document.documentElement.offsetWidth);
|
34
|
+
if(winW - pos.x < sel.clientWidth)
|
35
|
+
complete.style.left = (pos.x - sel.clientWidth) + "px";
|
32
36
|
// Hack to hide the scrollbar.
|
33
37
|
if (completions.length <= 10)
|
34
38
|
complete.style.width = (sel.clientWidth - 1) + "px";
|
@@ -53,6 +57,8 @@
|
|
53
57
|
else if (code == 27) {CodeMirror.e_stop(event); close(); editor.focus();}
|
54
58
|
else if (code != 38 && code != 40) {
|
55
59
|
close(); editor.focus();
|
60
|
+
// Pass the event to the CodeMirror instance so that it can handle things like backspace properly.
|
61
|
+
editor.triggerOnKeyDown(event);
|
56
62
|
setTimeout(function(){CodeMirror.simpleHint(editor, getHints);}, 50);
|
57
63
|
}
|
58
64
|
});
|
@@ -9,6 +9,7 @@
|
|
9
9
|
/* This is needed to prevent an IE[67] bug where the scrolled content
|
10
10
|
is visible outside of the scrolling box. */
|
11
11
|
position: relative;
|
12
|
+
outline: none;
|
12
13
|
}
|
13
14
|
|
14
15
|
.CodeMirror-gutter {
|
@@ -27,6 +28,7 @@
|
|
27
28
|
}
|
28
29
|
.CodeMirror-lines {
|
29
30
|
padding: .4em;
|
31
|
+
white-space: pre;
|
30
32
|
}
|
31
33
|
|
32
34
|
.CodeMirror pre {
|
@@ -11,7 +11,7 @@
|
|
11
11
|
.cm-s-default span.cm-link-external {color: blue;}
|
12
12
|
.cm-s-default span.cm-brace {color: #170; font-weight: bold;}
|
13
13
|
.cm-s-default span.cm-macro {color: #9E3825;}
|
14
|
-
.cm-s-default span.cm-table {color: blue;}
|
14
|
+
.cm-s-default span.cm-table {color: blue; font-weight: bold;}
|
15
15
|
.cm-s-default span.cm-warning {color: red; font-weight: bold;}
|
16
16
|
|
17
17
|
.cm-s-default span.cm-underlined {text-decoration: underline;}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
.cm-s-eclipse span.cm-meta {color: #FF1717;}
|
2
|
-
.cm-s-eclipse span.cm-keyword { font-weight: bold; color: #7F0055; }
|
2
|
+
.cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; }
|
3
3
|
.cm-s-eclipse span.cm-atom {color: #219;}
|
4
4
|
.cm-s-eclipse span.cm-number {color: #164;}
|
5
5
|
.cm-s-eclipse span.cm-def {color: #00f;}
|
@@ -1,6 +1,6 @@
|
|
1
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;}
|
3
|
-
.cm-s-elegant span.cm-meta {color: #555;font-style: italic;}
|
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
4
|
.cm-s-elegant span.cm-variable {color: black;}
|
5
5
|
.cm-s-elegant span.cm-variable-2 {color: #b11;}
|
6
6
|
.cm-s-elegant span.cm-qualifier {color: #555;}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/*
|
2
|
+
http://lesscss.org/ dark theme
|
3
|
+
Ported to CodeMirror by Peter Kroon
|
4
|
+
*/
|
5
|
+
.CodeMirror{
|
6
|
+
line-height: 15px;
|
7
|
+
}
|
8
|
+
.cm-s-lesser-dark {
|
9
|
+
font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Monaco', Courier, monospace !important;
|
10
|
+
font-size:12px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.cm-s-lesser-dark { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; }
|
14
|
+
.cm-s-lesser-dark div.CodeMirror-selected {background: #45443B !important;} /* 33322B*/
|
15
|
+
.cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
|
16
|
+
.cm-s-lesser-dark .CodeMirror-lines { margin-left:3px; margin-right:3px; }/*editable code holder*/
|
17
|
+
|
18
|
+
div.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/
|
19
|
+
|
20
|
+
.cm-s-lesser-dark .CodeMirror-gutter { background: #262626; border-right:1px solid #aaa; padding-right:3px; min-width:2.5em; }
|
21
|
+
.cm-s-lesser-dark .CodeMirror-gutter-text { color: #777; }
|
22
|
+
|
23
|
+
.cm-s-lesser-dark span.cm-keyword { color: #599eff; }
|
24
|
+
.cm-s-lesser-dark span.cm-atom { color: #C2B470; }
|
25
|
+
.cm-s-lesser-dark span.cm-number { color: #B35E4D; }
|
26
|
+
.cm-s-lesser-dark span.cm-def {color: color: white;}
|
27
|
+
.cm-s-lesser-dark span.cm-variable { color:#D9BF8C; }
|
28
|
+
.cm-s-lesser-dark span.cm-variable-2 { color: #669199; }
|
29
|
+
.cm-s-lesser-dark span.cm-variable-3 { color: white; }
|
30
|
+
.cm-s-lesser-dark span.cm-property {color: #92A75C;}
|
31
|
+
.cm-s-lesser-dark span.cm-operator {color: #92A75C;}
|
32
|
+
.cm-s-lesser-dark span.cm-comment { color: #666; }
|
33
|
+
.cm-s-lesser-dark span.cm-string { color: #BCD279; }
|
34
|
+
.cm-s-lesser-dark span.cm-string-2 {color: #f50;}
|
35
|
+
.cm-s-lesser-dark span.cm-meta { color: #738C73; }
|
36
|
+
.cm-s-lesser-dark span.cm-error { color: #9d1e15; }
|
37
|
+
.cm-s-lesser-dark span.cm-qualifier {color: #555;}
|
38
|
+
.cm-s-lesser-dark span.cm-builtin { color: #ff9e59; }
|
39
|
+
.cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; }
|
40
|
+
.cm-s-lesser-dark span.cm-tag { color: #669199; }
|
41
|
+
.cm-s-lesser-dark span.cm-attribute {color: #00c;}
|
42
|
+
.cm-s-lesser-dark span.cm-header {color: #a0a;}
|
43
|
+
.cm-s-lesser-dark span.cm-quote {color: #090;}
|
44
|
+
.cm-s-lesser-dark span.cm-hr {color: #999;}
|
45
|
+
.cm-s-lesser-dark span.cm-link {color: #00c;}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
.cm-s-neat span.cm-comment { color: #a86; }
|
2
|
-
.cm-s-neat span.cm-keyword { font-weight: bold; color: blue; }
|
2
|
+
.cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }
|
3
3
|
.cm-s-neat span.cm-string { color: #a22; }
|
4
|
-
.cm-s-neat span.cm-builtin { font-weight: bold; color: #077; }
|
5
|
-
.cm-s-neat span.cm-special { font-weight: bold; color: #0aa; }
|
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
6
|
.cm-s-neat span.cm-variable { color: black; }
|
7
7
|
.cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
|
8
8
|
.cm-s-neat span.cm-meta {color: #555;}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
.cm-s-rubyblue .CodeMirror-gutter-text { color: white; }
|
7
7
|
.cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; }
|
8
8
|
|
9
|
-
.cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; }
|
9
|
+
.cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }
|
10
10
|
.cm-s-rubyblue span.cm-atom { color: #F4C20B; }
|
11
11
|
.cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
|
12
12
|
.cm-s-rubyblue span.cm-keyword { color: #F0F; }
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (C) 2011 by MarkLogic Corporation
|
3
|
+
Author: Mike Brevoort <mike@brevoort.com>
|
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 { background: #0a001f; color: #f8f8f8; }
|
24
|
+
.cm-s-xq-dark span.CodeMirror-selected { background: #a8f !important; }
|
25
|
+
.cm-s-xq-dark .CodeMirror-gutter { background: #0a001f; border-right: 1px solid #aaa; }
|
26
|
+
.cm-s-xq-dark .CodeMirror-gutter-text { color: #f8f8f8; }
|
27
|
+
.cm-s-xq-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
|
28
|
+
|
29
|
+
.cm-s-xq-dark span.cm-keyword {color: #FFBD40;}
|
30
|
+
.cm-s-xq-dark span.cm-atom {color: #6C8CD5;}
|
31
|
+
.cm-s-xq-dark span.cm-number {color: #164;}
|
32
|
+
.cm-s-xq-dark span.cm-def {color: #FFF; text-decoration:underline;}
|
33
|
+
.cm-s-xq-dark span.cm-variable {color: #FFF;}
|
34
|
+
.cm-s-xq-dark span.cm-variable-2 {color: #EEE;}
|
35
|
+
.cm-s-xq-dark span.cm-variable-3 {color: #DDD;}
|
36
|
+
.cm-s-xq-dark span.cm-property {}
|
37
|
+
.cm-s-xq-dark span.cm-operator {}
|
38
|
+
.cm-s-xq-dark span.cm-comment {color: gray;}
|
39
|
+
.cm-s-xq-dark span.cm-string {color: #9FEE00;}
|
40
|
+
.cm-s-xq-dark span.cm-meta {color: yellow;}
|
41
|
+
.cm-s-xq-dark span.cm-error {color: #f00;}
|
42
|
+
.cm-s-xq-dark span.cm-qualifier {color: #FFF700;}
|
43
|
+
.cm-s-xq-dark span.cm-builtin {color: #30a;}
|
44
|
+
.cm-s-xq-dark span.cm-bracket {color: #cc7;}
|
45
|
+
.cm-s-xq-dark span.cm-tag {color: #FFBD40;}
|
46
|
+
.cm-s-xq-dark span.cm-attribute {color: #FFF700;}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codemirror-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '2.
|
4
|
+
version: '2.23'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-14 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &2155905160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '3.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2155905160
|
25
25
|
description: This gem provides CodeMirror assets for your Rails 3 application.
|
26
26
|
email: nathan@fixler.org
|
27
27
|
executables: []
|
@@ -70,21 +70,24 @@ files:
|
|
70
70
|
- vendor/assets/javascripts/codemirror/modes/python.js
|
71
71
|
- vendor/assets/javascripts/codemirror/modes/r.js
|
72
72
|
- vendor/assets/javascripts/codemirror/modes/rpm-changes.js
|
73
|
-
- vendor/assets/javascripts/codemirror/modes/rpm-spec.css
|
74
73
|
- vendor/assets/javascripts/codemirror/modes/rpm-spec.js
|
75
74
|
- vendor/assets/javascripts/codemirror/modes/rst.js
|
76
75
|
- vendor/assets/javascripts/codemirror/modes/ruby.js
|
77
76
|
- vendor/assets/javascripts/codemirror/modes/rust.js
|
78
77
|
- vendor/assets/javascripts/codemirror/modes/scheme.js
|
79
78
|
- vendor/assets/javascripts/codemirror/modes/smalltalk.js
|
79
|
+
- vendor/assets/javascripts/codemirror/modes/smarty.js
|
80
80
|
- vendor/assets/javascripts/codemirror/modes/sparql.js
|
81
81
|
- vendor/assets/javascripts/codemirror/modes/stex.js
|
82
82
|
- vendor/assets/javascripts/codemirror/modes/tiddlywiki.js
|
83
|
+
- vendor/assets/javascripts/codemirror/modes/vbscript.js
|
83
84
|
- vendor/assets/javascripts/codemirror/modes/velocity.js
|
84
85
|
- vendor/assets/javascripts/codemirror/modes/verilog.js
|
85
86
|
- vendor/assets/javascripts/codemirror/modes/xml.js
|
86
87
|
- vendor/assets/javascripts/codemirror/modes/xmlpure.js
|
88
|
+
- vendor/assets/javascripts/codemirror/modes/xquery.js
|
87
89
|
- vendor/assets/javascripts/codemirror/modes/yaml.js
|
90
|
+
- vendor/assets/javascripts/codemirror/utils/closetag.js
|
88
91
|
- vendor/assets/javascripts/codemirror/utils/dialog.js
|
89
92
|
- vendor/assets/javascripts/codemirror/utils/foldcode.js
|
90
93
|
- vendor/assets/javascripts/codemirror/utils/formatting.js
|
@@ -97,16 +100,17 @@ files:
|
|
97
100
|
- vendor/assets/javascripts/codemirror/utils/simple-hint.js
|
98
101
|
- vendor/assets/stylesheets/codemirror.css
|
99
102
|
- vendor/assets/stylesheets/codemirror/modes/diff.css
|
100
|
-
- vendor/assets/stylesheets/codemirror/modes/properties.css
|
101
103
|
- vendor/assets/stylesheets/codemirror/modes/rpm-spec.css
|
102
104
|
- vendor/assets/stylesheets/codemirror/modes/tiddlywiki.css
|
103
105
|
- vendor/assets/stylesheets/codemirror/themes/cobalt.css
|
104
106
|
- vendor/assets/stylesheets/codemirror/themes/eclipse.css
|
105
107
|
- vendor/assets/stylesheets/codemirror/themes/elegant.css
|
108
|
+
- vendor/assets/stylesheets/codemirror/themes/lesser-dark.css
|
106
109
|
- vendor/assets/stylesheets/codemirror/themes/monokai.css
|
107
110
|
- vendor/assets/stylesheets/codemirror/themes/neat.css
|
108
111
|
- vendor/assets/stylesheets/codemirror/themes/night.css
|
109
112
|
- vendor/assets/stylesheets/codemirror/themes/rubyblue.css
|
113
|
+
- vendor/assets/stylesheets/codemirror/themes/xq-dark.css
|
110
114
|
- vendor/assets/stylesheets/codemirror/utils/dialog.css
|
111
115
|
- vendor/assets/stylesheets/codemirror/utils/simple-hint.css
|
112
116
|
homepage: https://rubygems.org/gems/codemirror-rails
|