gump 0.1.6
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.
- checksums.yaml +7 -0
- data/.gitignore +24 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +71 -0
- data/Rakefile +2 -0
- data/bin/gump +37 -0
- data/gump.gemspec +17 -0
- data/lib/gump.rb +50 -0
- data/lib/version.rb +3 -0
- data/server/assets/css/style.css +6949 -0
- data/server/assets/images/arrow.png +0 -0
- data/server/assets/images/logo.png +0 -0
- data/server/assets/js/bootstrap/dist/css/bootstrap-theme.css +347 -0
- data/server/assets/js/bootstrap/dist/css/bootstrap-theme.css.map +1 -0
- data/server/assets/js/bootstrap/dist/css/bootstrap-theme.min.css +7 -0
- data/server/assets/js/bootstrap/dist/css/bootstrap.css +5785 -0
- data/server/assets/js/bootstrap/dist/css/bootstrap.css.map +1 -0
- data/server/assets/js/bootstrap/dist/css/bootstrap.min.css +7 -0
- data/server/assets/js/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/server/assets/js/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +229 -0
- data/server/assets/js/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/server/assets/js/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/server/assets/js/bootstrap/dist/js/bootstrap.js +1951 -0
- data/server/assets/js/bootstrap/dist/js/bootstrap.min.js +6 -0
- data/server/assets/js/jquery.codemirror/.gitattributes +8 -0
- data/server/assets/js/jquery.codemirror/.gitignore +6 -0
- data/server/assets/js/jquery.codemirror/.travis.yml +3 -0
- data/server/assets/js/jquery.codemirror/AUTHORS +255 -0
- data/server/assets/js/jquery.codemirror/CONTRIBUTING.md +72 -0
- data/server/assets/js/jquery.codemirror/LICENSE +19 -0
- data/server/assets/js/jquery.codemirror/README.md +11 -0
- data/server/assets/js/jquery.codemirror/addon/comment/comment.js +145 -0
- data/server/assets/js/jquery.codemirror/addon/comment/continuecomment.js +54 -0
- data/server/assets/js/jquery.codemirror/addon/dialog/dialog.css +32 -0
- data/server/assets/js/jquery.codemirror/addon/dialog/dialog.js +121 -0
- data/server/assets/js/jquery.codemirror/addon/display/fullscreen.css +6 -0
- data/server/assets/js/jquery.codemirror/addon/display/fullscreen.js +31 -0
- data/server/assets/js/jquery.codemirror/addon/display/placeholder.js +48 -0
- data/server/assets/js/jquery.codemirror/addon/edit/closebrackets.js +82 -0
- data/server/assets/js/jquery.codemirror/addon/edit/closetag.js +89 -0
- data/server/assets/js/jquery.codemirror/addon/edit/continuelist.js +25 -0
- data/server/assets/js/jquery.codemirror/addon/edit/matchbrackets.js +87 -0
- data/server/assets/js/jquery.codemirror/addon/edit/matchtags.js +56 -0
- data/server/assets/js/jquery.codemirror/addon/edit/trailingspace.js +15 -0
- data/server/assets/js/jquery.codemirror/addon/fold/brace-fold.js +93 -0
- data/server/assets/js/jquery.codemirror/addon/fold/comment-fold.js +40 -0
- data/server/assets/js/jquery.codemirror/addon/fold/foldcode.js +75 -0
- data/server/assets/js/jquery.codemirror/addon/fold/foldgutter.css +21 -0
- data/server/assets/js/jquery.codemirror/addon/fold/foldgutter.js +124 -0
- data/server/assets/js/jquery.codemirror/addon/fold/indent-fold.js +30 -0
- data/server/assets/js/jquery.codemirror/addon/fold/xml-fold.js +167 -0
- data/server/assets/js/jquery.codemirror/addon/hint/anyword-hint.js +34 -0
- data/server/assets/js/jquery.codemirror/addon/hint/css-hint.js +50 -0
- data/server/assets/js/jquery.codemirror/addon/hint/html-hint.js +337 -0
- data/server/assets/js/jquery.codemirror/addon/hint/javascript-hint.js +131 -0
- data/server/assets/js/jquery.codemirror/addon/hint/pig-hint.js +121 -0
- data/server/assets/js/jquery.codemirror/addon/hint/python-hint.js +95 -0
- data/server/assets/js/jquery.codemirror/addon/hint/show-hint.css +38 -0
- data/server/assets/js/jquery.codemirror/addon/hint/show-hint.js +286 -0
- data/server/assets/js/jquery.codemirror/addon/hint/sql-hint.js +105 -0
- data/server/assets/js/jquery.codemirror/addon/hint/xml-hint.js +69 -0
- data/server/assets/js/jquery.codemirror/addon/lint/coffeescript-lint.js +27 -0
- data/server/assets/js/jquery.codemirror/addon/lint/css-lint.js +19 -0
- data/server/assets/js/jquery.codemirror/addon/lint/javascript-lint.js +126 -0
- data/server/assets/js/jquery.codemirror/addon/lint/json-lint.js +17 -0
- data/server/assets/js/jquery.codemirror/addon/lint/lint.css +73 -0
- data/server/assets/js/jquery.codemirror/addon/lint/lint.js +203 -0
- data/server/assets/js/jquery.codemirror/addon/merge/dep/diff_match_patch.js +50 -0
- data/server/assets/js/jquery.codemirror/addon/merge/merge.css +92 -0
- data/server/assets/js/jquery.codemirror/addon/merge/merge.js +474 -0
- data/server/assets/js/jquery.codemirror/addon/mode/loadmode.js +51 -0
- data/server/assets/js/jquery.codemirror/addon/mode/multiplex.js +101 -0
- data/server/assets/js/jquery.codemirror/addon/mode/multiplex_test.js +30 -0
- data/server/assets/js/jquery.codemirror/addon/mode/overlay.js +59 -0
- data/server/assets/js/jquery.codemirror/addon/runmode/colorize.js +29 -0
- data/server/assets/js/jquery.codemirror/addon/runmode/runmode-standalone.js +136 -0
- data/server/assets/js/jquery.codemirror/addon/runmode/runmode.js +56 -0
- data/server/assets/js/jquery.codemirror/addon/runmode/runmode.node.js +103 -0
- data/server/assets/js/jquery.codemirror/addon/scroll/scrollpastend.js +34 -0
- data/server/assets/js/jquery.codemirror/addon/search/match-highlighter.js +91 -0
- data/server/assets/js/jquery.codemirror/addon/search/search.js +133 -0
- data/server/assets/js/jquery.codemirror/addon/search/searchcursor.js +143 -0
- data/server/assets/js/jquery.codemirror/addon/selection/active-line.js +39 -0
- data/server/assets/js/jquery.codemirror/addon/selection/mark-selection.js +108 -0
- data/server/assets/js/jquery.codemirror/addon/tern/tern.css +85 -0
- data/server/assets/js/jquery.codemirror/addon/tern/tern.js +632 -0
- data/server/assets/js/jquery.codemirror/addon/tern/worker.js +41 -0
- data/server/assets/js/jquery.codemirror/addon/wrap/hardwrap.js +99 -0
- data/server/assets/js/jquery.codemirror/bin/authors.sh +6 -0
- data/server/assets/js/jquery.codemirror/bin/compress +92 -0
- data/server/assets/js/jquery.codemirror/bin/lint +16 -0
- data/server/assets/js/jquery.codemirror/bin/source-highlight +61 -0
- data/server/assets/js/jquery.codemirror/bower.json +15 -0
- data/server/assets/js/jquery.codemirror/demo/activeline.html +78 -0
- data/server/assets/js/jquery.codemirror/demo/anywordhint.html +79 -0
- data/server/assets/js/jquery.codemirror/demo/bidi.html +74 -0
- data/server/assets/js/jquery.codemirror/demo/btree.html +86 -0
- data/server/assets/js/jquery.codemirror/demo/buffers.html +109 -0
- data/server/assets/js/jquery.codemirror/demo/changemode.html +59 -0
- data/server/assets/js/jquery.codemirror/demo/closebrackets.html +63 -0
- data/server/assets/js/jquery.codemirror/demo/closetag.html +40 -0
- data/server/assets/js/jquery.codemirror/demo/complete.html +80 -0
- data/server/assets/js/jquery.codemirror/demo/emacs.html +75 -0
- data/server/assets/js/jquery.codemirror/demo/folding.html +75 -0
- data/server/assets/js/jquery.codemirror/demo/fullscreen.html +130 -0
- data/server/assets/js/jquery.codemirror/demo/hardwrap.html +69 -0
- data/server/assets/js/jquery.codemirror/demo/html5complete.html +54 -0
- data/server/assets/js/jquery.codemirror/demo/indentwrap.html +58 -0
- data/server/assets/js/jquery.codemirror/demo/lint.html +171 -0
- data/server/assets/js/jquery.codemirror/demo/loadmode.html +49 -0
- data/server/assets/js/jquery.codemirror/demo/marker.html +52 -0
- data/server/assets/js/jquery.codemirror/demo/markselection.html +45 -0
- data/server/assets/js/jquery.codemirror/demo/matchhighlighter.html +47 -0
- data/server/assets/js/jquery.codemirror/demo/matchtags.html +49 -0
- data/server/assets/js/jquery.codemirror/demo/merge.html +82 -0
- data/server/assets/js/jquery.codemirror/demo/multiplex.html +75 -0
- data/server/assets/js/jquery.codemirror/demo/mustache.html +68 -0
- data/server/assets/js/jquery.codemirror/demo/placeholder.html +45 -0
- data/server/assets/js/jquery.codemirror/demo/preview.html +88 -0
- data/server/assets/js/jquery.codemirror/demo/resize.html +58 -0
- data/server/assets/js/jquery.codemirror/demo/runmode.html +62 -0
- data/server/assets/js/jquery.codemirror/demo/search.html +94 -0
- data/server/assets/js/jquery.codemirror/demo/spanaffectswrapping_shim.html +85 -0
- data/server/assets/js/jquery.codemirror/demo/tern.html +129 -0
- data/server/assets/js/jquery.codemirror/demo/theme.html +121 -0
- data/server/assets/js/jquery.codemirror/demo/trailingspace.html +48 -0
- data/server/assets/js/jquery.codemirror/demo/variableheight.html +67 -0
- data/server/assets/js/jquery.codemirror/demo/vim.html +74 -0
- data/server/assets/js/jquery.codemirror/demo/visibletabs.html +62 -0
- data/server/assets/js/jquery.codemirror/demo/widget.html +85 -0
- data/server/assets/js/jquery.codemirror/demo/xmlcomplete.html +116 -0
- data/server/assets/js/jquery.codemirror/index.html +192 -0
- data/server/assets/js/jquery.codemirror/keymap/emacs.js +387 -0
- data/server/assets/js/jquery.codemirror/keymap/extra.js +43 -0
- data/server/assets/js/jquery.codemirror/keymap/vim.js +3703 -0
- data/server/assets/js/jquery.codemirror/lib/codemirror.css +263 -0
- data/server/assets/js/jquery.codemirror/lib/codemirror.js +5944 -0
- data/server/assets/js/jquery.codemirror/mode/apl/apl.js +160 -0
- data/server/assets/js/jquery.codemirror/mode/apl/index.html +72 -0
- data/server/assets/js/jquery.codemirror/mode/asterisk/asterisk.js +183 -0
- data/server/assets/js/jquery.codemirror/mode/asterisk/index.html +154 -0
- data/server/assets/js/jquery.codemirror/mode/clike/clike.js +362 -0
- data/server/assets/js/jquery.codemirror/mode/clike/index.html +195 -0
- data/server/assets/js/jquery.codemirror/mode/clike/scala.html +767 -0
- data/server/assets/js/jquery.codemirror/mode/clojure/clojure.js +224 -0
- data/server/assets/js/jquery.codemirror/mode/clojure/index.html +88 -0
- data/server/assets/js/jquery.codemirror/mode/cobol/cobol.js +240 -0
- data/server/assets/js/jquery.codemirror/mode/cobol/index.html +210 -0
- data/server/assets/js/jquery.codemirror/mode/coffeescript/coffeescript.js +354 -0
- data/server/assets/js/jquery.codemirror/mode/coffeescript/index.html +740 -0
- data/server/assets/js/jquery.codemirror/mode/commonlisp/commonlisp.js +105 -0
- data/server/assets/js/jquery.codemirror/mode/commonlisp/index.html +177 -0
- data/server/assets/js/jquery.codemirror/mode/css/css.js +639 -0
- data/server/assets/js/jquery.codemirror/mode/css/index.html +70 -0
- data/server/assets/js/jquery.codemirror/mode/css/scss.html +157 -0
- data/server/assets/js/jquery.codemirror/mode/css/scss_test.js +93 -0
- data/server/assets/js/jquery.codemirror/mode/css/test.js +142 -0
- data/server/assets/js/jquery.codemirror/mode/d/d.js +205 -0
- data/server/assets/js/jquery.codemirror/mode/d/index.html +273 -0
- data/server/assets/js/jquery.codemirror/mode/diff/diff.js +32 -0
- data/server/assets/js/jquery.codemirror/mode/diff/index.html +117 -0
- data/server/assets/js/jquery.codemirror/mode/dtd/dtd.js +127 -0
- data/server/assets/js/jquery.codemirror/mode/dtd/index.html +89 -0
- data/server/assets/js/jquery.codemirror/mode/ecl/ecl.js +192 -0
- data/server/assets/js/jquery.codemirror/mode/ecl/index.html +52 -0
- data/server/assets/js/jquery.codemirror/mode/eiffel/eiffel.js +147 -0
- data/server/assets/js/jquery.codemirror/mode/eiffel/index.html +430 -0
- data/server/assets/js/jquery.codemirror/mode/erlang/erlang.js +484 -0
- data/server/assets/js/jquery.codemirror/mode/erlang/index.html +75 -0
- data/server/assets/js/jquery.codemirror/mode/fortran/fortran.js +173 -0
- data/server/assets/js/jquery.codemirror/mode/fortran/index.html +81 -0
- data/server/assets/js/jquery.codemirror/mode/gas/gas.js +330 -0
- data/server/assets/js/jquery.codemirror/mode/gas/index.html +68 -0
- data/server/assets/js/jquery.codemirror/mode/gfm/gfm.js +97 -0
- data/server/assets/js/jquery.codemirror/mode/gfm/index.html +82 -0
- data/server/assets/js/jquery.codemirror/mode/gfm/test.js +112 -0
- data/server/assets/js/jquery.codemirror/mode/gherkin/gherkin.js +168 -0
- data/server/assets/js/jquery.codemirror/mode/gherkin/index.html +48 -0
- data/server/assets/js/jquery.codemirror/mode/go/go.js +168 -0
- data/server/assets/js/jquery.codemirror/mode/go/index.html +85 -0
- data/server/assets/js/jquery.codemirror/mode/groovy/groovy.js +211 -0
- data/server/assets/js/jquery.codemirror/mode/groovy/index.html +84 -0
- data/server/assets/js/jquery.codemirror/mode/haml/haml.js +153 -0
- data/server/assets/js/jquery.codemirror/mode/haml/index.html +79 -0
- data/server/assets/js/jquery.codemirror/mode/haml/test.js +94 -0
- data/server/assets/js/jquery.codemirror/mode/haskell/haskell.js +250 -0
- data/server/assets/js/jquery.codemirror/mode/haskell/index.html +73 -0
- data/server/assets/js/jquery.codemirror/mode/haxe/haxe.js +429 -0
- data/server/assets/js/jquery.codemirror/mode/haxe/index.html +103 -0
- data/server/assets/js/jquery.codemirror/mode/htmlembedded/htmlembedded.js +73 -0
- data/server/assets/js/jquery.codemirror/mode/htmlembedded/index.html +60 -0
- data/server/assets/js/jquery.codemirror/mode/htmlmixed/htmlmixed.js +104 -0
- data/server/assets/js/jquery.codemirror/mode/htmlmixed/index.html +85 -0
- data/server/assets/js/jquery.codemirror/mode/http/http.js +98 -0
- data/server/assets/js/jquery.codemirror/mode/http/index.html +45 -0
- data/server/assets/js/jquery.codemirror/mode/index.html +114 -0
- data/server/assets/js/jquery.codemirror/mode/jade/index.html +66 -0
- data/server/assets/js/jquery.codemirror/mode/jade/jade.js +90 -0
- data/server/assets/js/jquery.codemirror/mode/javascript/index.html +107 -0
- data/server/assets/js/jquery.codemirror/mode/javascript/javascript.js +617 -0
- data/server/assets/js/jquery.codemirror/mode/javascript/test.js +72 -0
- data/server/assets/js/jquery.codemirror/mode/javascript/typescript.html +61 -0
- data/server/assets/js/jquery.codemirror/mode/jinja2/index.html +50 -0
- data/server/assets/js/jquery.codemirror/mode/jinja2/jinja2.js +42 -0
- data/server/assets/js/jquery.codemirror/mode/julia/index.html +187 -0
- data/server/assets/js/jquery.codemirror/mode/julia/julia.js +262 -0
- data/server/assets/js/jquery.codemirror/mode/less/index.html +753 -0
- data/server/assets/js/jquery.codemirror/mode/less/less.js +346 -0
- data/server/assets/js/jquery.codemirror/mode/livescript/index.html +459 -0
- data/server/assets/js/jquery.codemirror/mode/livescript/livescript.js +267 -0
- data/server/assets/js/jquery.codemirror/mode/livescript/livescript.ls +266 -0
- data/server/assets/js/jquery.codemirror/mode/lua/index.html +86 -0
- data/server/assets/js/jquery.codemirror/mode/lua/lua.js +144 -0
- data/server/assets/js/jquery.codemirror/mode/markdown/index.html +359 -0
- data/server/assets/js/jquery.codemirror/mode/markdown/markdown.js +560 -0
- data/server/assets/js/jquery.codemirror/mode/markdown/test.js +664 -0
- data/server/assets/js/jquery.codemirror/mode/meta.js +91 -0
- data/server/assets/js/jquery.codemirror/mode/mirc/index.html +161 -0
- data/server/assets/js/jquery.codemirror/mode/mirc/mirc.js +177 -0
- data/server/assets/js/jquery.codemirror/mode/nginx/index.html +181 -0
- data/server/assets/js/jquery.codemirror/mode/nginx/nginx.js +163 -0
- data/server/assets/js/jquery.codemirror/mode/ntriples/index.html +45 -0
- data/server/assets/js/jquery.codemirror/mode/ntriples/ntriples.js +170 -0
- data/server/assets/js/jquery.codemirror/mode/ocaml/index.html +146 -0
- data/server/assets/js/jquery.codemirror/mode/ocaml/ocaml.js +116 -0
- data/server/assets/js/jquery.codemirror/mode/octave/index.html +95 -0
- data/server/assets/js/jquery.codemirror/mode/octave/octave.js +118 -0
- data/server/assets/js/jquery.codemirror/mode/pascal/index.html +61 -0
- data/server/assets/js/jquery.codemirror/mode/pascal/pascal.js +94 -0
- data/server/assets/js/jquery.codemirror/mode/pegjs/index.html +66 -0
- data/server/assets/js/jquery.codemirror/mode/pegjs/pegjs.js +103 -0
- data/server/assets/js/jquery.codemirror/mode/perl/index.html +75 -0
- data/server/assets/js/jquery.codemirror/mode/perl/perl.js +816 -0
- data/server/assets/js/jquery.codemirror/mode/php/index.html +62 -0
- data/server/assets/js/jquery.codemirror/mode/php/php.js +132 -0
- data/server/assets/js/jquery.codemirror/mode/pig/index.html +55 -0
- data/server/assets/js/jquery.codemirror/mode/pig/pig.js +171 -0
- data/server/assets/js/jquery.codemirror/mode/properties/index.html +53 -0
- data/server/assets/js/jquery.codemirror/mode/properties/properties.js +63 -0
- data/server/assets/js/jquery.codemirror/mode/python/index.html +187 -0
- data/server/assets/js/jquery.codemirror/mode/python/python.js +368 -0
- data/server/assets/js/jquery.codemirror/mode/q/index.html +144 -0
- data/server/assets/js/jquery.codemirror/mode/q/q.js +124 -0
- data/server/assets/js/jquery.codemirror/mode/r/index.html +86 -0
- data/server/assets/js/jquery.codemirror/mode/r/r.js +141 -0
- data/server/assets/js/jquery.codemirror/mode/rpm/changes/changes.js +19 -0
- data/server/assets/js/jquery.codemirror/mode/rpm/changes/index.html +67 -0
- data/server/assets/js/jquery.codemirror/mode/rpm/spec/index.html +114 -0
- data/server/assets/js/jquery.codemirror/mode/rpm/spec/spec.css +5 -0
- data/server/assets/js/jquery.codemirror/mode/rpm/spec/spec.js +66 -0
- data/server/assets/js/jquery.codemirror/mode/rst/index.html +534 -0
- data/server/assets/js/jquery.codemirror/mode/rst/rst.js +560 -0
- data/server/assets/js/jquery.codemirror/mode/ruby/index.html +185 -0
- data/server/assets/js/jquery.codemirror/mode/ruby/ruby.js +247 -0
- data/server/assets/js/jquery.codemirror/mode/rust/index.html +61 -0
- data/server/assets/js/jquery.codemirror/mode/rust/rust.js +436 -0
- data/server/assets/js/jquery.codemirror/mode/sass/index.html +66 -0
- data/server/assets/js/jquery.codemirror/mode/sass/sass.js +330 -0
- data/server/assets/js/jquery.codemirror/mode/scheme/index.html +77 -0
- data/server/assets/js/jquery.codemirror/mode/scheme/scheme.js +232 -0
- data/server/assets/js/jquery.codemirror/mode/shell/index.html +66 -0
- data/server/assets/js/jquery.codemirror/mode/shell/shell.js +118 -0
- data/server/assets/js/jquery.codemirror/mode/sieve/index.html +93 -0
- data/server/assets/js/jquery.codemirror/mode/sieve/sieve.js +183 -0
- data/server/assets/js/jquery.codemirror/mode/smalltalk/index.html +68 -0
- data/server/assets/js/jquery.codemirror/mode/smalltalk/smalltalk.js +151 -0
- data/server/assets/js/jquery.codemirror/mode/smarty/index.html +136 -0
- data/server/assets/js/jquery.codemirror/mode/smarty/smarty.js +205 -0
- data/server/assets/js/jquery.codemirror/mode/smartymixed/index.html +114 -0
- data/server/assets/js/jquery.codemirror/mode/smartymixed/smartymixed.js +175 -0
- data/server/assets/js/jquery.codemirror/mode/sparql/index.html +54 -0
- data/server/assets/js/jquery.codemirror/mode/sparql/sparql.js +145 -0
- data/server/assets/js/jquery.codemirror/mode/sql/index.html +75 -0
- data/server/assets/js/jquery.codemirror/mode/sql/sql.js +365 -0
- data/server/assets/js/jquery.codemirror/mode/stex/index.html +110 -0
- data/server/assets/js/jquery.codemirror/mode/stex/stex.js +246 -0
- data/server/assets/js/jquery.codemirror/mode/stex/test.js +120 -0
- data/server/assets/js/jquery.codemirror/mode/tcl/index.html +143 -0
- data/server/assets/js/jquery.codemirror/mode/tcl/tcl.js +131 -0
- data/server/assets/js/jquery.codemirror/mode/tiddlywiki/index.html +155 -0
- data/server/assets/js/jquery.codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
- data/server/assets/js/jquery.codemirror/mode/tiddlywiki/tiddlywiki.js +353 -0
- data/server/assets/js/jquery.codemirror/mode/tiki/index.html +95 -0
- data/server/assets/js/jquery.codemirror/mode/tiki/tiki.css +26 -0
- data/server/assets/js/jquery.codemirror/mode/tiki/tiki.js +308 -0
- data/server/assets/js/jquery.codemirror/mode/toml/index.html +73 -0
- data/server/assets/js/jquery.codemirror/mode/toml/toml.js +71 -0
- data/server/assets/js/jquery.codemirror/mode/turtle/index.html +51 -0
- data/server/assets/js/jquery.codemirror/mode/turtle/turtle.js +145 -0
- data/server/assets/js/jquery.codemirror/mode/vb/index.html +103 -0
- data/server/assets/js/jquery.codemirror/mode/vb/vb.js +259 -0
- data/server/assets/js/jquery.codemirror/mode/vbscript/index.html +55 -0
- data/server/assets/js/jquery.codemirror/mode/vbscript/vbscript.js +334 -0
- data/server/assets/js/jquery.codemirror/mode/velocity/index.html +119 -0
- data/server/assets/js/jquery.codemirror/mode/velocity/velocity.js +186 -0
- data/server/assets/js/jquery.codemirror/mode/verilog/index.html +132 -0
- data/server/assets/js/jquery.codemirror/mode/verilog/verilog.js +182 -0
- data/server/assets/js/jquery.codemirror/mode/xml/index.html +57 -0
- data/server/assets/js/jquery.codemirror/mode/xml/xml.js +345 -0
- data/server/assets/js/jquery.codemirror/mode/xquery/index.html +210 -0
- data/server/assets/js/jquery.codemirror/mode/xquery/test.js +64 -0
- data/server/assets/js/jquery.codemirror/mode/xquery/xquery.js +432 -0
- data/server/assets/js/jquery.codemirror/mode/yaml/index.html +80 -0
- data/server/assets/js/jquery.codemirror/mode/yaml/yaml.js +97 -0
- data/server/assets/js/jquery.codemirror/mode/z80/index.html +52 -0
- data/server/assets/js/jquery.codemirror/mode/z80/z80.js +85 -0
- data/server/assets/js/jquery.codemirror/package.json +19 -0
- data/server/assets/js/jquery.codemirror/test/comment_test.js +51 -0
- data/server/assets/js/jquery.codemirror/test/doc_test.js +329 -0
- data/server/assets/js/jquery.codemirror/test/driver.js +139 -0
- data/server/assets/js/jquery.codemirror/test/emacs_test.js +135 -0
- data/server/assets/js/jquery.codemirror/test/index.html +209 -0
- data/server/assets/js/jquery.codemirror/test/lint/acorn.js +1593 -0
- data/server/assets/js/jquery.codemirror/test/lint/lint.js +139 -0
- data/server/assets/js/jquery.codemirror/test/lint/walk.js +216 -0
- data/server/assets/js/jquery.codemirror/test/mode_test.css +10 -0
- data/server/assets/js/jquery.codemirror/test/mode_test.js +200 -0
- data/server/assets/js/jquery.codemirror/test/phantom_driver.js +31 -0
- data/server/assets/js/jquery.codemirror/test/run.js +34 -0
- data/server/assets/js/jquery.codemirror/test/test.js +1562 -0
- data/server/assets/js/jquery.codemirror/test/vim_test.js +2391 -0
- data/server/assets/js/jquery.codemirror/theme/3024-day.css +34 -0
- data/server/assets/js/jquery.codemirror/theme/3024-night.css +34 -0
- data/server/assets/js/jquery.codemirror/theme/ambiance-mobile.css +5 -0
- data/server/assets/js/jquery.codemirror/theme/ambiance.css +70 -0
- data/server/assets/js/jquery.codemirror/theme/base16-dark.css +34 -0
- data/server/assets/js/jquery.codemirror/theme/base16-light.css +34 -0
- data/server/assets/js/jquery.codemirror/theme/blackboard.css +28 -0
- data/server/assets/js/jquery.codemirror/theme/cobalt.css +21 -0
- data/server/assets/js/jquery.codemirror/theme/eclipse.css +23 -0
- data/server/assets/js/jquery.codemirror/theme/elegant.css +13 -0
- data/server/assets/js/jquery.codemirror/theme/erlang-dark.css +30 -0
- data/server/assets/js/jquery.codemirror/theme/lesser-dark.css +47 -0
- data/server/assets/js/jquery.codemirror/theme/mbo.css +37 -0
- data/server/assets/js/jquery.codemirror/theme/midnight.css +43 -0
- data/server/assets/js/jquery.codemirror/theme/monokai.css +29 -0
- data/server/assets/js/jquery.codemirror/theme/neat.css +12 -0
- data/server/assets/js/jquery.codemirror/theme/night.css +24 -0
- data/server/assets/js/jquery.codemirror/theme/paraiso-dark.css +34 -0
- data/server/assets/js/jquery.codemirror/theme/paraiso-light.css +34 -0
- data/server/assets/js/jquery.codemirror/theme/rubyblue.css +23 -0
- data/server/assets/js/jquery.codemirror/theme/solarized.css +180 -0
- data/server/assets/js/jquery.codemirror/theme/the-matrix.css +26 -0
- data/server/assets/js/jquery.codemirror/theme/tomorrow-night-eighties.css +34 -0
- data/server/assets/js/jquery.codemirror/theme/twilight.css +28 -0
- data/server/assets/js/jquery.codemirror/theme/vibrant-ink.css +30 -0
- data/server/assets/js/jquery.codemirror/theme/xq-dark.css +49 -0
- data/server/assets/js/jquery.codemirror/theme/xq-light.css +43 -0
- data/server/assets/js/jquery.js +4 -0
- data/server/assets/js/jquery.nanoscroller/jquery.nanoscroller.js +2 -0
- data/server/assets/js/jquery.nanoscroller/nanoscroller.css +49 -0
- data/server/assets/js/tester.js +161 -0
- data/server/config.ru +2 -0
- data/server/server.rb +41 -0
- data/server/views/_content.erb +65 -0
- data/server/views/_sidebar.erb +32 -0
- data/server/views/index.erb +40 -0
- metadata +402 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
|
|
3
|
+
<title>CodeMirror: Emacs bindings demo</title>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<link rel=stylesheet href="../doc/docs.css">
|
|
6
|
+
|
|
7
|
+
<link rel="stylesheet" href="../lib/codemirror.css">
|
|
8
|
+
<link rel="stylesheet" href="../addon/dialog/dialog.css">
|
|
9
|
+
<script src="../lib/codemirror.js"></script>
|
|
10
|
+
<script src="../mode/clike/clike.js"></script>
|
|
11
|
+
<script src="../keymap/emacs.js"></script>
|
|
12
|
+
<script src="../addon/edit/matchbrackets.js"></script>
|
|
13
|
+
<script src="../addon/comment/comment.js"></script>
|
|
14
|
+
<script src="../addon/dialog/dialog.js"></script>
|
|
15
|
+
<script src="../addon/search/searchcursor.js"></script>
|
|
16
|
+
<script src="../addon/search/search.js"></script>
|
|
17
|
+
<style type="text/css">
|
|
18
|
+
.CodeMirror {border-top: 1px solid #eee; border-bottom: 1px solid #eee;}
|
|
19
|
+
</style>
|
|
20
|
+
<div id=nav>
|
|
21
|
+
<a href="http://codemirror.net"><img id=logo src="../doc/logo.png"></a>
|
|
22
|
+
|
|
23
|
+
<ul>
|
|
24
|
+
<li><a href="../index.html">Home</a>
|
|
25
|
+
<li><a href="../doc/manual.html">Manual</a>
|
|
26
|
+
<li><a href="https://github.com/marijnh/codemirror">Code</a>
|
|
27
|
+
</ul>
|
|
28
|
+
<ul>
|
|
29
|
+
<li><a class=active href="#">Emacs bindings</a>
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<article>
|
|
34
|
+
<h2>Emacs bindings demo</h2>
|
|
35
|
+
<form><textarea id="code" name="code">
|
|
36
|
+
#include "syscalls.h"
|
|
37
|
+
/* getchar: simple buffered version */
|
|
38
|
+
int getchar(void)
|
|
39
|
+
{
|
|
40
|
+
static char buf[BUFSIZ];
|
|
41
|
+
static char *bufp = buf;
|
|
42
|
+
static int n = 0;
|
|
43
|
+
if (n == 0) { /* buffer is empty */
|
|
44
|
+
n = read(0, buf, sizeof buf);
|
|
45
|
+
bufp = buf;
|
|
46
|
+
}
|
|
47
|
+
return (--n >= 0) ? (unsigned char) *bufp++ : EOF;
|
|
48
|
+
}
|
|
49
|
+
</textarea></form>
|
|
50
|
+
|
|
51
|
+
<p>The emacs keybindings are enabled by
|
|
52
|
+
including <a href="../keymap/emacs.js">keymap/emacs.js</a> and setting
|
|
53
|
+
the <code>keyMap</code> option to <code>"emacs"</code>. Because
|
|
54
|
+
CodeMirror's internal API is quite different from Emacs, they are only
|
|
55
|
+
a loose approximation of actual emacs bindings, though.</p>
|
|
56
|
+
|
|
57
|
+
<p>Also note that a lot of browsers disallow certain keys from being
|
|
58
|
+
captured. For example, Chrome blocks both Ctrl-W and Ctrl-N, with the
|
|
59
|
+
result that idiomatic use of Emacs keys will constantly close your tab
|
|
60
|
+
or open a new window.</p>
|
|
61
|
+
|
|
62
|
+
<script>
|
|
63
|
+
CodeMirror.commands.save = function() {
|
|
64
|
+
var elt = editor.getWrapperElement();
|
|
65
|
+
elt.style.background = "#def";
|
|
66
|
+
setTimeout(function() { elt.style.background = ""; }, 300);
|
|
67
|
+
};
|
|
68
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
|
69
|
+
lineNumbers: true,
|
|
70
|
+
mode: "text/x-csrc",
|
|
71
|
+
keyMap: "emacs"
|
|
72
|
+
});
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
</article>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
|
|
3
|
+
<title>CodeMirror: Code Folding Demo</title>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<link rel=stylesheet href="../doc/docs.css">
|
|
6
|
+
|
|
7
|
+
<link rel="stylesheet" href="../lib/codemirror.css">
|
|
8
|
+
<link rel="stylesheet" href="../addon/fold/foldgutter.css" />
|
|
9
|
+
<script src="../lib/codemirror.js"></script>
|
|
10
|
+
<script src="../addon/fold/foldcode.js"></script>
|
|
11
|
+
<script src="../addon/fold/foldgutter.js"></script>
|
|
12
|
+
<script src="../addon/fold/brace-fold.js"></script>
|
|
13
|
+
<script src="../addon/fold/xml-fold.js"></script>
|
|
14
|
+
<script src="../addon/fold/comment-fold.js"></script>
|
|
15
|
+
<script src="../mode/javascript/javascript.js"></script>
|
|
16
|
+
<script src="../mode/xml/xml.js"></script>
|
|
17
|
+
<style type="text/css">
|
|
18
|
+
.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
|
|
19
|
+
</style>
|
|
20
|
+
<div id=nav>
|
|
21
|
+
<a href="http://codemirror.net"><img id=logo src="../doc/logo.png"></a>
|
|
22
|
+
|
|
23
|
+
<ul>
|
|
24
|
+
<li><a href="../index.html">Home</a>
|
|
25
|
+
<li><a href="../doc/manual.html">Manual</a>
|
|
26
|
+
<li><a href="https://github.com/marijnh/codemirror">Code</a>
|
|
27
|
+
</ul>
|
|
28
|
+
<ul>
|
|
29
|
+
<li><a class=active href="#">Code Folding</a>
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<article>
|
|
34
|
+
<h2>Code Folding Demo</h2>
|
|
35
|
+
<form>
|
|
36
|
+
<div style="max-width: 50em; margin-bottom: 1em">JavaScript:<br><textarea id="code" name="code"></textarea></div>
|
|
37
|
+
<div style="max-width: 50em">HTML:<br><textarea id="code-html" name="code-html"></textarea></div>
|
|
38
|
+
</form>
|
|
39
|
+
<script id="script">
|
|
40
|
+
/*
|
|
41
|
+
* Demonstration of code folding
|
|
42
|
+
*/
|
|
43
|
+
window.onload = function() {
|
|
44
|
+
var te = document.getElementById("code");
|
|
45
|
+
var sc = document.getElementById("script");
|
|
46
|
+
te.value = (sc.textContent || sc.innerText || sc.innerHTML).replace(/^\s*/, "");
|
|
47
|
+
sc.innerHTML = "";
|
|
48
|
+
var te_html = document.getElementById("code-html");
|
|
49
|
+
te_html.value = "<html>\n " + document.documentElement.innerHTML + "\n</html>";
|
|
50
|
+
|
|
51
|
+
window.editor = CodeMirror.fromTextArea(te, {
|
|
52
|
+
mode: "javascript",
|
|
53
|
+
lineNumbers: true,
|
|
54
|
+
lineWrapping: true,
|
|
55
|
+
extraKeys: {"Ctrl-Q": function(cm){ cm.foldCode(cm.getCursor()); }},
|
|
56
|
+
foldGutter: {
|
|
57
|
+
rangeFinder: new CodeMirror.fold.combine(CodeMirror.fold.brace, CodeMirror.fold.comment)
|
|
58
|
+
},
|
|
59
|
+
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
|
|
60
|
+
});
|
|
61
|
+
editor.foldCode(CodeMirror.Pos(8, 0));
|
|
62
|
+
|
|
63
|
+
window.editor_html = CodeMirror.fromTextArea(te_html, {
|
|
64
|
+
mode: "text/html",
|
|
65
|
+
lineNumbers: true,
|
|
66
|
+
lineWrapping: true,
|
|
67
|
+
extraKeys: {"Ctrl-Q": function(cm){ cm.foldCode(cm.getCursor()); }},
|
|
68
|
+
foldGutter: true,
|
|
69
|
+
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
|
|
70
|
+
});
|
|
71
|
+
editor_html.foldCode(CodeMirror.Pos(13, 0));
|
|
72
|
+
editor_html.foldCode(CodeMirror.Pos(1, 0));
|
|
73
|
+
};
|
|
74
|
+
</script>
|
|
75
|
+
</article>
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
|
|
3
|
+
<title>CodeMirror: Full Screen Editing</title>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<link rel=stylesheet href="../doc/docs.css">
|
|
6
|
+
|
|
7
|
+
<link rel="stylesheet" href="../lib/codemirror.css">
|
|
8
|
+
<link rel="stylesheet" href="../addon/display/fullscreen.css">
|
|
9
|
+
<link rel="stylesheet" href="../theme/night.css">
|
|
10
|
+
<script src="../lib/codemirror.js"></script>
|
|
11
|
+
<script src="../mode/xml/xml.js"></script>
|
|
12
|
+
<script src="../addon/display/fullscreen.js"></script>
|
|
13
|
+
|
|
14
|
+
<div id=nav>
|
|
15
|
+
<a href="http://codemirror.net"><img id=logo src="../doc/logo.png"></a>
|
|
16
|
+
|
|
17
|
+
<ul>
|
|
18
|
+
<li><a href="../index.html">Home</a>
|
|
19
|
+
<li><a href="../doc/manual.html">Manual</a>
|
|
20
|
+
<li><a href="https://github.com/marijnh/codemirror">Code</a>
|
|
21
|
+
</ul>
|
|
22
|
+
<ul>
|
|
23
|
+
<li><a class=active href="#">Full Screen Editing</a>
|
|
24
|
+
</ul>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<article>
|
|
28
|
+
<h2>Full Screen Editing</h2>
|
|
29
|
+
<form><textarea id="code" name="code" rows="5">
|
|
30
|
+
<dt id="option_indentWithTabs"><code>indentWithTabs (boolean)</code></dt>
|
|
31
|
+
<dd>Whether, when indenting, the first N*8 spaces should be
|
|
32
|
+
replaced by N tabs. Default is false.</dd>
|
|
33
|
+
|
|
34
|
+
<dt id="option_tabMode"><code>tabMode (string)</code></dt>
|
|
35
|
+
<dd>Determines what happens when the user presses the tab key.
|
|
36
|
+
Must be one of the following:
|
|
37
|
+
<dl>
|
|
38
|
+
<dt><code>"classic" (the default)</code></dt>
|
|
39
|
+
<dd>When nothing is selected, insert a tab. Otherwise,
|
|
40
|
+
behave like the <code>"shift"</code> mode. (When shift is
|
|
41
|
+
held, this behaves like the <code>"indent"</code> mode.)</dd>
|
|
42
|
+
<dt><code>"shift"</code></dt>
|
|
43
|
+
<dd>Indent all selected lines by
|
|
44
|
+
one <a href="#option_indentUnit"><code>indentUnit</code></a>.
|
|
45
|
+
If shift was held while pressing tab, un-indent all selected
|
|
46
|
+
lines one unit.</dd>
|
|
47
|
+
<dt><code>"indent"</code></dt>
|
|
48
|
+
<dd>Indent the line the 'correctly', based on its syntactic
|
|
49
|
+
context. Only works if the
|
|
50
|
+
mode <a href="#indent">supports</a> it.</dd>
|
|
51
|
+
<dt><code>"default"</code></dt>
|
|
52
|
+
<dd>Do not capture tab presses, let the browser apply its
|
|
53
|
+
default behaviour (which usually means it skips to the next
|
|
54
|
+
control).</dd>
|
|
55
|
+
</dl></dd>
|
|
56
|
+
|
|
57
|
+
<dt id="option_enterMode"><code>enterMode (string)</code></dt>
|
|
58
|
+
<dd>Determines whether and how new lines are indented when the
|
|
59
|
+
enter key is pressed. The following modes are supported:
|
|
60
|
+
<dl>
|
|
61
|
+
<dt><code>"indent" (the default)</code></dt>
|
|
62
|
+
<dd>Use the mode's indentation rules to give the new line
|
|
63
|
+
the correct indentation.</dd>
|
|
64
|
+
<dt><code>"keep"</code></dt>
|
|
65
|
+
<dd>Indent the line the same as the previous line.</dd>
|
|
66
|
+
<dt><code>"flat"</code></dt>
|
|
67
|
+
<dd>Do not indent the new line.</dd>
|
|
68
|
+
</dl></dd>
|
|
69
|
+
|
|
70
|
+
<dt id="option_enterMode"><code>enterMode (string)</code></dt>
|
|
71
|
+
<dd>Determines whether and how new lines are indented when the
|
|
72
|
+
enter key is pressed. The following modes are supported:
|
|
73
|
+
<dl>
|
|
74
|
+
<dt><code>"indent" (the default)</code></dt>
|
|
75
|
+
<dd>Use the mode's indentation rules to give the new line
|
|
76
|
+
the correct indentation.</dd>
|
|
77
|
+
<dt><code>"keep"</code></dt>
|
|
78
|
+
<dd>Indent the line the same as the previous line.</dd>
|
|
79
|
+
<dt><code>"flat"</code></dt>
|
|
80
|
+
<dd>Do not indent the new line.</dd>
|
|
81
|
+
</dl></dd>
|
|
82
|
+
|
|
83
|
+
<dt id="option_enterMode"><code>enterMode (string)</code></dt>
|
|
84
|
+
<dd>Determines whether and how new lines are indented when the
|
|
85
|
+
enter key is pressed. The following modes are supported:
|
|
86
|
+
<dl>
|
|
87
|
+
<dt><code>"indent" (the default)</code></dt>
|
|
88
|
+
<dd>Use the mode's indentation rules to give the new line
|
|
89
|
+
the correct indentation.</dd>
|
|
90
|
+
<dt><code>"keep"</code></dt>
|
|
91
|
+
<dd>Indent the line the same as the previous line.</dd>
|
|
92
|
+
<dt><code>"flat"</code></dt>
|
|
93
|
+
<dd>Do not indent the new line.</dd>
|
|
94
|
+
</dl></dd>
|
|
95
|
+
|
|
96
|
+
<dt id="option_enterMode"><code>enterMode (string)</code></dt>
|
|
97
|
+
<dd>Determines whether and how new lines are indented when the
|
|
98
|
+
enter key is pressed. The following modes are supported:
|
|
99
|
+
<dl>
|
|
100
|
+
<dt><code>"indent" (the default)</code></dt>
|
|
101
|
+
<dd>Use the mode's indentation rules to give the new line
|
|
102
|
+
the correct indentation.</dd>
|
|
103
|
+
<dt><code>"keep"</code></dt>
|
|
104
|
+
<dd>Indent the line the same as the previous line.</dd>
|
|
105
|
+
<dt><code>"flat"</code></dt>
|
|
106
|
+
<dd>Do not indent the new line.</dd>
|
|
107
|
+
</dl></dd>
|
|
108
|
+
|
|
109
|
+
</textarea></form>
|
|
110
|
+
<script>
|
|
111
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
|
112
|
+
lineNumbers: true,
|
|
113
|
+
theme: "night",
|
|
114
|
+
extraKeys: {
|
|
115
|
+
"F11": function(cm) {
|
|
116
|
+
cm.setOption("fullScreen", !cm.getOption("fullScreen"));
|
|
117
|
+
},
|
|
118
|
+
"Esc": function(cm) {
|
|
119
|
+
if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
</script>
|
|
124
|
+
|
|
125
|
+
<p>Demonstration of
|
|
126
|
+
the <a href="../doc/manual.html#addon_fullscreen">fullscreen</a>
|
|
127
|
+
addon. Press <strong>F11</strong> when cursor is in the editor to
|
|
128
|
+
toggle full screen editing. <strong>Esc</strong> can also be used
|
|
129
|
+
to <i>exit</i> full screen editing.</p>
|
|
130
|
+
</article>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
|
|
3
|
+
<title>CodeMirror: Hard-wrapping Demo</title>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<link rel=stylesheet href="../doc/docs.css">
|
|
6
|
+
|
|
7
|
+
<link rel="stylesheet" href="../lib/codemirror.css">
|
|
8
|
+
<script src="../lib/codemirror.js"></script>
|
|
9
|
+
<script src="../mode/markdown/markdown.js"></script>
|
|
10
|
+
<script src="../addon/wrap/hardwrap.js"></script>
|
|
11
|
+
<style type="text/css">
|
|
12
|
+
.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
|
|
13
|
+
</style>
|
|
14
|
+
<div id=nav>
|
|
15
|
+
<a href="http://codemirror.net"><img id=logo src="../doc/logo.png"></a>
|
|
16
|
+
|
|
17
|
+
<ul>
|
|
18
|
+
<li><a href="../index.html">Home</a>
|
|
19
|
+
<li><a href="../doc/manual.html">Manual</a>
|
|
20
|
+
<li><a href="https://github.com/marijnh/codemirror">Code</a>
|
|
21
|
+
</ul>
|
|
22
|
+
<ul>
|
|
23
|
+
<li><a class=active href="#">Hard-wrapping</a>
|
|
24
|
+
</ul>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<article>
|
|
28
|
+
<h2>Hard-wrapping Demo</h2>
|
|
29
|
+
<form><textarea id="code" name="code">Lorem ipsum dolor sit amet, vim augue dictas constituto ex,
|
|
30
|
+
sit falli simul viderer te. Graeco scaevola maluisset sit
|
|
31
|
+
ut, in idque viris praesent sea. Ea sea eirmod indoctum
|
|
32
|
+
repudiare. Vel noluisse suscipit pericula ut. In ius nulla
|
|
33
|
+
alienum molestie. Mei essent discere democritum id.
|
|
34
|
+
|
|
35
|
+
Equidem ponderum expetendis ius in, mea an erroribus
|
|
36
|
+
constituto, congue timeam perfecto ad est. Ius ut primis
|
|
37
|
+
timeam, per in ullum mediocrem. An case vero labitur pri,
|
|
38
|
+
vel dicit laoreet et. An qui prompta conclusionemque, eam
|
|
39
|
+
timeam sapientem in, cum dictas epicurei eu.
|
|
40
|
+
|
|
41
|
+
Usu cu vide dictas deseruisse, eum choro graece adipiscing
|
|
42
|
+
ut. Cibo qualisque ius ad, et dicat scripta mea, eam nihil
|
|
43
|
+
mentitum aliquando cu. Debet aperiam splendide at quo, ad
|
|
44
|
+
paulo nostro commodo duo. Sea adhuc utinam conclusionemque
|
|
45
|
+
id, quas doming malorum nec ad. Tollit eruditi vivendum ad
|
|
46
|
+
ius, eos soleat ignota ad.
|
|
47
|
+
</textarea></form>
|
|
48
|
+
|
|
49
|
+
<p>Demonstration of
|
|
50
|
+
the <a href="../doc/manual.html#addon_hardwrap">hardwrap</a> addon.
|
|
51
|
+
The above editor has its change event hooked up to
|
|
52
|
+
the <code>wrapParagraphsInRange</code> method, so that the paragraphs
|
|
53
|
+
are reflown as you are typing.</p>
|
|
54
|
+
|
|
55
|
+
<script>
|
|
56
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
|
57
|
+
mode: "markdown",
|
|
58
|
+
lineNumbers: true
|
|
59
|
+
});
|
|
60
|
+
var wait, options = {column: 60};
|
|
61
|
+
editor.on("change", function(cm, change) {
|
|
62
|
+
clearTimeout(wait);
|
|
63
|
+
wait = setTimeout(function() {
|
|
64
|
+
cm.wrapParagraphsInRange(change.from, CodeMirror.changeEnd(change), options);
|
|
65
|
+
}, 200);
|
|
66
|
+
});
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
</article>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
|
|
3
|
+
<title>CodeMirror: HTML completion demo</title>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<link rel=stylesheet href="../doc/docs.css">
|
|
6
|
+
|
|
7
|
+
<link rel="stylesheet" href="../lib/codemirror.css">
|
|
8
|
+
<link rel="stylesheet" href="../addon/hint/show-hint.css">
|
|
9
|
+
<script src="../lib/codemirror.js"></script>
|
|
10
|
+
<script src="../addon/hint/show-hint.js"></script>
|
|
11
|
+
<script src="../addon/hint/xml-hint.js"></script>
|
|
12
|
+
<script src="../addon/hint/html-hint.js"></script>
|
|
13
|
+
<script src="../mode/xml/xml.js"></script>
|
|
14
|
+
<script src="../mode/javascript/javascript.js"></script>
|
|
15
|
+
<script src="../mode/css/css.js"></script>
|
|
16
|
+
<script src="../mode/htmlmixed/htmlmixed.js"></script>
|
|
17
|
+
<style type="text/css">
|
|
18
|
+
.CodeMirror {border-top: 1px solid #888; border-bottom: 1px solid #888;}
|
|
19
|
+
</style>
|
|
20
|
+
<div id=nav>
|
|
21
|
+
<a href="http://codemirror.net"><img id=logo src="../doc/logo.png"></a>
|
|
22
|
+
|
|
23
|
+
<ul>
|
|
24
|
+
<li><a href="../index.html">Home</a>
|
|
25
|
+
<li><a href="../doc/manual.html">Manual</a>
|
|
26
|
+
<li><a href="https://github.com/marijnh/codemirror">Code</a>
|
|
27
|
+
</ul>
|
|
28
|
+
<ul>
|
|
29
|
+
<li><a class=active href="#">HTML completion</a>
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<article>
|
|
34
|
+
<h2>HTML completion demo</h2>
|
|
35
|
+
|
|
36
|
+
<p>Shows the <a href="xmlcomplete.html">XML completer</a>
|
|
37
|
+
parameterized with information about the tags in HTML.
|
|
38
|
+
Press <strong>ctrl-space</strong> to activate completion.</p>
|
|
39
|
+
|
|
40
|
+
<div id="code"></div>
|
|
41
|
+
|
|
42
|
+
<script type="text/javascript">
|
|
43
|
+
CodeMirror.commands.autocomplete = function(cm) {
|
|
44
|
+
CodeMirror.showHint(cm, CodeMirror.hint.html);
|
|
45
|
+
}
|
|
46
|
+
window.onload = function() {
|
|
47
|
+
editor = CodeMirror(document.getElementById("code"), {
|
|
48
|
+
mode: "text/html",
|
|
49
|
+
extraKeys: {"Ctrl-Space": "autocomplete"},
|
|
50
|
+
value: "<!doctype html>\n<html>\n " + document.documentElement.innerHTML + "\n</html>"
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
</script>
|
|
54
|
+
</article>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
|
|
3
|
+
<title>CodeMirror: Indented wrapped line demo</title>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<link rel=stylesheet href="../doc/docs.css">
|
|
6
|
+
|
|
7
|
+
<link rel="stylesheet" href="../lib/codemirror.css">
|
|
8
|
+
<script src="../lib/codemirror.js"></script>
|
|
9
|
+
<script src="../mode/xml/xml.js"></script>
|
|
10
|
+
<style type="text/css">
|
|
11
|
+
.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
|
|
12
|
+
</style>
|
|
13
|
+
<div id=nav>
|
|
14
|
+
<a href="http://codemirror.net"><img id=logo src="../doc/logo.png"></a>
|
|
15
|
+
|
|
16
|
+
<ul>
|
|
17
|
+
<li><a href="../index.html">Home</a>
|
|
18
|
+
<li><a href="../doc/manual.html">Manual</a>
|
|
19
|
+
<li><a href="https://github.com/marijnh/codemirror">Code</a>
|
|
20
|
+
</ul>
|
|
21
|
+
<ul>
|
|
22
|
+
<li><a class=active href="#">Indented wrapped line</a>
|
|
23
|
+
</ul>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<article>
|
|
27
|
+
<h2>Indented wrapped line demo</h2>
|
|
28
|
+
<form><textarea id="code" name="code">
|
|
29
|
+
<!doctype html>
|
|
30
|
+
<body>
|
|
31
|
+
<h2 id="overview">Overview</h2>
|
|
32
|
+
|
|
33
|
+
<p>CodeMirror is a code-editor component that can be embedded in Web pages. The core library provides <em>only</em> the editor component, no accompanying buttons, auto-completion, or other IDE functionality. It does provide a rich API on top of which such functionality can be straightforwardly implemented. See the <a href="#addons">add-ons</a> included in the distribution, and the <a href="https://github.com/jagthedrummer/codemirror-ui">CodeMirror UI</a> project, for reusable implementations of extra features.</p>
|
|
34
|
+
|
|
35
|
+
<p>CodeMirror works with language-specific modes. Modes are JavaScript programs that help color (and optionally indent) text written in a given language. The distribution comes with a number of modes (see the <a href="../mode/"><code>mode/</code></a> directory), and it isn't hard to <a href="#modeapi">write new ones</a> for other languages.</p>
|
|
36
|
+
</body>
|
|
37
|
+
</textarea></form>
|
|
38
|
+
|
|
39
|
+
<p>This page uses a hack on top of the <code>"renderLine"</code>
|
|
40
|
+
event to make wrapped text line up with the base indentation of
|
|
41
|
+
the line.</p>
|
|
42
|
+
|
|
43
|
+
<script>
|
|
44
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
|
45
|
+
lineNumbers: true,
|
|
46
|
+
lineWrapping: true,
|
|
47
|
+
mode: "text/html"
|
|
48
|
+
});
|
|
49
|
+
var charWidth = editor.defaultCharWidth(), basePadding = 4;
|
|
50
|
+
editor.on("renderLine", function(cm, line, elt) {
|
|
51
|
+
var off = CodeMirror.countColumn(line.text, null, cm.getOption("tabSize")) * charWidth;
|
|
52
|
+
elt.style.textIndent = "-" + off + "px";
|
|
53
|
+
elt.style.paddingLeft = (basePadding + off) + "px";
|
|
54
|
+
});
|
|
55
|
+
editor.refresh();
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
</article>
|