codemirror-rails 3.02 → 3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +1 -1
  3. data/LICENSE +1 -1
  4. data/codemirror-rails.gemspec +1 -0
  5. data/doc/CodeMirror-LICENSE +5 -1
  6. data/lib/codemirror/rails/version.rb +2 -2
  7. data/vendor/assets/javascripts/codemirror/{utils → addons/dialog}/dialog.js +4 -0
  8. data/vendor/assets/javascripts/codemirror/addons/display/placeholder.js +54 -0
  9. data/vendor/assets/javascripts/codemirror/addons/edit/closebrackets.js +54 -0
  10. data/vendor/assets/javascripts/codemirror/{utils → addons/edit}/closetag.js +9 -8
  11. data/vendor/assets/javascripts/codemirror/{utils → addons/edit}/continuecomment.js +12 -4
  12. data/vendor/assets/javascripts/codemirror/addons/edit/continuelist.js +25 -0
  13. data/vendor/assets/javascripts/codemirror/{utils → addons/edit}/matchbrackets.js +30 -11
  14. data/vendor/assets/javascripts/codemirror/addons/fold/brace-fold.js +31 -0
  15. data/vendor/assets/javascripts/codemirror/addons/fold/foldcode.js +32 -0
  16. data/vendor/assets/javascripts/codemirror/addons/fold/indent-fold.js +11 -0
  17. data/vendor/assets/javascripts/codemirror/addons/fold/xml-fold.js +64 -0
  18. data/vendor/assets/javascripts/codemirror/addons/hint/html-hint.js +582 -0
  19. data/vendor/assets/javascripts/codemirror/{utils → addons/hint}/javascript-hint.js +15 -11
  20. data/vendor/assets/javascripts/codemirror/{utils → addons/hint}/pig-hint.js +19 -19
  21. data/vendor/assets/javascripts/codemirror/{utils → addons/hint}/python-hint.js +2 -2
  22. data/vendor/assets/javascripts/codemirror/addons/hint/show-hint.js +180 -0
  23. data/vendor/assets/javascripts/codemirror/{utils → addons/hint}/xml-hint.js +5 -18
  24. data/vendor/assets/javascripts/codemirror/addons/lint/javascript-lint.js +127 -0
  25. data/vendor/assets/javascripts/codemirror/addons/lint/json-lint.js +14 -0
  26. data/vendor/assets/javascripts/codemirror/addons/lint/lint.js +197 -0
  27. data/vendor/assets/javascripts/codemirror/{utils → addons/mode}/loadmode.js +0 -0
  28. data/vendor/assets/javascripts/codemirror/{utils → addons/mode}/multiplex.js +2 -2
  29. data/vendor/assets/javascripts/codemirror/{utils → addons/mode}/overlay.js +2 -2
  30. data/vendor/assets/javascripts/codemirror/{utils → addons/runmode}/colorize.js +0 -0
  31. data/vendor/assets/javascripts/codemirror/{utils → addons/runmode}/runmode-standalone.js +2 -3
  32. data/vendor/assets/javascripts/codemirror/{utils → addons/runmode}/runmode.js +0 -0
  33. data/vendor/assets/javascripts/codemirror/addons/runmode/runmode.node.js +89 -0
  34. data/vendor/assets/javascripts/codemirror/addons/search/match-highlighter.js +60 -0
  35. data/vendor/assets/javascripts/codemirror/{utils → addons/search}/search.js +5 -5
  36. data/vendor/assets/javascripts/codemirror/{utils → addons/search}/searchcursor.js +37 -30
  37. data/vendor/assets/javascripts/codemirror/addons/selection/active-line.js +39 -0
  38. data/vendor/assets/javascripts/codemirror/addons/selection/mark-selection.js +34 -0
  39. data/vendor/assets/javascripts/codemirror/keymaps/vim.js +721 -188
  40. data/vendor/assets/javascripts/codemirror/modes/asterisk.js +6 -6
  41. data/vendor/assets/javascripts/codemirror/modes/clike.js +14 -14
  42. data/vendor/assets/javascripts/codemirror/modes/clojure.js +23 -7
  43. data/vendor/assets/javascripts/codemirror/modes/coffeescript.js +2 -2
  44. data/vendor/assets/javascripts/codemirror/modes/css.js +337 -235
  45. data/vendor/assets/javascripts/codemirror/modes/ecl.js +12 -12
  46. data/vendor/assets/javascripts/codemirror/modes/erlang.js +1 -1
  47. data/vendor/assets/javascripts/codemirror/modes/gas.js +326 -0
  48. data/vendor/assets/javascripts/codemirror/modes/gfm.js +1 -0
  49. data/vendor/assets/javascripts/codemirror/modes/haskell.js +26 -26
  50. data/vendor/assets/javascripts/codemirror/modes/haxe.js +17 -17
  51. data/vendor/assets/javascripts/codemirror/modes/htmlembedded.js +6 -6
  52. data/vendor/assets/javascripts/codemirror/modes/htmlmixed.js +43 -23
  53. data/vendor/assets/javascripts/codemirror/modes/javascript.js +78 -33
  54. data/vendor/assets/javascripts/codemirror/modes/jinja2.js +2 -2
  55. data/vendor/assets/javascripts/codemirror/modes/less.js +38 -38
  56. data/vendor/assets/javascripts/codemirror/modes/livescript.js +267 -0
  57. data/vendor/assets/javascripts/codemirror/modes/lua.js +7 -7
  58. data/vendor/assets/javascripts/codemirror/modes/markdown.js +108 -57
  59. data/vendor/assets/javascripts/codemirror/modes/mirc.js +177 -0
  60. data/vendor/assets/javascripts/codemirror/modes/ntriples.js +22 -22
  61. data/vendor/assets/javascripts/codemirror/modes/ocaml.js +1 -1
  62. data/vendor/assets/javascripts/codemirror/modes/perl.js +791 -791
  63. data/vendor/assets/javascripts/codemirror/modes/php.js +1 -1
  64. data/vendor/assets/javascripts/codemirror/modes/pig.js +163 -163
  65. data/vendor/assets/javascripts/codemirror/modes/python.js +31 -31
  66. data/vendor/assets/javascripts/codemirror/modes/q.js +124 -0
  67. data/vendor/assets/javascripts/codemirror/modes/rst.js +486 -250
  68. data/vendor/assets/javascripts/codemirror/modes/sass.js +3 -3
  69. data/vendor/assets/javascripts/codemirror/modes/scss_test.js +80 -0
  70. data/vendor/assets/javascripts/codemirror/modes/shell.js +2 -2
  71. data/vendor/assets/javascripts/codemirror/modes/sieve.js +10 -10
  72. data/vendor/assets/javascripts/codemirror/modes/smalltalk.js +129 -129
  73. data/vendor/assets/javascripts/codemirror/modes/smarty.js +3 -3
  74. data/vendor/assets/javascripts/codemirror/modes/sparql.js +1 -1
  75. data/vendor/assets/javascripts/codemirror/modes/sql.js +23 -23
  76. data/vendor/assets/javascripts/codemirror/modes/stex.js +192 -121
  77. data/vendor/assets/javascripts/codemirror/modes/tcl.js +131 -0
  78. data/vendor/assets/javascripts/codemirror/modes/test.js +64 -0
  79. data/vendor/assets/javascripts/codemirror/modes/tiddlywiki.js +345 -345
  80. data/vendor/assets/javascripts/codemirror/modes/tiki.js +297 -298
  81. data/vendor/assets/javascripts/codemirror/modes/turtle.js +145 -0
  82. data/vendor/assets/javascripts/codemirror/modes/vb.js +31 -32
  83. data/vendor/assets/javascripts/codemirror/modes/vbscript.js +4 -4
  84. data/vendor/assets/javascripts/codemirror/modes/xml.js +10 -6
  85. data/vendor/assets/javascripts/codemirror/modes/xquery.js +55 -55
  86. data/vendor/assets/javascripts/codemirror/modes/yaml.js +90 -90
  87. data/vendor/assets/javascripts/codemirror/modes/z80.js +82 -110
  88. data/vendor/assets/javascripts/codemirror.js +1914 -1115
  89. data/vendor/assets/stylesheets/codemirror/{utils → addons/dialog}/dialog.css +0 -0
  90. data/vendor/assets/stylesheets/codemirror/addons/hint/show-hint.css +38 -0
  91. data/vendor/assets/stylesheets/codemirror/addons/lint/lint.css +96 -0
  92. data/vendor/assets/stylesheets/codemirror/modes/tiki.css +2 -2
  93. data/vendor/assets/stylesheets/codemirror/themes/ambiance-mobile.css +0 -1
  94. data/vendor/assets/stylesheets/codemirror/themes/ambiance.css +0 -1
  95. data/vendor/assets/stylesheets/codemirror/themes/eclipse.css +2 -2
  96. data/vendor/assets/stylesheets/codemirror/themes/erlang-dark.css +5 -5
  97. data/vendor/assets/stylesheets/codemirror/themes/midnight.css +52 -0
  98. data/vendor/assets/stylesheets/codemirror/themes/xq-light.css +43 -0
  99. data/vendor/assets/stylesheets/codemirror.css +16 -10
  100. metadata +60 -52
  101. data/vendor/assets/javascripts/codemirror/modes/mysql.js +0 -203
  102. data/vendor/assets/javascripts/codemirror/modes/plsql.js +0 -216
  103. data/vendor/assets/javascripts/codemirror/utils/collapserange.js +0 -68
  104. data/vendor/assets/javascripts/codemirror/utils/continuelist.js +0 -28
  105. data/vendor/assets/javascripts/codemirror/utils/foldcode.js +0 -183
  106. data/vendor/assets/javascripts/codemirror/utils/formatting.js +0 -114
  107. data/vendor/assets/javascripts/codemirror/utils/match-highlighter.js +0 -46
  108. data/vendor/assets/javascripts/codemirror/utils/simple-hint.js +0 -102
  109. data/vendor/assets/stylesheets/codemirror/utils/simple-hint.css +0 -16
@@ -0,0 +1,38 @@
1
+ .CodeMirror-hints {
2
+ position: absolute;
3
+ z-index: 10;
4
+ overflow: hidden;
5
+ list-style: none;
6
+
7
+ margin: 0;
8
+ padding: 2px;
9
+
10
+ -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
11
+ -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
12
+ box-shadow: 2px 3px 5px rgba(0,0,0,.2);
13
+ border-radius: 3px;
14
+ border: 1px solid silver;
15
+
16
+ background: white;
17
+ font-size: 90%;
18
+ font-family: monospace;
19
+
20
+ max-height: 20em;
21
+ overflow-y: auto;
22
+ }
23
+
24
+ .CodeMirror-hint {
25
+ margin: 0;
26
+ padding: 0 4px;
27
+ border-radius: 2px;
28
+ max-width: 19em;
29
+ overflow: hidden;
30
+ white-space: pre;
31
+ color: black;
32
+ cursor: pointer;
33
+ }
34
+
35
+ .CodeMirror-hint-active {
36
+ background: #08f;
37
+ color: white;
38
+ }
@@ -0,0 +1,96 @@
1
+ /* The lint marker gutter */
2
+ .CodeMirror-lint-markers {
3
+ width: 16px;
4
+ }
5
+
6
+ .CodeMirror-lint-tooltip {
7
+ background-color: infobackground;
8
+ border: 1px solid black;
9
+ border-radius: 4px 4px 4px 4px;
10
+ color: infotext;
11
+ font-family: monospace;
12
+ font-size: 10pt;
13
+ overflow: hidden;
14
+ padding: 2px 5px;
15
+ position: fixed;
16
+ white-space: pre;
17
+ z-index: 100;
18
+ max-width: 600px;
19
+ opacity: 0;
20
+ transition: opacity .4s;
21
+ -moz-transition: opacity .4s;
22
+ -webkit-transition: opacity .4s;
23
+ -o-transition: opacity .4s;
24
+ -ms-transition: opacity .4s;
25
+ }
26
+
27
+ .CodeMirror-lint-span-error, .CodeMirror-lint-span-warning {
28
+ background-position: left bottom;
29
+ background-repeat: repeat-x;
30
+ }
31
+
32
+ .CodeMirror-lint-span-error {
33
+ background-image:
34
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==")
35
+ ;
36
+ }
37
+
38
+ .CodeMirror-lint-span-warning {
39
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=");
40
+ }
41
+
42
+ .CodeMirror-lint-marker-error, .CodeMirror-lint-marker-warning {
43
+ background-position: center center;
44
+ background-repeat: no-repeat;
45
+ cursor: pointer;
46
+ display: inline-block;
47
+ height: 16px;
48
+ width: 16px;
49
+ vertical-align: middle;
50
+ position: relative;
51
+ }
52
+
53
+ .CodeMirror-lint-message-error, .CodeMirror-lint-message-warning {
54
+ padding-left: 18px;
55
+ background-position: top left;
56
+ background-repeat: no-repeat;
57
+ }
58
+
59
+ .CodeMirror-lint-marker-error, .CodeMirror-lint-message-error {
60
+ background-image: url("data:image/gif;base64,R0lGODlhEAAQANUAAPVvcvWHiPVucvRuc+ttcfV6f91KVN5LU99PV/FZY/JhaM4oN84pONE4Rd1ATfJLWutVYPRgbdxpcsgWKMgZKs4lNfE/UvE/U+artcpdSc5uXveimslHPuBhW/eJhfV5efaCgO2CgP+/v+PExP///////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAACUALAAAAAAQABAAAAZ+wJJwSCwaScgkySgkjTQZTkYzWhadnE5oE+pwqkSshwQqkzxfa4kkQXxEpA9J9EFI1KQGQQBAigYCBA14ExEWF0gXihETeA0QD3AkD5QQg0NsDnAJmwkOd5gYFSQKpXAFDBhqaxgLBwQBBAapq00YEg0UDRKqTGtKSL7Cw8JBADs=");
61
+ }
62
+
63
+ .CodeMirror-lint-marker-warning, .CodeMirror-lint-message-warning {
64
+ background-image: url("data:image/gif;base64,R0lGODlhEAAQANUAAP7bc//egf/ij/7ijv/jl/7kl//mnv7lnv/uwf7CTP7DTf7DT/7IW//Na/7Na//NbP7QdP/dmbltAIJNAF03AMSAJMSCLKqASa2DS6uBSquCSrGHTq6ETbCHT7WKUrKIUcCVXL+UXMOYX8GWXsSZYMiib6+ETbOIUcOXX86uhd3Muf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAACsALAAAAAAQABAAAAZowJVwSCwaj0ihikRSJYcoBEL0XKlGkcjImQQhJBREKFnyICoThKeE/AAW6AXgdPyUAgrLJBEo0YsbAQyDhAEdRRwDDw8OaA4NDQImRBgFEJdglxAEGEQZKQcHBqOkKRpFF6mqq1WtrUEAOw==");
65
+ }
66
+
67
+ .CodeMirror-lint-marker-multiple {
68
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJEAQvB2JVdrAAAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAAAD1JREFUCNdtjkESADAEAzemf69f66HMqGlOIhYiFRFRtSQBWAY7mzx+EDTL6sSgb1jTk7Q87rxyqe37fXsAa78gLyZnRgEAAAAASUVORK5CYII=");
69
+ background-repeat: no-repeat;
70
+ background-position: right bottom;
71
+ width: 100%; height: 100%;
72
+ }
73
+
74
+ /* Styles for the overview ruler
75
+ .annotationOverview {
76
+ cursor: pointer;
77
+ border-radius: 2px;
78
+ left: 2px;
79
+ width: 8px;
80
+ }
81
+ .annotationOverview.error {
82
+ background-color: lightcoral;
83
+ border: 1px solid darkred;
84
+ }
85
+ .annotationOverview.warning {
86
+ background-color: Gold;
87
+ border: 1px solid black;
88
+ }
89
+
90
+ .annotationHTML.overlay {
91
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJEAQvB2JVdrAAAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAAAD1JREFUCNdtjkESADAEAzemf69f66HMqGlOIhYiFRFRtSQBWAY7mzx+EDTL6sSgb1jTk7Q87rxyqe37fXsAa78gLyZnRgEAAAAASUVORK5CYII=");
92
+ background-position: right bottom;
93
+ position: relative;
94
+ top: -16px;
95
+ }
96
+ */
@@ -1,6 +1,6 @@
1
1
  .cm-tw-syntaxerror {
2
- color: #FFFFFF;
3
- background-color: #990000;
2
+ color: #FFF;
3
+ background-color: #900;
4
4
  }
5
5
 
6
6
  .cm-tw-deleted {
@@ -1,6 +1,5 @@
1
1
  .cm-s-ambiance.CodeMirror {
2
2
  -webkit-box-shadow: none;
3
3
  -moz-box-shadow: none;
4
- -o-box-shadow: none;
5
4
  box-shadow: none;
6
5
  }
@@ -46,7 +46,6 @@
46
46
  background-color: #202020;
47
47
  -webkit-box-shadow: inset 0 0 10px black;
48
48
  -moz-box-shadow: inset 0 0 10px black;
49
- -o-box-shadow: inset 0 0 10px black;
50
49
  box-shadow: inset 0 0 10px black;
51
50
  }
52
51
 
@@ -20,6 +20,6 @@
20
20
  .cm-s-eclipse span.cm-link {color: #219;}
21
21
 
22
22
  .cm-s-eclipse .CodeMirror-matchingbracket {
23
- border:1px solid grey;
24
- color:black !important;;
23
+ outline:1px solid grey;
24
+ color:black !important;
25
25
  }
@@ -7,15 +7,15 @@
7
7
  .cm-s-erlang-dark span.cm-atom { color: #845dc4; }
8
8
  .cm-s-erlang-dark span.cm-attribute { color: #ff80e1; }
9
9
  .cm-s-erlang-dark span.cm-bracket { color: #ff9d00; }
10
- .cm-s-erlang-dark span.cm-builtin { color: #eeaaaa; }
11
- .cm-s-erlang-dark span.cm-comment { color: #7777ff; }
12
- .cm-s-erlang-dark span.cm-def { color: #ee77aa; }
10
+ .cm-s-erlang-dark span.cm-builtin { color: #eaa; }
11
+ .cm-s-erlang-dark span.cm-comment { color: #77f; }
12
+ .cm-s-erlang-dark span.cm-def { color: #e7a; }
13
13
  .cm-s-erlang-dark span.cm-error { color: #9d1e15; }
14
14
  .cm-s-erlang-dark span.cm-keyword { color: #ffee80; }
15
15
  .cm-s-erlang-dark span.cm-meta { color: #50fefe; }
16
16
  .cm-s-erlang-dark span.cm-number { color: #ffd0d0; }
17
- .cm-s-erlang-dark span.cm-operator { color: #dd1111; }
17
+ .cm-s-erlang-dark span.cm-operator { color: #d11; }
18
18
  .cm-s-erlang-dark span.cm-string { color: #3ad900; }
19
19
  .cm-s-erlang-dark span.cm-tag { color: #9effff; }
20
20
  .cm-s-erlang-dark span.cm-variable { color: #50fe50; }
21
- .cm-s-erlang-dark span.cm-variable-2 { color: #ee00ee; }
21
+ .cm-s-erlang-dark span.cm-variable-2 { color: #e0e; }
@@ -0,0 +1,52 @@
1
+ /* Based on the theme at http://bonsaiden.github.com/JavaScript-Garden */
2
+
3
+ /*<!--breakpoint-->*/
4
+ .breakpoints {width: .8em;}
5
+ .breakpoint { color: #822; }
6
+
7
+ /*<!--match-->*/
8
+ span.CodeMirror-matchhighlight { background: #494949 }
9
+ .CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67; !important }
10
+
11
+ /*<!--activeline-->*/
12
+ .activeline {background: #253540 !important;}
13
+
14
+ .cm-s-midnight.CodeMirror {
15
+ background: #0F192A;
16
+ color: #D1EDFF;
17
+ }
18
+
19
+ .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
20
+
21
+ .cm-s-midnight div.CodeMirror-selected {background: #314D67 !important;}
22
+ .cm-s-midnight .CodeMirror-gutters {background: #0F192A; border-right: 1px solid;}
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-tropicaleve 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-error {background: #F92672; color: #F8F8F0;}
40
+ .cm-s-midnight span.cm-bracket {color: #D1EDFF;}
41
+ .cm-s-midnight span.cm-tag {color: #008;}
42
+ .cm-s-midnight span.cm-link {color: #AE81FF;}
43
+
44
+ .cm-s-midnight .CodeMirror-matchingbracket {
45
+ text-decoration: underline;
46
+ color: white !important;
47
+ }
48
+
49
+ .typ { color: #FFAA3E; }
50
+ .atn { color: #606; }
51
+ .atv { color: #080; }
52
+ .dec { color: #606; }
@@ -0,0 +1,43 @@
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-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-error {color: #f00;}
36
+ .cm-s-xq-light span.cm-qualifier {color: grey}
37
+ .cm-s-xq-light span.cm-builtin {color: #7EA656;}
38
+ .cm-s-xq-light span.cm-bracket {color: #cc7;}
39
+ .cm-s-xq-light span.cm-tag {color: #3F7F7F;}
40
+ .cm-s-xq-light span.cm-attribute {color: #7F007F;}
41
+
42
+ .cm-s-xq-light .CodeMirror-activeline-background {background: #e8f2ff !important;}
43
+ .cm-s-xq-light .CodeMirror-matchingbracket {border:1px solid grey;color:black !important;background:yellow;}
@@ -41,6 +41,7 @@
41
41
 
42
42
  .CodeMirror div.CodeMirror-cursor {
43
43
  border-left: 1px solid black;
44
+ z-index: 3;
44
45
  }
45
46
  /* Shown when moving in bi-directional text */
46
47
  .CodeMirror div.CodeMirror-secondarycursor {
@@ -49,17 +50,14 @@
49
50
  .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
50
51
  width: auto;
51
52
  border: 0;
52
- background: transparent;
53
- background: rgba(0, 200, 0, .4);
54
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#6600c800, endColorstr=#4c00c800);
55
- }
56
- /* Kludge to turn off filter in ie9+, which also accepts rgba */
57
- .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor:not(#nonsense_id) {
58
- filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
53
+ background: #7e7;
54
+ z-index: 1;
59
55
  }
60
56
  /* Can style cursor different in overwrite (non-insert) mode */
61
57
  .CodeMirror div.CodeMirror-cursor.CodeMirror-overwrite {}
62
58
 
59
+ .cm-tab { display: inline-block; }
60
+
63
61
  /* DEFAULT THEME */
64
62
 
65
63
  .cm-s-default .cm-keyword {color: #708;}
@@ -90,7 +88,6 @@
90
88
  .cm-positive {color: #292;}
91
89
  .cm-header, .cm-strong {font-weight: bold;}
92
90
  .cm-em {font-style: italic;}
93
- .cm-emstrong {font-style: italic; font-weight: bold;}
94
91
  .cm-link {text-decoration: underline;}
95
92
 
96
93
  .cm-invalidchar {color: #f00;}
@@ -107,11 +104,13 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
107
104
  line-height: 1;
108
105
  position: relative;
109
106
  overflow: hidden;
107
+ background: white;
108
+ color: black;
110
109
  }
111
110
 
112
111
  .CodeMirror-scroll {
113
112
  /* 30px is the magic margin used to hide the element's real scrollbars */
114
- /* See overflow: hidden in .CodeMirror, and the paddings in .CodeMirror-sizer */
113
+ /* See overflow: hidden in .CodeMirror */
115
114
  margin-bottom: -30px; margin-right: -30px;
116
115
  padding-bottom: 30px; padding-right: 30px;
117
116
  height: 100%;
@@ -148,10 +147,13 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
148
147
  .CodeMirror-gutters {
149
148
  position: absolute; left: 0; top: 0;
150
149
  height: 100%;
150
+ padding-bottom: 30px;
151
151
  z-index: 3;
152
152
  }
153
153
  .CodeMirror-gutter {
154
154
  height: 100%;
155
+ padding-bottom: 30px;
156
+ margin-bottom: -32px;
155
157
  display: inline-block;
156
158
  /* Hack to make IE7 behave */
157
159
  *zoom:1;
@@ -168,7 +170,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
168
170
  }
169
171
  .CodeMirror pre {
170
172
  /* Reset some styles that the rest of the page might have set */
171
- -moz-border-radius: 0; -webkit-border-radius: 0; -o-border-radius: 0; border-radius: 0;
173
+ -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
172
174
  border-width: 0;
173
175
  background: transparent;
174
176
  font-family: inherit;
@@ -199,6 +201,10 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
199
201
  overflow: auto;
200
202
  }
201
203
 
204
+ .CodeMirror-widget {
205
+ display: inline-block;
206
+ }
207
+
202
208
  .CodeMirror-wrap .CodeMirror-scroll {
203
209
  overflow-x: hidden;
204
210
  }
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codemirror-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.02'
5
- prerelease:
4
+ version: '3.12'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nathan Fixler
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-12 00:00:00.000000000 Z
11
+ date: 2013-05-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: railties
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rails
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,49 +41,43 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: sqlite3
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: minitest
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: capybara
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description: This gem provides CodeMirror assets for your Rails 3 application.
@@ -152,6 +141,38 @@ files:
152
141
  - test/integration/codemirror_rails_integration_test.rb
153
142
  - test/test_helper.rb
154
143
  - vendor/assets/javascripts/codemirror.js
144
+ - vendor/assets/javascripts/codemirror/addons/dialog/dialog.js
145
+ - vendor/assets/javascripts/codemirror/addons/display/placeholder.js
146
+ - vendor/assets/javascripts/codemirror/addons/edit/closebrackets.js
147
+ - vendor/assets/javascripts/codemirror/addons/edit/closetag.js
148
+ - vendor/assets/javascripts/codemirror/addons/edit/continuecomment.js
149
+ - vendor/assets/javascripts/codemirror/addons/edit/continuelist.js
150
+ - vendor/assets/javascripts/codemirror/addons/edit/matchbrackets.js
151
+ - vendor/assets/javascripts/codemirror/addons/fold/brace-fold.js
152
+ - vendor/assets/javascripts/codemirror/addons/fold/foldcode.js
153
+ - vendor/assets/javascripts/codemirror/addons/fold/indent-fold.js
154
+ - vendor/assets/javascripts/codemirror/addons/fold/xml-fold.js
155
+ - vendor/assets/javascripts/codemirror/addons/hint/html-hint.js
156
+ - vendor/assets/javascripts/codemirror/addons/hint/javascript-hint.js
157
+ - vendor/assets/javascripts/codemirror/addons/hint/pig-hint.js
158
+ - vendor/assets/javascripts/codemirror/addons/hint/python-hint.js
159
+ - vendor/assets/javascripts/codemirror/addons/hint/show-hint.js
160
+ - vendor/assets/javascripts/codemirror/addons/hint/xml-hint.js
161
+ - vendor/assets/javascripts/codemirror/addons/lint/javascript-lint.js
162
+ - vendor/assets/javascripts/codemirror/addons/lint/json-lint.js
163
+ - vendor/assets/javascripts/codemirror/addons/lint/lint.js
164
+ - vendor/assets/javascripts/codemirror/addons/mode/loadmode.js
165
+ - vendor/assets/javascripts/codemirror/addons/mode/multiplex.js
166
+ - vendor/assets/javascripts/codemirror/addons/mode/overlay.js
167
+ - vendor/assets/javascripts/codemirror/addons/runmode/colorize.js
168
+ - vendor/assets/javascripts/codemirror/addons/runmode/runmode-standalone.js
169
+ - vendor/assets/javascripts/codemirror/addons/runmode/runmode.js
170
+ - vendor/assets/javascripts/codemirror/addons/runmode/runmode.node.js
171
+ - vendor/assets/javascripts/codemirror/addons/search/match-highlighter.js
172
+ - vendor/assets/javascripts/codemirror/addons/search/search.js
173
+ - vendor/assets/javascripts/codemirror/addons/search/searchcursor.js
174
+ - vendor/assets/javascripts/codemirror/addons/selection/active-line.js
175
+ - vendor/assets/javascripts/codemirror/addons/selection/mark-selection.js
155
176
  - vendor/assets/javascripts/codemirror/keymaps/emacs.js
156
177
  - vendor/assets/javascripts/codemirror/keymaps/vim.js
157
178
  - vendor/assets/javascripts/codemirror/modes/apl.js
@@ -165,6 +186,7 @@ files:
165
186
  - vendor/assets/javascripts/codemirror/modes/diff.js
166
187
  - vendor/assets/javascripts/codemirror/modes/ecl.js
167
188
  - vendor/assets/javascripts/codemirror/modes/erlang.js
189
+ - vendor/assets/javascripts/codemirror/modes/gas.js
168
190
  - vendor/assets/javascripts/codemirror/modes/gfm.js
169
191
  - vendor/assets/javascripts/codemirror/modes/go.js
170
192
  - vendor/assets/javascripts/codemirror/modes/groovy.js
@@ -176,18 +198,19 @@ files:
176
198
  - vendor/assets/javascripts/codemirror/modes/javascript.js
177
199
  - vendor/assets/javascripts/codemirror/modes/jinja2.js
178
200
  - vendor/assets/javascripts/codemirror/modes/less.js
201
+ - vendor/assets/javascripts/codemirror/modes/livescript.js
179
202
  - vendor/assets/javascripts/codemirror/modes/lua.js
180
203
  - vendor/assets/javascripts/codemirror/modes/markdown.js
181
- - vendor/assets/javascripts/codemirror/modes/mysql.js
204
+ - vendor/assets/javascripts/codemirror/modes/mirc.js
182
205
  - vendor/assets/javascripts/codemirror/modes/ntriples.js
183
206
  - vendor/assets/javascripts/codemirror/modes/ocaml.js
184
207
  - vendor/assets/javascripts/codemirror/modes/pascal.js
185
208
  - vendor/assets/javascripts/codemirror/modes/perl.js
186
209
  - vendor/assets/javascripts/codemirror/modes/php.js
187
210
  - vendor/assets/javascripts/codemirror/modes/pig.js
188
- - vendor/assets/javascripts/codemirror/modes/plsql.js
189
211
  - vendor/assets/javascripts/codemirror/modes/properties.js
190
212
  - vendor/assets/javascripts/codemirror/modes/python.js
213
+ - vendor/assets/javascripts/codemirror/modes/q.js
191
214
  - vendor/assets/javascripts/codemirror/modes/r.js
192
215
  - vendor/assets/javascripts/codemirror/modes/rpm-changes.js
193
216
  - vendor/assets/javascripts/codemirror/modes/rpm-spec.js
@@ -196,6 +219,7 @@ files:
196
219
  - vendor/assets/javascripts/codemirror/modes/rust.js
197
220
  - vendor/assets/javascripts/codemirror/modes/sass.js
198
221
  - vendor/assets/javascripts/codemirror/modes/scheme.js
222
+ - vendor/assets/javascripts/codemirror/modes/scss_test.js
199
223
  - vendor/assets/javascripts/codemirror/modes/shell.js
200
224
  - vendor/assets/javascripts/codemirror/modes/sieve.js
201
225
  - vendor/assets/javascripts/codemirror/modes/smalltalk.js
@@ -203,8 +227,11 @@ files:
203
227
  - vendor/assets/javascripts/codemirror/modes/sparql.js
204
228
  - vendor/assets/javascripts/codemirror/modes/sql.js
205
229
  - vendor/assets/javascripts/codemirror/modes/stex.js
230
+ - vendor/assets/javascripts/codemirror/modes/tcl.js
231
+ - vendor/assets/javascripts/codemirror/modes/test.js
206
232
  - vendor/assets/javascripts/codemirror/modes/tiddlywiki.js
207
233
  - vendor/assets/javascripts/codemirror/modes/tiki.js
234
+ - vendor/assets/javascripts/codemirror/modes/turtle.js
208
235
  - vendor/assets/javascripts/codemirror/modes/vb.js
209
236
  - vendor/assets/javascripts/codemirror/modes/vbscript.js
210
237
  - vendor/assets/javascripts/codemirror/modes/velocity.js
@@ -213,29 +240,10 @@ files:
213
240
  - vendor/assets/javascripts/codemirror/modes/xquery.js
214
241
  - vendor/assets/javascripts/codemirror/modes/yaml.js
215
242
  - vendor/assets/javascripts/codemirror/modes/z80.js
216
- - vendor/assets/javascripts/codemirror/utils/closetag.js
217
- - vendor/assets/javascripts/codemirror/utils/collapserange.js
218
- - vendor/assets/javascripts/codemirror/utils/colorize.js
219
- - vendor/assets/javascripts/codemirror/utils/continuecomment.js
220
- - vendor/assets/javascripts/codemirror/utils/continuelist.js
221
- - vendor/assets/javascripts/codemirror/utils/dialog.js
222
- - vendor/assets/javascripts/codemirror/utils/foldcode.js
223
- - vendor/assets/javascripts/codemirror/utils/formatting.js
224
- - vendor/assets/javascripts/codemirror/utils/javascript-hint.js
225
- - vendor/assets/javascripts/codemirror/utils/loadmode.js
226
- - vendor/assets/javascripts/codemirror/utils/match-highlighter.js
227
- - vendor/assets/javascripts/codemirror/utils/matchbrackets.js
228
- - vendor/assets/javascripts/codemirror/utils/multiplex.js
229
- - vendor/assets/javascripts/codemirror/utils/overlay.js
230
- - vendor/assets/javascripts/codemirror/utils/pig-hint.js
231
- - vendor/assets/javascripts/codemirror/utils/python-hint.js
232
- - vendor/assets/javascripts/codemirror/utils/runmode-standalone.js
233
- - vendor/assets/javascripts/codemirror/utils/runmode.js
234
- - vendor/assets/javascripts/codemirror/utils/search.js
235
- - vendor/assets/javascripts/codemirror/utils/searchcursor.js
236
- - vendor/assets/javascripts/codemirror/utils/simple-hint.js
237
- - vendor/assets/javascripts/codemirror/utils/xml-hint.js
238
243
  - vendor/assets/stylesheets/codemirror.css
244
+ - vendor/assets/stylesheets/codemirror/addons/dialog/dialog.css
245
+ - vendor/assets/stylesheets/codemirror/addons/hint/show-hint.css
246
+ - vendor/assets/stylesheets/codemirror/addons/lint/lint.css
239
247
  - vendor/assets/stylesheets/codemirror/modes/rpm-spec.css
240
248
  - vendor/assets/stylesheets/codemirror/modes/tiddlywiki.css
241
249
  - vendor/assets/stylesheets/codemirror/modes/tiki.css
@@ -247,6 +255,7 @@ files:
247
255
  - vendor/assets/stylesheets/codemirror/themes/elegant.css
248
256
  - vendor/assets/stylesheets/codemirror/themes/erlang-dark.css
249
257
  - vendor/assets/stylesheets/codemirror/themes/lesser-dark.css
258
+ - vendor/assets/stylesheets/codemirror/themes/midnight.css
250
259
  - vendor/assets/stylesheets/codemirror/themes/monokai.css
251
260
  - vendor/assets/stylesheets/codemirror/themes/neat.css
252
261
  - vendor/assets/stylesheets/codemirror/themes/night.css
@@ -255,30 +264,29 @@ files:
255
264
  - vendor/assets/stylesheets/codemirror/themes/twilight.css
256
265
  - vendor/assets/stylesheets/codemirror/themes/vibrant-ink.css
257
266
  - vendor/assets/stylesheets/codemirror/themes/xq-dark.css
258
- - vendor/assets/stylesheets/codemirror/utils/dialog.css
259
- - vendor/assets/stylesheets/codemirror/utils/simple-hint.css
267
+ - vendor/assets/stylesheets/codemirror/themes/xq-light.css
260
268
  homepage: https://rubygems.org/gems/codemirror-rails
261
- licenses: []
269
+ licenses:
270
+ - MIT
271
+ metadata: {}
262
272
  post_install_message:
263
273
  rdoc_options: []
264
274
  require_paths:
265
275
  - lib
266
276
  required_ruby_version: !ruby/object:Gem::Requirement
267
- none: false
268
277
  requirements:
269
- - - ! '>='
278
+ - - '>='
270
279
  - !ruby/object:Gem::Version
271
280
  version: '0'
272
281
  required_rubygems_version: !ruby/object:Gem::Requirement
273
- none: false
274
282
  requirements:
275
- - - ! '>='
283
+ - - '>='
276
284
  - !ruby/object:Gem::Version
277
285
  version: '0'
278
286
  requirements: []
279
287
  rubyforge_project:
280
- rubygems_version: 1.8.25
288
+ rubygems_version: 2.0.0
281
289
  signing_key:
282
- specification_version: 3
290
+ specification_version: 4
283
291
  summary: Use CodeMirror with Rails 3
284
292
  test_files: []