From b87ab87ce0cdf4976dddb517ed0f8564856860d0 Mon Sep 17 00:00:00 2001 From: Eric Wood Date: Tue, 27 Nov 2012 12:06:37 -0600 Subject: [PATCH 1/4] Replace textarea instaces CodeMirror Added CodeMirror files TODO: remove unnecessary files --- codemirror-2.36/.gitignore | 2 + codemirror-2.36/.travis.yml | 3 + codemirror-2.36/LICENSE | 23 + codemirror-2.36/README.md | 8 + codemirror-2.36/bin/compress | 88 + codemirror-2.36/demo/activeline.html | 73 + codemirror-2.36/demo/changemode.html | 51 + codemirror-2.36/demo/closetag.html | 66 + codemirror-2.36/demo/complete.html | 71 + codemirror-2.36/demo/emacs.html | 60 + codemirror-2.36/demo/folding.html | 62 + codemirror-2.36/demo/formatting.html | 81 + codemirror-2.36/demo/fullscreen.html | 147 + codemirror-2.36/demo/loadmode.html | 40 + codemirror-2.36/demo/marker.html | 53 + codemirror-2.36/demo/matchhighlighter.html | 38 + codemirror-2.36/demo/multiplex.html | 60 + codemirror-2.36/demo/mustache.html | 59 + codemirror-2.36/demo/preview.html | 76 + codemirror-2.36/demo/resize.html | 42 + codemirror-2.36/demo/runmode.html | 50 + codemirror-2.36/demo/search.html | 85 + codemirror-2.36/demo/theme.html | 81 + codemirror-2.36/demo/vim.html | 53 + codemirror-2.36/demo/visibletabs.html | 53 + codemirror-2.36/demo/xmlcomplete.html | 71 + codemirror-2.36/doc/baboon.png | Bin 0 -> 23299 bytes codemirror-2.36/doc/baboon_vector.svg | 153 + codemirror-2.36/doc/compress.html | 168 + codemirror-2.36/doc/docs.css | 167 + codemirror-2.36/doc/internals.html | 497 +++ codemirror-2.36/doc/manual.html | 1242 +++++++ codemirror-2.36/doc/oldrelease.html | 356 ++ codemirror-2.36/doc/realworld.html | 78 + codemirror-2.36/doc/reporting.html | 60 + codemirror-2.36/doc/upgrade_v2.2.html | 98 + codemirror-2.36/index.html | 480 +++ codemirror-2.36/keymap/emacs.js | 30 + codemirror-2.36/keymap/vim.js | 897 +++++ codemirror-2.36/lib/codemirror.css | 174 + codemirror-2.36/lib/codemirror.js | 3171 +++++++++++++++++ codemirror-2.36/lib/util/closetag.js | 164 + codemirror-2.36/lib/util/continuecomment.js | 36 + codemirror-2.36/lib/util/dialog.css | 27 + codemirror-2.36/lib/util/dialog.js | 70 + codemirror-2.36/lib/util/foldcode.js | 196 + codemirror-2.36/lib/util/formatting.js | 196 + codemirror-2.36/lib/util/javascript-hint.js | 134 + codemirror-2.36/lib/util/loadmode.js | 51 + codemirror-2.36/lib/util/match-highlighter.js | 44 + codemirror-2.36/lib/util/multiplex.js | 77 + codemirror-2.36/lib/util/overlay.js | 59 + codemirror-2.36/lib/util/pig-hint.js | 123 + .../lib/util/runmode-standalone.js | 90 + codemirror-2.36/lib/util/runmode.js | 53 + codemirror-2.36/lib/util/search.js | 118 + codemirror-2.36/lib/util/searchcursor.js | 119 + codemirror-2.36/lib/util/simple-hint.css | 16 + codemirror-2.36/lib/util/simple-hint.js | 102 + codemirror-2.36/lib/util/xml-hint.js | 131 + codemirror-2.36/mode/clike/clike.js | 285 ++ codemirror-2.36/mode/clike/index.html | 102 + codemirror-2.36/mode/clike/scala.html | 766 ++++ codemirror-2.36/mode/clojure/clojure.js | 206 ++ codemirror-2.36/mode/clojure/index.html | 67 + codemirror-2.36/mode/coffeescript/LICENSE | 22 + .../mode/coffeescript/coffeescript.js | 346 ++ codemirror-2.36/mode/coffeescript/index.html | 728 ++++ codemirror-2.36/mode/commonlisp/commonlisp.js | 101 + codemirror-2.36/mode/commonlisp/index.html | 165 + codemirror-2.36/mode/css/css.js | 448 +++ codemirror-2.36/mode/css/index.html | 58 + codemirror-2.36/mode/css/test.js | 501 +++ codemirror-2.36/mode/diff/diff.js | 32 + codemirror-2.36/mode/diff/index.html | 105 + codemirror-2.36/mode/ecl/ecl.js | 203 ++ codemirror-2.36/mode/ecl/index.html | 42 + codemirror-2.36/mode/erlang/erlang.js | 463 +++ codemirror-2.36/mode/erlang/index.html | 63 + codemirror-2.36/mode/gfm/gfm.js | 94 + codemirror-2.36/mode/gfm/index.html | 71 + codemirror-2.36/mode/gfm/test.js | 225 ++ codemirror-2.36/mode/go/go.js | 170 + codemirror-2.36/mode/go/index.html | 73 + codemirror-2.36/mode/groovy/groovy.js | 210 ++ codemirror-2.36/mode/groovy/index.html | 72 + codemirror-2.36/mode/haskell/haskell.js | 242 ++ codemirror-2.36/mode/haskell/index.html | 61 + codemirror-2.36/mode/haxe/haxe.js | 429 +++ codemirror-2.36/mode/haxe/index.html | 91 + .../mode/htmlembedded/htmlembedded.js | 73 + codemirror-2.36/mode/htmlembedded/index.html | 50 + codemirror-2.36/mode/htmlmixed/htmlmixed.js | 84 + codemirror-2.36/mode/htmlmixed/index.html | 52 + codemirror-2.36/mode/javascript/index.html | 87 + codemirror-2.36/mode/javascript/javascript.js | 411 +++ .../mode/javascript/typescript.html | 48 + codemirror-2.36/mode/jinja2/index.html | 38 + codemirror-2.36/mode/jinja2/jinja2.js | 42 + codemirror-2.36/mode/less/index.html | 740 ++++ codemirror-2.36/mode/less/less.js | 266 ++ codemirror-2.36/mode/lua/index.html | 73 + codemirror-2.36/mode/lua/lua.js | 140 + codemirror-2.36/mode/markdown/index.html | 343 ++ codemirror-2.36/mode/markdown/markdown.js | 481 +++ codemirror-2.36/mode/markdown/test.js | 1266 +++++++ codemirror-2.36/mode/mysql/index.html | 42 + codemirror-2.36/mode/mysql/mysql.js | 203 ++ codemirror-2.36/mode/ntriples/index.html | 33 + codemirror-2.36/mode/ntriples/ntriples.js | 172 + codemirror-2.36/mode/ocaml/index.html | 130 + codemirror-2.36/mode/ocaml/ocaml.js | 114 + codemirror-2.36/mode/pascal/LICENSE | 7 + codemirror-2.36/mode/pascal/index.html | 49 + codemirror-2.36/mode/pascal/pascal.js | 94 + codemirror-2.36/mode/perl/LICENSE | 19 + codemirror-2.36/mode/perl/index.html | 63 + codemirror-2.36/mode/perl/perl.js | 816 +++++ codemirror-2.36/mode/php/index.html | 50 + codemirror-2.36/mode/php/php.js | 128 + codemirror-2.36/mode/pig/index.html | 43 + codemirror-2.36/mode/pig/pig.js | 172 + codemirror-2.36/mode/plsql/index.html | 63 + codemirror-2.36/mode/plsql/plsql.js | 217 ++ codemirror-2.36/mode/properties/index.html | 41 + codemirror-2.36/mode/properties/properties.js | 63 + codemirror-2.36/mode/python/LICENSE.txt | 21 + codemirror-2.36/mode/python/index.html | 123 + codemirror-2.36/mode/python/python.js | 340 ++ codemirror-2.36/mode/r/LICENSE | 24 + codemirror-2.36/mode/r/index.html | 74 + codemirror-2.36/mode/r/r.js | 141 + codemirror-2.36/mode/rpm/changes/changes.js | 19 + codemirror-2.36/mode/rpm/changes/index.html | 54 + codemirror-2.36/mode/rpm/spec/index.html | 100 + codemirror-2.36/mode/rpm/spec/spec.css | 5 + codemirror-2.36/mode/rpm/spec/spec.js | 66 + codemirror-2.36/mode/rst/index.html | 526 +++ codemirror-2.36/mode/rst/rst.js | 326 ++ codemirror-2.36/mode/ruby/LICENSE | 24 + codemirror-2.36/mode/ruby/index.html | 172 + codemirror-2.36/mode/ruby/ruby.js | 195 + codemirror-2.36/mode/rust/index.html | 49 + codemirror-2.36/mode/rust/rust.js | 432 +++ codemirror-2.36/mode/scheme/index.html | 65 + codemirror-2.36/mode/scheme/scheme.js | 230 ++ codemirror-2.36/mode/shell/index.html | 50 + codemirror-2.36/mode/shell/shell.js | 118 + codemirror-2.36/mode/sieve/LICENSE | 23 + codemirror-2.36/mode/sieve/index.html | 81 + codemirror-2.36/mode/sieve/sieve.js | 156 + codemirror-2.36/mode/smalltalk/index.html | 56 + codemirror-2.36/mode/smalltalk/smalltalk.js | 139 + codemirror-2.36/mode/smarty/index.html | 83 + codemirror-2.36/mode/smarty/smarty.js | 148 + codemirror-2.36/mode/sparql/index.html | 41 + codemirror-2.36/mode/sparql/sparql.js | 143 + codemirror-2.36/mode/stex/index.html | 98 + codemirror-2.36/mode/stex/stex.js | 182 + codemirror-2.36/mode/stex/test.js | 343 ++ codemirror-2.36/mode/tiddlywiki/index.html | 141 + .../mode/tiddlywiki/tiddlywiki.css | 14 + codemirror-2.36/mode/tiddlywiki/tiddlywiki.js | 384 ++ codemirror-2.36/mode/tiki/index.html | 83 + codemirror-2.36/mode/tiki/tiki.css | 26 + codemirror-2.36/mode/tiki/tiki.js | 309 ++ codemirror-2.36/mode/vb/LICENSE.txt | 21 + codemirror-2.36/mode/vb/index.html | 89 + codemirror-2.36/mode/vb/vb.js | 260 ++ codemirror-2.36/mode/vbscript/index.html | 43 + codemirror-2.36/mode/vbscript/vbscript.js | 26 + codemirror-2.36/mode/velocity/index.html | 104 + codemirror-2.36/mode/velocity/velocity.js | 146 + codemirror-2.36/mode/verilog/index.html | 211 ++ codemirror-2.36/mode/verilog/verilog.js | 194 + codemirror-2.36/mode/xml/index.html | 45 + codemirror-2.36/mode/xml/xml.js | 320 ++ codemirror-2.36/mode/xquery/LICENSE | 20 + codemirror-2.36/mode/xquery/index.html | 223 ++ codemirror-2.36/mode/xquery/test/index.html | 27 + codemirror-2.36/mode/xquery/test/testBase.js | 42 + .../xquery/test/testEmptySequenceKeyword.js | 16 + .../mode/xquery/test/testMultiAttr.js | 16 + .../mode/xquery/test/testNamespaces.js | 91 + .../xquery/test/testProcessingInstructions.js | 16 + .../mode/xquery/test/testQuotes.js | 19 + codemirror-2.36/mode/xquery/xquery.js | 451 +++ codemirror-2.36/mode/yaml/index.html | 68 + codemirror-2.36/mode/yaml/yaml.js | 95 + codemirror-2.36/mode/z80/index.html | 39 + codemirror-2.36/mode/z80/z80.js | 113 + codemirror-2.36/package.json | 21 + codemirror-2.36/test/driver.js | 129 + codemirror-2.36/test/index.html | 171 + codemirror-2.36/test/lint/lint.js | 120 + codemirror-2.36/test/lint/parse-js.js | 1372 +++++++ codemirror-2.36/test/mode_test.css | 10 + codemirror-2.36/test/mode_test.js | 203 ++ codemirror-2.36/test/phantom_driver.js | 30 + codemirror-2.36/test/run.js | 32 + codemirror-2.36/test/test.js | 677 ++++ codemirror-2.36/theme/ambiance-mobile.css | 6 + codemirror-2.36/theme/ambiance.css | 81 + codemirror-2.36/theme/blackboard.css | 25 + codemirror-2.36/theme/cobalt.css | 18 + codemirror-2.36/theme/eclipse.css | 25 + codemirror-2.36/theme/elegant.css | 10 + codemirror-2.36/theme/erlang-dark.css | 21 + codemirror-2.36/theme/lesser-dark.css | 44 + codemirror-2.36/theme/monokai.css | 28 + codemirror-2.36/theme/neat.css | 9 + codemirror-2.36/theme/night.css | 21 + codemirror-2.36/theme/rubyblue.css | 21 + codemirror-2.36/theme/twilight.css | 26 + codemirror-2.36/theme/vibrant-ink.css | 27 + codemirror-2.36/theme/xq-dark.css | 46 + edit.html | 3 + edit.js | 11 +- 218 files changed, 35512 insertions(+), 1 deletion(-) create mode 100644 codemirror-2.36/.gitignore create mode 100644 codemirror-2.36/.travis.yml create mode 100644 codemirror-2.36/LICENSE create mode 100644 codemirror-2.36/README.md create mode 100755 codemirror-2.36/bin/compress create mode 100644 codemirror-2.36/demo/activeline.html create mode 100644 codemirror-2.36/demo/changemode.html create mode 100644 codemirror-2.36/demo/closetag.html create mode 100644 codemirror-2.36/demo/complete.html create mode 100644 codemirror-2.36/demo/emacs.html create mode 100644 codemirror-2.36/demo/folding.html create mode 100644 codemirror-2.36/demo/formatting.html create mode 100644 codemirror-2.36/demo/fullscreen.html create mode 100644 codemirror-2.36/demo/loadmode.html create mode 100644 codemirror-2.36/demo/marker.html create mode 100644 codemirror-2.36/demo/matchhighlighter.html create mode 100644 codemirror-2.36/demo/multiplex.html create mode 100644 codemirror-2.36/demo/mustache.html create mode 100644 codemirror-2.36/demo/preview.html create mode 100644 codemirror-2.36/demo/resize.html create mode 100644 codemirror-2.36/demo/runmode.html create mode 100644 codemirror-2.36/demo/search.html create mode 100644 codemirror-2.36/demo/theme.html create mode 100644 codemirror-2.36/demo/vim.html create mode 100644 codemirror-2.36/demo/visibletabs.html create mode 100644 codemirror-2.36/demo/xmlcomplete.html create mode 100644 codemirror-2.36/doc/baboon.png create mode 100644 codemirror-2.36/doc/baboon_vector.svg create mode 100644 codemirror-2.36/doc/compress.html create mode 100644 codemirror-2.36/doc/docs.css create mode 100644 codemirror-2.36/doc/internals.html create mode 100644 codemirror-2.36/doc/manual.html create mode 100644 codemirror-2.36/doc/oldrelease.html create mode 100644 codemirror-2.36/doc/realworld.html create mode 100644 codemirror-2.36/doc/reporting.html create mode 100644 codemirror-2.36/doc/upgrade_v2.2.html create mode 100644 codemirror-2.36/index.html create mode 100644 codemirror-2.36/keymap/emacs.js create mode 100644 codemirror-2.36/keymap/vim.js create mode 100644 codemirror-2.36/lib/codemirror.css create mode 100644 codemirror-2.36/lib/codemirror.js create mode 100644 codemirror-2.36/lib/util/closetag.js create mode 100644 codemirror-2.36/lib/util/continuecomment.js create mode 100644 codemirror-2.36/lib/util/dialog.css create mode 100644 codemirror-2.36/lib/util/dialog.js create mode 100644 codemirror-2.36/lib/util/foldcode.js create mode 100644 codemirror-2.36/lib/util/formatting.js create mode 100644 codemirror-2.36/lib/util/javascript-hint.js create mode 100644 codemirror-2.36/lib/util/loadmode.js create mode 100644 codemirror-2.36/lib/util/match-highlighter.js create mode 100644 codemirror-2.36/lib/util/multiplex.js create mode 100644 codemirror-2.36/lib/util/overlay.js create mode 100644 codemirror-2.36/lib/util/pig-hint.js create mode 100644 codemirror-2.36/lib/util/runmode-standalone.js create mode 100644 codemirror-2.36/lib/util/runmode.js create mode 100644 codemirror-2.36/lib/util/search.js create mode 100644 codemirror-2.36/lib/util/searchcursor.js create mode 100644 codemirror-2.36/lib/util/simple-hint.css create mode 100644 codemirror-2.36/lib/util/simple-hint.js create mode 100644 codemirror-2.36/lib/util/xml-hint.js create mode 100644 codemirror-2.36/mode/clike/clike.js create mode 100644 codemirror-2.36/mode/clike/index.html create mode 100644 codemirror-2.36/mode/clike/scala.html create mode 100644 codemirror-2.36/mode/clojure/clojure.js create mode 100644 codemirror-2.36/mode/clojure/index.html create mode 100644 codemirror-2.36/mode/coffeescript/LICENSE create mode 100644 codemirror-2.36/mode/coffeescript/coffeescript.js create mode 100644 codemirror-2.36/mode/coffeescript/index.html create mode 100644 codemirror-2.36/mode/commonlisp/commonlisp.js create mode 100644 codemirror-2.36/mode/commonlisp/index.html create mode 100644 codemirror-2.36/mode/css/css.js create mode 100644 codemirror-2.36/mode/css/index.html create mode 100644 codemirror-2.36/mode/css/test.js create mode 100644 codemirror-2.36/mode/diff/diff.js create mode 100644 codemirror-2.36/mode/diff/index.html create mode 100644 codemirror-2.36/mode/ecl/ecl.js create mode 100644 codemirror-2.36/mode/ecl/index.html create mode 100644 codemirror-2.36/mode/erlang/erlang.js create mode 100644 codemirror-2.36/mode/erlang/index.html create mode 100644 codemirror-2.36/mode/gfm/gfm.js create mode 100644 codemirror-2.36/mode/gfm/index.html create mode 100644 codemirror-2.36/mode/gfm/test.js create mode 100644 codemirror-2.36/mode/go/go.js create mode 100644 codemirror-2.36/mode/go/index.html create mode 100644 codemirror-2.36/mode/groovy/groovy.js create mode 100644 codemirror-2.36/mode/groovy/index.html create mode 100644 codemirror-2.36/mode/haskell/haskell.js create mode 100644 codemirror-2.36/mode/haskell/index.html create mode 100644 codemirror-2.36/mode/haxe/haxe.js create mode 100644 codemirror-2.36/mode/haxe/index.html create mode 100644 codemirror-2.36/mode/htmlembedded/htmlembedded.js create mode 100644 codemirror-2.36/mode/htmlembedded/index.html create mode 100644 codemirror-2.36/mode/htmlmixed/htmlmixed.js create mode 100644 codemirror-2.36/mode/htmlmixed/index.html create mode 100644 codemirror-2.36/mode/javascript/index.html create mode 100644 codemirror-2.36/mode/javascript/javascript.js create mode 100644 codemirror-2.36/mode/javascript/typescript.html create mode 100644 codemirror-2.36/mode/jinja2/index.html create mode 100644 codemirror-2.36/mode/jinja2/jinja2.js create mode 100644 codemirror-2.36/mode/less/index.html create mode 100644 codemirror-2.36/mode/less/less.js create mode 100644 codemirror-2.36/mode/lua/index.html create mode 100644 codemirror-2.36/mode/lua/lua.js create mode 100644 codemirror-2.36/mode/markdown/index.html create mode 100644 codemirror-2.36/mode/markdown/markdown.js create mode 100644 codemirror-2.36/mode/markdown/test.js create mode 100644 codemirror-2.36/mode/mysql/index.html create mode 100644 codemirror-2.36/mode/mysql/mysql.js create mode 100644 codemirror-2.36/mode/ntriples/index.html create mode 100644 codemirror-2.36/mode/ntriples/ntriples.js create mode 100644 codemirror-2.36/mode/ocaml/index.html create mode 100644 codemirror-2.36/mode/ocaml/ocaml.js create mode 100644 codemirror-2.36/mode/pascal/LICENSE create mode 100644 codemirror-2.36/mode/pascal/index.html create mode 100644 codemirror-2.36/mode/pascal/pascal.js create mode 100644 codemirror-2.36/mode/perl/LICENSE create mode 100644 codemirror-2.36/mode/perl/index.html create mode 100644 codemirror-2.36/mode/perl/perl.js create mode 100644 codemirror-2.36/mode/php/index.html create mode 100644 codemirror-2.36/mode/php/php.js create mode 100644 codemirror-2.36/mode/pig/index.html create mode 100644 codemirror-2.36/mode/pig/pig.js create mode 100644 codemirror-2.36/mode/plsql/index.html create mode 100644 codemirror-2.36/mode/plsql/plsql.js create mode 100755 codemirror-2.36/mode/properties/index.html create mode 100755 codemirror-2.36/mode/properties/properties.js create mode 100644 codemirror-2.36/mode/python/LICENSE.txt create mode 100644 codemirror-2.36/mode/python/index.html create mode 100644 codemirror-2.36/mode/python/python.js create mode 100644 codemirror-2.36/mode/r/LICENSE create mode 100644 codemirror-2.36/mode/r/index.html create mode 100644 codemirror-2.36/mode/r/r.js create mode 100644 codemirror-2.36/mode/rpm/changes/changes.js create mode 100644 codemirror-2.36/mode/rpm/changes/index.html create mode 100644 codemirror-2.36/mode/rpm/spec/index.html create mode 100644 codemirror-2.36/mode/rpm/spec/spec.css create mode 100644 codemirror-2.36/mode/rpm/spec/spec.js create mode 100644 codemirror-2.36/mode/rst/index.html create mode 100644 codemirror-2.36/mode/rst/rst.js create mode 100644 codemirror-2.36/mode/ruby/LICENSE create mode 100644 codemirror-2.36/mode/ruby/index.html create mode 100644 codemirror-2.36/mode/ruby/ruby.js create mode 100644 codemirror-2.36/mode/rust/index.html create mode 100644 codemirror-2.36/mode/rust/rust.js create mode 100644 codemirror-2.36/mode/scheme/index.html create mode 100644 codemirror-2.36/mode/scheme/scheme.js create mode 100644 codemirror-2.36/mode/shell/index.html create mode 100644 codemirror-2.36/mode/shell/shell.js create mode 100644 codemirror-2.36/mode/sieve/LICENSE create mode 100644 codemirror-2.36/mode/sieve/index.html create mode 100644 codemirror-2.36/mode/sieve/sieve.js create mode 100644 codemirror-2.36/mode/smalltalk/index.html create mode 100644 codemirror-2.36/mode/smalltalk/smalltalk.js create mode 100644 codemirror-2.36/mode/smarty/index.html create mode 100644 codemirror-2.36/mode/smarty/smarty.js create mode 100644 codemirror-2.36/mode/sparql/index.html create mode 100644 codemirror-2.36/mode/sparql/sparql.js create mode 100644 codemirror-2.36/mode/stex/index.html create mode 100644 codemirror-2.36/mode/stex/stex.js create mode 100644 codemirror-2.36/mode/stex/test.js create mode 100644 codemirror-2.36/mode/tiddlywiki/index.html create mode 100644 codemirror-2.36/mode/tiddlywiki/tiddlywiki.css create mode 100644 codemirror-2.36/mode/tiddlywiki/tiddlywiki.js create mode 100644 codemirror-2.36/mode/tiki/index.html create mode 100644 codemirror-2.36/mode/tiki/tiki.css create mode 100644 codemirror-2.36/mode/tiki/tiki.js create mode 100644 codemirror-2.36/mode/vb/LICENSE.txt create mode 100644 codemirror-2.36/mode/vb/index.html create mode 100644 codemirror-2.36/mode/vb/vb.js create mode 100644 codemirror-2.36/mode/vbscript/index.html create mode 100644 codemirror-2.36/mode/vbscript/vbscript.js create mode 100644 codemirror-2.36/mode/velocity/index.html create mode 100644 codemirror-2.36/mode/velocity/velocity.js create mode 100644 codemirror-2.36/mode/verilog/index.html create mode 100644 codemirror-2.36/mode/verilog/verilog.js create mode 100644 codemirror-2.36/mode/xml/index.html create mode 100644 codemirror-2.36/mode/xml/xml.js create mode 100644 codemirror-2.36/mode/xquery/LICENSE create mode 100644 codemirror-2.36/mode/xquery/index.html create mode 100644 codemirror-2.36/mode/xquery/test/index.html create mode 100644 codemirror-2.36/mode/xquery/test/testBase.js create mode 100644 codemirror-2.36/mode/xquery/test/testEmptySequenceKeyword.js create mode 100644 codemirror-2.36/mode/xquery/test/testMultiAttr.js create mode 100644 codemirror-2.36/mode/xquery/test/testNamespaces.js create mode 100644 codemirror-2.36/mode/xquery/test/testProcessingInstructions.js create mode 100644 codemirror-2.36/mode/xquery/test/testQuotes.js create mode 100644 codemirror-2.36/mode/xquery/xquery.js create mode 100644 codemirror-2.36/mode/yaml/index.html create mode 100644 codemirror-2.36/mode/yaml/yaml.js create mode 100644 codemirror-2.36/mode/z80/index.html create mode 100644 codemirror-2.36/mode/z80/z80.js create mode 100644 codemirror-2.36/package.json create mode 100644 codemirror-2.36/test/driver.js create mode 100644 codemirror-2.36/test/index.html create mode 100644 codemirror-2.36/test/lint/lint.js create mode 100644 codemirror-2.36/test/lint/parse-js.js create mode 100644 codemirror-2.36/test/mode_test.css create mode 100644 codemirror-2.36/test/mode_test.js create mode 100644 codemirror-2.36/test/phantom_driver.js create mode 100755 codemirror-2.36/test/run.js create mode 100644 codemirror-2.36/test/test.js create mode 100644 codemirror-2.36/theme/ambiance-mobile.css create mode 100644 codemirror-2.36/theme/ambiance.css create mode 100644 codemirror-2.36/theme/blackboard.css create mode 100644 codemirror-2.36/theme/cobalt.css create mode 100644 codemirror-2.36/theme/eclipse.css create mode 100644 codemirror-2.36/theme/elegant.css create mode 100644 codemirror-2.36/theme/erlang-dark.css create mode 100644 codemirror-2.36/theme/lesser-dark.css create mode 100644 codemirror-2.36/theme/monokai.css create mode 100644 codemirror-2.36/theme/neat.css create mode 100644 codemirror-2.36/theme/night.css create mode 100644 codemirror-2.36/theme/rubyblue.css create mode 100644 codemirror-2.36/theme/twilight.css create mode 100644 codemirror-2.36/theme/vibrant-ink.css create mode 100644 codemirror-2.36/theme/xq-dark.css diff --git a/codemirror-2.36/.gitignore b/codemirror-2.36/.gitignore new file mode 100644 index 00000000..28b5e414 --- /dev/null +++ b/codemirror-2.36/.gitignore @@ -0,0 +1,2 @@ +/node_modules +/npm-debug.log \ No newline at end of file diff --git a/codemirror-2.36/.travis.yml b/codemirror-2.36/.travis.yml new file mode 100644 index 00000000..baa0031d --- /dev/null +++ b/codemirror-2.36/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - 0.8 diff --git a/codemirror-2.36/LICENSE b/codemirror-2.36/LICENSE new file mode 100644 index 00000000..3916e96b --- /dev/null +++ b/codemirror-2.36/LICENSE @@ -0,0 +1,23 @@ +Copyright (C) 2012 by Marijn Haverbeke + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +Please note that some subdirectories of the CodeMirror distribution +include their own LICENSE files, and are released under different +licences. diff --git a/codemirror-2.36/README.md b/codemirror-2.36/README.md new file mode 100644 index 00000000..8ed9871a --- /dev/null +++ b/codemirror-2.36/README.md @@ -0,0 +1,8 @@ +# CodeMirror [![Build Status](https://secure.travis-ci.org/marijnh/CodeMirror.png?branch=master)](http://travis-ci.org/marijnh/CodeMirror) + +CodeMirror is a JavaScript component that provides a code editor in +the browser. When a mode is available for the language you are coding +in, it will color your code, and optionally help with indentation. + +The project page is http://codemirror.net +The manual is at http://codemirror.net/doc/manual.html diff --git a/codemirror-2.36/bin/compress b/codemirror-2.36/bin/compress new file mode 100755 index 00000000..925eee2c --- /dev/null +++ b/codemirror-2.36/bin/compress @@ -0,0 +1,88 @@ +#!/usr/bin/env node + +// Compression helper for CodeMirror +// +// Example: +// +// bin/compress codemirror runmode javascript xml +// +// Will take lib/codemirror.js, lib/util/runmode.js, +// mode/javascript/javascript.js, and mode/xml/xml.js, run them though +// the online minifier at http://marijnhaverbeke.nl/uglifyjs, and spit +// out the result. +// +// bin/compress codemirror --local /path/to/bin/UglifyJS +// +// Will use a local minifier instead of the online default one. +// +// Script files are specified without .js ending. Prefixing them with +// their full (local) path is optional. So you may say lib/codemirror +// or mode/xml/xml to be more precise. In fact, even the .js suffix +// may be speficied, if wanted. + +"use strict"; + +var fs = require("fs"); + +function help(ok) { + console.log("usage: " + process.argv[1] + " [--local /path/to/uglifyjs] files..."); + process.exit(ok ? 0 : 1); +} + +var local = null, args = null, files = [], blob = ""; + +for (var i = 2; i < process.argv.length; ++i) { + var arg = process.argv[i]; + if (arg == "--local" && i + 1 < process.argv.length) { + var parts = process.argv[++i].split(/\s+/); + local = parts[0]; + args = parts.slice(1); + } else if (arg == "--help") { + help(true); + } else if (arg[0] != "-") { + files.push({name: arg, re: new RegExp("(?:\\/|^)" + arg + (/\.js$/.test(arg) ? "$" : "\\.js$"))}); + } else help(false); +} + +function walk(dir) { + fs.readdirSync(dir).forEach(function(fname) { + if (/^[_\.]/.test(fname)) return; + var file = dir + fname; + if (fs.statSync(file).isDirectory()) return walk(file + "/"); + if (files.some(function(spec, i) { + var match = spec.re.test(file); + if (match) files.splice(i, 1); + return match; + })) { + if (local) args.push(file); + else blob += fs.readFileSync(file, "utf8"); + } + }); +} + +walk("lib/"); +walk("mode/"); + +if (files.length) { + console.log("Some speficied files were not found: " + + files.map(function(a){return a.name;}).join(", ")); + process.exit(1); +} + +if (local) { + require("child_process").spawn(local, args, {stdio: ["ignore", process.stdout, process.stderr]}); +} else { + var data = new Buffer("js_code=" + require("querystring").escape(blob), "utf8"); + var req = require("http").request({ + host: "marijnhaverbeke.nl", + port: 80, + method: "POST", + path: "/uglifyjs", + headers: {"content-type": "application/x-www-form-urlencoded", + "content-length": data.length} + }); + req.on("response", function(resp) { + resp.on("data", function (chunk) { process.stdout.write(chunk); }); + }); + req.end(data); +} diff --git a/codemirror-2.36/demo/activeline.html b/codemirror-2.36/demo/activeline.html new file mode 100644 index 00000000..a42ce97b --- /dev/null +++ b/codemirror-2.36/demo/activeline.html @@ -0,0 +1,73 @@ + + + + + CodeMirror: Active Line Demo + + + + + + + + +

CodeMirror: Active Line Demo

+ +
+ + + +

Styling the current cursor line.

+ + + diff --git a/codemirror-2.36/demo/changemode.html b/codemirror-2.36/demo/changemode.html new file mode 100644 index 00000000..a3d42c04 --- /dev/null +++ b/codemirror-2.36/demo/changemode.html @@ -0,0 +1,51 @@ + + + + + CodeMirror: Mode-Changing Demo + + + + + + + + + +

CodeMirror: Mode-Changing demo

+ +
+ +

On changes to the content of the above editor, a (crude) script +tries to auto-detect the language used, and switches the editor to +either JavaScript or Scheme mode based on that.

+ + + + diff --git a/codemirror-2.36/demo/closetag.html b/codemirror-2.36/demo/closetag.html new file mode 100644 index 00000000..c405a3c3 --- /dev/null +++ b/codemirror-2.36/demo/closetag.html @@ -0,0 +1,66 @@ + + + + + CodeMirror: Close-Tag Demo + + + + + + + + + + + + +

Close-Tag Demo

+