chaskiq 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -0
- data/lib/chaskiq/version.rb +1 -1
- data/vendor/assets/images/animated-overlay.gif +0 -0
- data/vendor/assets/images/blueimp/img/error.png +0 -0
- data/vendor/assets/images/blueimp/img/error.svg +5 -0
- data/vendor/assets/images/blueimp/img/loading.gif +0 -0
- data/vendor/assets/images/blueimp/img/play-pause.png +0 -0
- data/vendor/assets/images/blueimp/img/play-pause.svg +6 -0
- data/vendor/assets/images/blueimp/img/video-play.png +0 -0
- data/vendor/assets/images/blueimp/img/video-play.svg +5 -0
- data/vendor/assets/images/bootstrap-colorpicker/alpha-horizontal.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/alpha.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/hue-horizontal.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/hue.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/saturation.png +0 -0
- data/vendor/assets/images/chosen-sprite.png +0 -0
- data/vendor/assets/images/chosen-sprite@2x.png +0 -0
- data/vendor/assets/images/green.png +0 -0
- data/vendor/assets/images/green@2x.png +0 -0
- data/vendor/assets/images/images/animated-overlay.gif +0 -0
- data/vendor/assets/images/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/images/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/images/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/images/sort.png +0 -0
- data/vendor/assets/images/sort_asc.png +0 -0
- data/vendor/assets/images/sort_desc.png +0 -0
- data/vendor/assets/images/sprite-skin-flat.png +0 -0
- data/vendor/assets/images/sprite-skin-flat2.png +0 -0
- data/vendor/assets/images/sprite-skin-nice.png +0 -0
- data/vendor/assets/images/sprite-skin-simple.png +0 -0
- data/vendor/assets/images/spritemap.png +0 -0
- data/vendor/assets/images/spritemap@2x.png +0 -0
- data/vendor/assets/javascripts/backbone/backbone.min.js +2 -0
- data/vendor/assets/javascripts/backbone/underscore.min.js +6 -0
- data/vendor/assets/javascripts/chartjs/Chart.min.js +11 -0
- data/vendor/assets/javascripts/codemirror/codemirror.js +7830 -0
- data/vendor/assets/javascripts/codemirror/mode/apl/apl.js +175 -0
- data/vendor/assets/javascripts/codemirror/mode/apl/index.html +72 -0
- data/vendor/assets/javascripts/codemirror/mode/asterisk/asterisk.js +198 -0
- data/vendor/assets/javascripts/codemirror/mode/asterisk/index.html +154 -0
- data/vendor/assets/javascripts/codemirror/mode/clike/clike.js +474 -0
- data/vendor/assets/javascripts/codemirror/mode/clike/index.html +225 -0
- data/vendor/assets/javascripts/codemirror/mode/clike/scala.html +767 -0
- data/vendor/assets/javascripts/codemirror/mode/clojure/clojure.js +243 -0
- data/vendor/assets/javascripts/codemirror/mode/clojure/index.html +88 -0
- data/vendor/assets/javascripts/codemirror/mode/cobol/cobol.js +255 -0
- data/vendor/assets/javascripts/codemirror/mode/cobol/index.html +210 -0
- data/vendor/assets/javascripts/codemirror/mode/coffeescript/coffeescript.js +369 -0
- data/vendor/assets/javascripts/codemirror/mode/coffeescript/index.html +740 -0
- data/vendor/assets/javascripts/codemirror/mode/commonlisp/commonlisp.js +120 -0
- data/vendor/assets/javascripts/codemirror/mode/commonlisp/index.html +177 -0
- data/vendor/assets/javascripts/codemirror/mode/css/css.js +717 -0
- data/vendor/assets/javascripts/codemirror/mode/css/index.html +70 -0
- data/vendor/assets/javascripts/codemirror/mode/css/less.html +152 -0
- data/vendor/assets/javascripts/codemirror/mode/css/less_test.js +51 -0
- data/vendor/assets/javascripts/codemirror/mode/css/scss.html +157 -0
- data/vendor/assets/javascripts/codemirror/mode/css/scss_test.js +110 -0
- data/vendor/assets/javascripts/codemirror/mode/css/test.js +135 -0
- data/vendor/assets/javascripts/codemirror/mode/cypher/cypher.js +146 -0
- data/vendor/assets/javascripts/codemirror/mode/cypher/index.html +63 -0
- data/vendor/assets/javascripts/codemirror/mode/d/d.js +218 -0
- data/vendor/assets/javascripts/codemirror/mode/d/index.html +273 -0
- data/vendor/assets/javascripts/codemirror/mode/diff/diff.js +47 -0
- data/vendor/assets/javascripts/codemirror/mode/diff/index.html +117 -0
- data/vendor/assets/javascripts/codemirror/mode/django/django.js +67 -0
- data/vendor/assets/javascripts/codemirror/mode/django/index.html +63 -0
- data/vendor/assets/javascripts/codemirror/mode/dtd/dtd.js +142 -0
- data/vendor/assets/javascripts/codemirror/mode/dtd/index.html +89 -0
- data/vendor/assets/javascripts/codemirror/mode/dylan/dylan.js +299 -0
- data/vendor/assets/javascripts/codemirror/mode/dylan/index.html +407 -0
- data/vendor/assets/javascripts/codemirror/mode/ecl/ecl.js +207 -0
- data/vendor/assets/javascripts/codemirror/mode/ecl/index.html +52 -0
- data/vendor/assets/javascripts/codemirror/mode/eiffel/eiffel.js +162 -0
- data/vendor/assets/javascripts/codemirror/mode/eiffel/index.html +429 -0
- data/vendor/assets/javascripts/codemirror/mode/erlang/erlang.js +622 -0
- data/vendor/assets/javascripts/codemirror/mode/erlang/index.html +76 -0
- data/vendor/assets/javascripts/codemirror/mode/fortran/fortran.js +188 -0
- data/vendor/assets/javascripts/codemirror/mode/fortran/index.html +81 -0
- data/vendor/assets/javascripts/codemirror/mode/gas/gas.js +345 -0
- data/vendor/assets/javascripts/codemirror/mode/gas/index.html +68 -0
- data/vendor/assets/javascripts/codemirror/mode/gfm/gfm.js +122 -0
- data/vendor/assets/javascripts/codemirror/mode/gfm/index.html +82 -0
- data/vendor/assets/javascripts/codemirror/mode/gfm/test.js +164 -0
- data/vendor/assets/javascripts/codemirror/mode/gherkin/gherkin.js +178 -0
- data/vendor/assets/javascripts/codemirror/mode/gherkin/index.html +48 -0
- data/vendor/assets/javascripts/codemirror/mode/go/go.js +184 -0
- data/vendor/assets/javascripts/codemirror/mode/go/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/groovy/groovy.js +226 -0
- data/vendor/assets/javascripts/codemirror/mode/groovy/index.html +84 -0
- data/vendor/assets/javascripts/codemirror/mode/haml/haml.js +159 -0
- data/vendor/assets/javascripts/codemirror/mode/haml/index.html +79 -0
- data/vendor/assets/javascripts/codemirror/mode/haml/test.js +97 -0
- data/vendor/assets/javascripts/codemirror/mode/haskell/haskell.js +267 -0
- data/vendor/assets/javascripts/codemirror/mode/haskell/index.html +73 -0
- data/vendor/assets/javascripts/codemirror/mode/haxe/haxe.js +518 -0
- data/vendor/assets/javascripts/codemirror/mode/haxe/index.html +124 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlembedded/htmlembedded.js +86 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlembedded/index.html +58 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlmixed/htmlmixed.js +121 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlmixed/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/http/http.js +113 -0
- data/vendor/assets/javascripts/codemirror/mode/http/index.html +45 -0
- data/vendor/assets/javascripts/codemirror/mode/index.html +125 -0
- data/vendor/assets/javascripts/codemirror/mode/jade/index.html +70 -0
- data/vendor/assets/javascripts/codemirror/mode/jade/jade.js +590 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/index.html +114 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/javascript.js +684 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/json-ld.html +72 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/test.js +194 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/typescript.html +61 -0
- data/vendor/assets/javascripts/codemirror/mode/jinja2/index.html +54 -0
- data/vendor/assets/javascripts/codemirror/mode/jinja2/jinja2.js +142 -0
- data/vendor/assets/javascripts/codemirror/mode/julia/index.html +195 -0
- data/vendor/assets/javascripts/codemirror/mode/julia/julia.js +301 -0
- data/vendor/assets/javascripts/codemirror/mode/kotlin/index.html +89 -0
- data/vendor/assets/javascripts/codemirror/mode/kotlin/kotlin.js +280 -0
- data/vendor/assets/javascripts/codemirror/mode/livescript/index.html +459 -0
- data/vendor/assets/javascripts/codemirror/mode/livescript/livescript.js +280 -0
- data/vendor/assets/javascripts/codemirror/mode/lua/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/lua/lua.js +159 -0
- data/vendor/assets/javascripts/codemirror/mode/markdown/index.html +359 -0
- data/vendor/assets/javascripts/codemirror/mode/markdown/markdown.js +758 -0
- data/vendor/assets/javascripts/codemirror/mode/markdown/test.js +754 -0
- data/vendor/assets/javascripts/codemirror/mode/meta.js +144 -0
- data/vendor/assets/javascripts/codemirror/mode/mirc/index.html +160 -0
- data/vendor/assets/javascripts/codemirror/mode/mirc/mirc.js +193 -0
- data/vendor/assets/javascripts/codemirror/mode/mllike/index.html +179 -0
- data/vendor/assets/javascripts/codemirror/mode/mllike/mllike.js +205 -0
- data/vendor/assets/javascripts/codemirror/mode/modelica/index.html +67 -0
- data/vendor/assets/javascripts/codemirror/mode/modelica/modelica.js +245 -0
- data/vendor/assets/javascripts/codemirror/mode/nginx/index.html +181 -0
- data/vendor/assets/javascripts/codemirror/mode/nginx/nginx.js +178 -0
- data/vendor/assets/javascripts/codemirror/mode/ntriples/index.html +45 -0
- data/vendor/assets/javascripts/codemirror/mode/ntriples/ntriples.js +186 -0
- data/vendor/assets/javascripts/codemirror/mode/octave/index.html +83 -0
- data/vendor/assets/javascripts/codemirror/mode/octave/octave.js +135 -0
- data/vendor/assets/javascripts/codemirror/mode/pascal/index.html +61 -0
- data/vendor/assets/javascripts/codemirror/mode/pascal/pascal.js +109 -0
- data/vendor/assets/javascripts/codemirror/mode/pegjs/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/pegjs/pegjs.js +114 -0
- data/vendor/assets/javascripts/codemirror/mode/perl/index.html +75 -0
- data/vendor/assets/javascripts/codemirror/mode/perl/perl.js +832 -0
- data/vendor/assets/javascripts/codemirror/mode/php/index.html +64 -0
- data/vendor/assets/javascripts/codemirror/mode/php/php.js +226 -0
- data/vendor/assets/javascripts/codemirror/mode/php/test.js +154 -0
- data/vendor/assets/javascripts/codemirror/mode/pig/index.html +55 -0
- data/vendor/assets/javascripts/codemirror/mode/pig/pig.js +188 -0
- data/vendor/assets/javascripts/codemirror/mode/properties/index.html +53 -0
- data/vendor/assets/javascripts/codemirror/mode/properties/properties.js +78 -0
- data/vendor/assets/javascripts/codemirror/mode/puppet/index.html +121 -0
- data/vendor/assets/javascripts/codemirror/mode/puppet/puppet.js +220 -0
- data/vendor/assets/javascripts/codemirror/mode/python/index.html +198 -0
- data/vendor/assets/javascripts/codemirror/mode/python/python.js +359 -0
- data/vendor/assets/javascripts/codemirror/mode/q/index.html +144 -0
- data/vendor/assets/javascripts/codemirror/mode/q/q.js +139 -0
- data/vendor/assets/javascripts/codemirror/mode/r/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/r/r.js +162 -0
- data/vendor/assets/javascripts/codemirror/mode/rpm/changes/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/rpm/index.html +149 -0
- data/vendor/assets/javascripts/codemirror/mode/rpm/rpm.js +101 -0
- data/vendor/assets/javascripts/codemirror/mode/rst/index.html +535 -0
- data/vendor/assets/javascripts/codemirror/mode/rst/rst.js +557 -0
- data/vendor/assets/javascripts/codemirror/mode/ruby/index.html +184 -0
- data/vendor/assets/javascripts/codemirror/mode/ruby/ruby.js +285 -0
- data/vendor/assets/javascripts/codemirror/mode/ruby/test.js +14 -0
- data/vendor/assets/javascripts/codemirror/mode/rust/index.html +60 -0
- data/vendor/assets/javascripts/codemirror/mode/rust/rust.js +451 -0
- data/vendor/assets/javascripts/codemirror/mode/sass/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/sass/sass.js +327 -0
- data/vendor/assets/javascripts/codemirror/mode/scheme/index.html +77 -0
- data/vendor/assets/javascripts/codemirror/mode/scheme/scheme.js +248 -0
- data/vendor/assets/javascripts/codemirror/mode/shell/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/shell/shell.js +138 -0
- data/vendor/assets/javascripts/codemirror/mode/shell/test.js +58 -0
- data/vendor/assets/javascripts/codemirror/mode/sieve/index.html +93 -0
- data/vendor/assets/javascripts/codemirror/mode/sieve/sieve.js +193 -0
- data/vendor/assets/javascripts/codemirror/mode/slim/index.html +96 -0
- data/vendor/assets/javascripts/codemirror/mode/slim/slim.js +575 -0
- data/vendor/assets/javascripts/codemirror/mode/slim/test.js +96 -0
- data/vendor/assets/javascripts/codemirror/mode/smalltalk/index.html +68 -0
- data/vendor/assets/javascripts/codemirror/mode/smalltalk/smalltalk.js +168 -0
- data/vendor/assets/javascripts/codemirror/mode/smarty/index.html +136 -0
- data/vendor/assets/javascripts/codemirror/mode/smarty/smarty.js +221 -0
- data/vendor/assets/javascripts/codemirror/mode/smartymixed/index.html +114 -0
- data/vendor/assets/javascripts/codemirror/mode/smartymixed/smartymixed.js +197 -0
- data/vendor/assets/javascripts/codemirror/mode/solr/index.html +57 -0
- data/vendor/assets/javascripts/codemirror/mode/solr/solr.js +104 -0
- data/vendor/assets/javascripts/codemirror/mode/sparql/index.html +53 -0
- data/vendor/assets/javascripts/codemirror/mode/sparql/sparql.js +160 -0
- data/vendor/assets/javascripts/codemirror/mode/sql/index.html +84 -0
- data/vendor/assets/javascripts/codemirror/mode/sql/sql.js +393 -0
- data/vendor/assets/javascripts/codemirror/mode/stex/index.html +110 -0
- data/vendor/assets/javascripts/codemirror/mode/stex/stex.js +262 -0
- data/vendor/assets/javascripts/codemirror/mode/stex/test.js +123 -0
- data/vendor/assets/javascripts/codemirror/mode/tcl/index.html +142 -0
- data/vendor/assets/javascripts/codemirror/mode/tcl/tcl.js +147 -0
- data/vendor/assets/javascripts/codemirror/mode/textile/index.html +191 -0
- data/vendor/assets/javascripts/codemirror/mode/textile/test.js +406 -0
- data/vendor/assets/javascripts/codemirror/mode/textile/textile.js +553 -0
- data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/index.html +154 -0
- data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
- data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/tiddlywiki.js +369 -0
- data/vendor/assets/javascripts/codemirror/mode/tiki/index.html +95 -0
- data/vendor/assets/javascripts/codemirror/mode/tiki/tiki.css +26 -0
- data/vendor/assets/javascripts/codemirror/mode/tiki/tiki.js +323 -0
- data/vendor/assets/javascripts/codemirror/mode/toml/index.html +73 -0
- data/vendor/assets/javascripts/codemirror/mode/toml/toml.js +88 -0
- data/vendor/assets/javascripts/codemirror/mode/tornado/index.html +63 -0
- data/vendor/assets/javascripts/codemirror/mode/tornado/tornado.js +68 -0
- data/vendor/assets/javascripts/codemirror/mode/turtle/index.html +50 -0
- data/vendor/assets/javascripts/codemirror/mode/turtle/turtle.js +160 -0
- data/vendor/assets/javascripts/codemirror/mode/vb/index.html +102 -0
- data/vendor/assets/javascripts/codemirror/mode/vb/vb.js +274 -0
- data/vendor/assets/javascripts/codemirror/mode/vbscript/index.html +55 -0
- data/vendor/assets/javascripts/codemirror/mode/vbscript/vbscript.js +350 -0
- data/vendor/assets/javascripts/codemirror/mode/velocity/index.html +118 -0
- data/vendor/assets/javascripts/codemirror/mode/velocity/velocity.js +201 -0
- data/vendor/assets/javascripts/codemirror/mode/verilog/index.html +120 -0
- data/vendor/assets/javascripts/codemirror/mode/verilog/test.js +273 -0
- data/vendor/assets/javascripts/codemirror/mode/verilog/verilog.js +364 -0
- data/vendor/assets/javascripts/codemirror/mode/xml/index.html +57 -0
- data/vendor/assets/javascripts/codemirror/mode/xml/test.js +51 -0
- data/vendor/assets/javascripts/codemirror/mode/xml/xml.js +384 -0
- data/vendor/assets/javascripts/codemirror/mode/xquery/index.html +210 -0
- data/vendor/assets/javascripts/codemirror/mode/xquery/test.js +67 -0
- data/vendor/assets/javascripts/codemirror/mode/xquery/xquery.js +447 -0
- data/vendor/assets/javascripts/codemirror/mode/yaml/index.html +80 -0
- data/vendor/assets/javascripts/codemirror/mode/yaml/yaml.js +112 -0
- data/vendor/assets/javascripts/codemirror/mode/z80/index.html +52 -0
- data/vendor/assets/javascripts/codemirror/mode/z80/z80.js +100 -0
- data/vendor/assets/javascripts/datapicker/bootstrap-datepicker.js +1671 -0
- data/vendor/assets/javascripts/flot/curvedLines.js +315 -0
- data/vendor/assets/javascripts/flot/excanvas.min.js +1 -0
- data/vendor/assets/javascripts/flot/jquery.flot.js +3168 -0
- data/vendor/assets/javascripts/flot/jquery.flot.pie.js +820 -0
- data/vendor/assets/javascripts/flot/jquery.flot.resize.js +59 -0
- data/vendor/assets/javascripts/flot/jquery.flot.spline.js +212 -0
- data/vendor/assets/javascripts/flot/jquery.flot.symbol.js +71 -0
- data/vendor/assets/javascripts/flot/jquery.flot.time.js +432 -0
- data/vendor/assets/javascripts/flot/jquery.flot.tooltip.min.js +12 -0
- data/vendor/assets/javascripts/jquery/jquery-2.1.1.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery-ui-i18n.min.js +6 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-af.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ar-DZ.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ar.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-az.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-be.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-bg.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-bs.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ca.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-cs.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-cy-GB.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-da.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-de.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-el.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-AU.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-GB.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-NZ.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-eo.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-es.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-et.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-eu.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fa.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fo.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr-CA.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr-CH.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-gl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-he.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hy.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-id.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-is.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-it.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ja.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ka.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-kk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-km.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ko.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ky.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lb.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lt.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lv.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-mk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ml.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ms.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nb.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nl-BE.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nn.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-no.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pt-BR.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pt.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-rm.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ro.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ru.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sq.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sr-SR.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sv.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ta.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-th.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-tj.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-tr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-uk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-vi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-CN.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-HK.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-TW.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/images/animated-overlay.gif +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui-1.10.4.custom.min.css +7 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui-1.10.4.min.js +7 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.css +1189 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.js +15040 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.css +4 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.js +12 -0
- data/vendor/assets/javascripts/metisMenu/jquery.metisMenu.js +120 -0
- data/vendor/assets/javascripts/morris/morris.js +1888 -0
- data/vendor/assets/javascripts/morris/raphael-2.1.0.min.js +10 -0
- data/vendor/assets/javascripts/pace/pace.min.js +2 -0
- data/vendor/assets/javascripts/peity/jquery.peity.min.js +13 -0
- data/vendor/assets/javascripts/radioactive/radioactive.min.js +1 -0
- data/vendor/assets/javascripts/rickshaw/rickshaw.min.js +3 -0
- data/vendor/assets/javascripts/rickshaw/vendor/d3.v3.js +5 -0
- data/vendor/assets/javascripts/sparkline/jquery.sparkline.min.js +5 -0
- data/vendor/assets/javascripts/summernote/summernote.min.js +6331 -0
- data/vendor/assets/javascripts/toastr/toastr.min.js +2 -0
- data/vendor/assets/stylesheets/codemirror/codemirror.css +309 -0
- data/vendor/assets/stylesheets/codemirror/elegant.css +13 -0
- data/vendor/assets/stylesheets/datapicker/datepicker3.css +789 -0
- data/vendor/assets/stylesheets/summernote/summernote-bs3.css +5970 -0
- data/vendor/assets/stylesheets/summernote/summernote.css +446 -0
- data/vendor/assets/stylesheets/toastr/toastr.css +222 -0
- metadata +362 -3
- data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -0,0 +1,122 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function(mod) {
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
6
|
+
mod(require("../../lib/codemirror"), require("../markdown/markdown"), require("../../addon/mode/overlay"));
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
8
|
+
define(["../../lib/codemirror", "../markdown/markdown", "../../addon/mode/overlay"], mod);
|
9
|
+
else // Plain browser env
|
10
|
+
mod(CodeMirror);
|
11
|
+
})(function(CodeMirror) {
|
12
|
+
"use strict";
|
13
|
+
|
14
|
+
CodeMirror.defineMode("gfm", function(config, modeConfig) {
|
15
|
+
var codeDepth = 0;
|
16
|
+
function blankLine(state) {
|
17
|
+
state.code = false;
|
18
|
+
return null;
|
19
|
+
}
|
20
|
+
var gfmOverlay = {
|
21
|
+
startState: function() {
|
22
|
+
return {
|
23
|
+
code: false,
|
24
|
+
codeBlock: false,
|
25
|
+
ateSpace: false
|
26
|
+
};
|
27
|
+
},
|
28
|
+
copyState: function(s) {
|
29
|
+
return {
|
30
|
+
code: s.code,
|
31
|
+
codeBlock: s.codeBlock,
|
32
|
+
ateSpace: s.ateSpace
|
33
|
+
};
|
34
|
+
},
|
35
|
+
token: function(stream, state) {
|
36
|
+
state.combineTokens = null;
|
37
|
+
|
38
|
+
// Hack to prevent formatting override inside code blocks (block and inline)
|
39
|
+
if (state.codeBlock) {
|
40
|
+
if (stream.match(/^```/)) {
|
41
|
+
state.codeBlock = false;
|
42
|
+
return null;
|
43
|
+
}
|
44
|
+
stream.skipToEnd();
|
45
|
+
return null;
|
46
|
+
}
|
47
|
+
if (stream.sol()) {
|
48
|
+
state.code = false;
|
49
|
+
}
|
50
|
+
if (stream.sol() && stream.match(/^```/)) {
|
51
|
+
stream.skipToEnd();
|
52
|
+
state.codeBlock = true;
|
53
|
+
return null;
|
54
|
+
}
|
55
|
+
// If this block is changed, it may need to be updated in Markdown mode
|
56
|
+
if (stream.peek() === '`') {
|
57
|
+
stream.next();
|
58
|
+
var before = stream.pos;
|
59
|
+
stream.eatWhile('`');
|
60
|
+
var difference = 1 + stream.pos - before;
|
61
|
+
if (!state.code) {
|
62
|
+
codeDepth = difference;
|
63
|
+
state.code = true;
|
64
|
+
} else {
|
65
|
+
if (difference === codeDepth) { // Must be exact
|
66
|
+
state.code = false;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
return null;
|
70
|
+
} else if (state.code) {
|
71
|
+
stream.next();
|
72
|
+
return null;
|
73
|
+
}
|
74
|
+
// Check if space. If so, links can be formatted later on
|
75
|
+
if (stream.eatSpace()) {
|
76
|
+
state.ateSpace = true;
|
77
|
+
return null;
|
78
|
+
}
|
79
|
+
if (stream.sol() || state.ateSpace) {
|
80
|
+
state.ateSpace = false;
|
81
|
+
if(stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/)) {
|
82
|
+
// User/Project@SHA
|
83
|
+
// User@SHA
|
84
|
+
// SHA
|
85
|
+
state.combineTokens = true;
|
86
|
+
return "link";
|
87
|
+
} else if (stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/)) {
|
88
|
+
// User/Project#Num
|
89
|
+
// User#Num
|
90
|
+
// #Num
|
91
|
+
state.combineTokens = true;
|
92
|
+
return "link";
|
93
|
+
}
|
94
|
+
}
|
95
|
+
if (stream.match(/^((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i) &&
|
96
|
+
stream.string.slice(stream.start - 2, stream.start) != "](") {
|
97
|
+
// URLs
|
98
|
+
// Taken from http://daringfireball.net/2010/07/improved_regex_for_matching_urls
|
99
|
+
// And then (issue #1160) simplified to make it not crash the Chrome Regexp engine
|
100
|
+
state.combineTokens = true;
|
101
|
+
return "link";
|
102
|
+
}
|
103
|
+
stream.next();
|
104
|
+
return null;
|
105
|
+
},
|
106
|
+
blankLine: blankLine
|
107
|
+
};
|
108
|
+
|
109
|
+
var markdownConfig = {
|
110
|
+
underscoresBreakWords: false,
|
111
|
+
taskLists: true,
|
112
|
+
fencedCodeBlocks: true
|
113
|
+
};
|
114
|
+
for (var attr in modeConfig) {
|
115
|
+
markdownConfig[attr] = modeConfig[attr];
|
116
|
+
}
|
117
|
+
markdownConfig.name = "markdown";
|
118
|
+
CodeMirror.defineMIME("gfmBase", markdownConfig);
|
119
|
+
return CodeMirror.overlayMode(CodeMirror.getMode(config, "gfmBase"), gfmOverlay);
|
120
|
+
}, "markdown");
|
121
|
+
|
122
|
+
});
|
@@ -0,0 +1,82 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<title>CodeMirror: GFM mode</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="../../addon/mode/overlay.js"></script>
|
10
|
+
<script src="../xml/xml.js"></script>
|
11
|
+
<script src="../markdown/markdown.js"></script>
|
12
|
+
<script src="gfm.js"></script>
|
13
|
+
<script src="../javascript/javascript.js"></script>
|
14
|
+
<script src="../css/css.js"></script>
|
15
|
+
<script src="../htmlmixed/htmlmixed.js"></script>
|
16
|
+
<script src="../clike/clike.js"></script>
|
17
|
+
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
18
|
+
<div id=nav>
|
19
|
+
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
20
|
+
|
21
|
+
<ul>
|
22
|
+
<li><a href="../../index.html">Home</a>
|
23
|
+
<li><a href="../../doc/manual.html">Manual</a>
|
24
|
+
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
25
|
+
</ul>
|
26
|
+
<ul>
|
27
|
+
<li><a href="../index.html">Language modes</a>
|
28
|
+
<li><a class=active href="#">GFM</a>
|
29
|
+
</ul>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<article>
|
33
|
+
<h2>GFM mode</h2>
|
34
|
+
<form><textarea id="code" name="code">
|
35
|
+
GitHub Flavored Markdown
|
36
|
+
========================
|
37
|
+
|
38
|
+
Everything from markdown plus GFM features:
|
39
|
+
|
40
|
+
## URL autolinking
|
41
|
+
|
42
|
+
Underscores_are_allowed_between_words.
|
43
|
+
|
44
|
+
## Fenced code blocks (and syntax highlighting)
|
45
|
+
|
46
|
+
```javascript
|
47
|
+
for (var i = 0; i < items.length; i++) {
|
48
|
+
console.log(items[i], i); // log them
|
49
|
+
}
|
50
|
+
```
|
51
|
+
|
52
|
+
## Task Lists
|
53
|
+
|
54
|
+
- [ ] Incomplete task list item
|
55
|
+
- [x] **Completed** task list item
|
56
|
+
|
57
|
+
## A bit of GitHub spice
|
58
|
+
|
59
|
+
* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
|
60
|
+
* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
|
61
|
+
* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
|
62
|
+
* \#Num: #1
|
63
|
+
* User/#Num: mojombo#1
|
64
|
+
* User/Project#Num: mojombo/god#1
|
65
|
+
|
66
|
+
See http://github.github.com/github-flavored-markdown/.
|
67
|
+
|
68
|
+
</textarea></form>
|
69
|
+
|
70
|
+
<script>
|
71
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
72
|
+
mode: 'gfm',
|
73
|
+
lineNumbers: true,
|
74
|
+
theme: "default"
|
75
|
+
});
|
76
|
+
</script>
|
77
|
+
|
78
|
+
<p>Optionally depends on other modes for properly highlighted code blocks.</p>
|
79
|
+
|
80
|
+
<p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#gfm_*">normal</a>, <a href="../../test/index.html#verbose,gfm_*">verbose</a>.</p>
|
81
|
+
|
82
|
+
</article>
|
@@ -0,0 +1,164 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function() {
|
5
|
+
var mode = CodeMirror.getMode({tabSize: 4}, "gfm");
|
6
|
+
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
|
7
|
+
var modeHighlightFormatting = CodeMirror.getMode({tabSize: 4}, {name: "gfm", highlightFormatting: true});
|
8
|
+
function FT(name) { test.mode(name, modeHighlightFormatting, Array.prototype.slice.call(arguments, 1)); }
|
9
|
+
|
10
|
+
FT("codeBackticks",
|
11
|
+
"[comment&formatting&formatting-code `][comment foo][comment&formatting&formatting-code `]");
|
12
|
+
|
13
|
+
FT("doubleBackticks",
|
14
|
+
"[comment&formatting&formatting-code ``][comment foo ` bar][comment&formatting&formatting-code ``]");
|
15
|
+
|
16
|
+
FT("codeBlock",
|
17
|
+
"[comment&formatting&formatting-code-block ```css]",
|
18
|
+
"[tag foo]",
|
19
|
+
"[comment&formatting&formatting-code-block ```]");
|
20
|
+
|
21
|
+
FT("taskList",
|
22
|
+
"[variable-2&formatting&formatting-list&formatting-list-ul - ][meta&formatting&formatting-task [ ]]][variable-2 foo]",
|
23
|
+
"[variable-2&formatting&formatting-list&formatting-list-ul - ][property&formatting&formatting-task [x]]][variable-2 foo]");
|
24
|
+
|
25
|
+
MT("emInWordAsterisk",
|
26
|
+
"foo[em *bar*]hello");
|
27
|
+
|
28
|
+
MT("emInWordUnderscore",
|
29
|
+
"foo_bar_hello");
|
30
|
+
|
31
|
+
MT("emStrongUnderscore",
|
32
|
+
"[strong __][em&strong _foo__][em _] bar");
|
33
|
+
|
34
|
+
MT("fencedCodeBlocks",
|
35
|
+
"[comment ```]",
|
36
|
+
"[comment foo]",
|
37
|
+
"",
|
38
|
+
"[comment ```]",
|
39
|
+
"bar");
|
40
|
+
|
41
|
+
MT("fencedCodeBlockModeSwitching",
|
42
|
+
"[comment ```javascript]",
|
43
|
+
"[variable foo]",
|
44
|
+
"",
|
45
|
+
"[comment ```]",
|
46
|
+
"bar");
|
47
|
+
|
48
|
+
MT("taskListAsterisk",
|
49
|
+
"[variable-2 * []] foo]", // Invalid; must have space or x between []
|
50
|
+
"[variable-2 * [ ]]bar]", // Invalid; must have space after ]
|
51
|
+
"[variable-2 * [x]]hello]", // Invalid; must have space after ]
|
52
|
+
"[variable-2 * ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links
|
53
|
+
" [variable-3 * ][property [x]]][variable-3 foo]"); // Valid; can be nested
|
54
|
+
|
55
|
+
MT("taskListPlus",
|
56
|
+
"[variable-2 + []] foo]", // Invalid; must have space or x between []
|
57
|
+
"[variable-2 + [ ]]bar]", // Invalid; must have space after ]
|
58
|
+
"[variable-2 + [x]]hello]", // Invalid; must have space after ]
|
59
|
+
"[variable-2 + ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links
|
60
|
+
" [variable-3 + ][property [x]]][variable-3 foo]"); // Valid; can be nested
|
61
|
+
|
62
|
+
MT("taskListDash",
|
63
|
+
"[variable-2 - []] foo]", // Invalid; must have space or x between []
|
64
|
+
"[variable-2 - [ ]]bar]", // Invalid; must have space after ]
|
65
|
+
"[variable-2 - [x]]hello]", // Invalid; must have space after ]
|
66
|
+
"[variable-2 - ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links
|
67
|
+
" [variable-3 - ][property [x]]][variable-3 foo]"); // Valid; can be nested
|
68
|
+
|
69
|
+
MT("taskListNumber",
|
70
|
+
"[variable-2 1. []] foo]", // Invalid; must have space or x between []
|
71
|
+
"[variable-2 2. [ ]]bar]", // Invalid; must have space after ]
|
72
|
+
"[variable-2 3. [x]]hello]", // Invalid; must have space after ]
|
73
|
+
"[variable-2 4. ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links
|
74
|
+
" [variable-3 1. ][property [x]]][variable-3 foo]"); // Valid; can be nested
|
75
|
+
|
76
|
+
MT("SHA",
|
77
|
+
"foo [link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] bar");
|
78
|
+
|
79
|
+
MT("SHAEmphasis",
|
80
|
+
"[em *foo ][em&link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]");
|
81
|
+
|
82
|
+
MT("shortSHA",
|
83
|
+
"foo [link be6a8cc] bar");
|
84
|
+
|
85
|
+
MT("tooShortSHA",
|
86
|
+
"foo be6a8c bar");
|
87
|
+
|
88
|
+
MT("longSHA",
|
89
|
+
"foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd22 bar");
|
90
|
+
|
91
|
+
MT("badSHA",
|
92
|
+
"foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cg2 bar");
|
93
|
+
|
94
|
+
MT("userSHA",
|
95
|
+
"foo [link bar@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] hello");
|
96
|
+
|
97
|
+
MT("userSHAEmphasis",
|
98
|
+
"[em *foo ][em&link bar@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]");
|
99
|
+
|
100
|
+
MT("userProjectSHA",
|
101
|
+
"foo [link bar/hello@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] world");
|
102
|
+
|
103
|
+
MT("userProjectSHAEmphasis",
|
104
|
+
"[em *foo ][em&link bar/hello@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]");
|
105
|
+
|
106
|
+
MT("num",
|
107
|
+
"foo [link #1] bar");
|
108
|
+
|
109
|
+
MT("numEmphasis",
|
110
|
+
"[em *foo ][em&link #1][em *]");
|
111
|
+
|
112
|
+
MT("badNum",
|
113
|
+
"foo #1bar hello");
|
114
|
+
|
115
|
+
MT("userNum",
|
116
|
+
"foo [link bar#1] hello");
|
117
|
+
|
118
|
+
MT("userNumEmphasis",
|
119
|
+
"[em *foo ][em&link bar#1][em *]");
|
120
|
+
|
121
|
+
MT("userProjectNum",
|
122
|
+
"foo [link bar/hello#1] world");
|
123
|
+
|
124
|
+
MT("userProjectNumEmphasis",
|
125
|
+
"[em *foo ][em&link bar/hello#1][em *]");
|
126
|
+
|
127
|
+
MT("vanillaLink",
|
128
|
+
"foo [link http://www.example.com/] bar");
|
129
|
+
|
130
|
+
MT("vanillaLinkPunctuation",
|
131
|
+
"foo [link http://www.example.com/]. bar");
|
132
|
+
|
133
|
+
MT("vanillaLinkExtension",
|
134
|
+
"foo [link http://www.example.com/index.html] bar");
|
135
|
+
|
136
|
+
MT("vanillaLinkEmphasis",
|
137
|
+
"foo [em *][em&link http://www.example.com/index.html][em *] bar");
|
138
|
+
|
139
|
+
MT("notALink",
|
140
|
+
"[comment ```css]",
|
141
|
+
"[tag foo] {[property color]:[keyword black];}",
|
142
|
+
"[comment ```][link http://www.example.com/]");
|
143
|
+
|
144
|
+
MT("notALink",
|
145
|
+
"[comment ``foo `bar` http://www.example.com/``] hello");
|
146
|
+
|
147
|
+
MT("notALink",
|
148
|
+
"[comment `foo]",
|
149
|
+
"[link http://www.example.com/]",
|
150
|
+
"[comment `foo]",
|
151
|
+
"",
|
152
|
+
"[link http://www.example.com/]");
|
153
|
+
|
154
|
+
MT("headerCodeBlockGithub",
|
155
|
+
"[header&header-1 # heading]",
|
156
|
+
"",
|
157
|
+
"[comment ```]",
|
158
|
+
"[comment code]",
|
159
|
+
"[comment ```]",
|
160
|
+
"",
|
161
|
+
"Commit: [link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2]",
|
162
|
+
"Issue: [link #1]",
|
163
|
+
"Link: [link http://www.example.com/]");
|
164
|
+
})();
|
@@ -0,0 +1,178 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
/*
|
5
|
+
Gherkin mode - http://www.cukes.info/
|
6
|
+
Report bugs/issues here: https://github.com/codemirror/CodeMirror/issues
|
7
|
+
*/
|
8
|
+
|
9
|
+
// Following Objs from Brackets implementation: https://github.com/tregusti/brackets-gherkin/blob/master/main.js
|
10
|
+
//var Quotes = {
|
11
|
+
// SINGLE: 1,
|
12
|
+
// DOUBLE: 2
|
13
|
+
//};
|
14
|
+
|
15
|
+
//var regex = {
|
16
|
+
// keywords: /(Feature| {2}(Scenario|In order to|As|I)| {4}(Given|When|Then|And))/
|
17
|
+
//};
|
18
|
+
|
19
|
+
(function(mod) {
|
20
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
21
|
+
mod(require("../../lib/codemirror"));
|
22
|
+
else if (typeof define == "function" && define.amd) // AMD
|
23
|
+
define(["../../lib/codemirror"], mod);
|
24
|
+
else // Plain browser env
|
25
|
+
mod(CodeMirror);
|
26
|
+
})(function(CodeMirror) {
|
27
|
+
"use strict";
|
28
|
+
|
29
|
+
CodeMirror.defineMode("gherkin", function () {
|
30
|
+
return {
|
31
|
+
startState: function () {
|
32
|
+
return {
|
33
|
+
lineNumber: 0,
|
34
|
+
tableHeaderLine: false,
|
35
|
+
allowFeature: true,
|
36
|
+
allowBackground: false,
|
37
|
+
allowScenario: false,
|
38
|
+
allowSteps: false,
|
39
|
+
allowPlaceholders: false,
|
40
|
+
allowMultilineArgument: false,
|
41
|
+
inMultilineString: false,
|
42
|
+
inMultilineTable: false,
|
43
|
+
inKeywordLine: false
|
44
|
+
};
|
45
|
+
},
|
46
|
+
token: function (stream, state) {
|
47
|
+
if (stream.sol()) {
|
48
|
+
state.lineNumber++;
|
49
|
+
state.inKeywordLine = false;
|
50
|
+
if (state.inMultilineTable) {
|
51
|
+
state.tableHeaderLine = false;
|
52
|
+
if (!stream.match(/\s*\|/, false)) {
|
53
|
+
state.allowMultilineArgument = false;
|
54
|
+
state.inMultilineTable = false;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
stream.eatSpace();
|
60
|
+
|
61
|
+
if (state.allowMultilineArgument) {
|
62
|
+
|
63
|
+
// STRING
|
64
|
+
if (state.inMultilineString) {
|
65
|
+
if (stream.match('"""')) {
|
66
|
+
state.inMultilineString = false;
|
67
|
+
state.allowMultilineArgument = false;
|
68
|
+
} else {
|
69
|
+
stream.match(/.*/);
|
70
|
+
}
|
71
|
+
return "string";
|
72
|
+
}
|
73
|
+
|
74
|
+
// TABLE
|
75
|
+
if (state.inMultilineTable) {
|
76
|
+
if (stream.match(/\|\s*/)) {
|
77
|
+
return "bracket";
|
78
|
+
} else {
|
79
|
+
stream.match(/[^\|]*/);
|
80
|
+
return state.tableHeaderLine ? "header" : "string";
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
// DETECT START
|
85
|
+
if (stream.match('"""')) {
|
86
|
+
// String
|
87
|
+
state.inMultilineString = true;
|
88
|
+
return "string";
|
89
|
+
} else if (stream.match("|")) {
|
90
|
+
// Table
|
91
|
+
state.inMultilineTable = true;
|
92
|
+
state.tableHeaderLine = true;
|
93
|
+
return "bracket";
|
94
|
+
}
|
95
|
+
|
96
|
+
}
|
97
|
+
|
98
|
+
// LINE COMMENT
|
99
|
+
if (stream.match(/#.*/)) {
|
100
|
+
return "comment";
|
101
|
+
|
102
|
+
// TAG
|
103
|
+
} else if (!state.inKeywordLine && stream.match(/@\S+/)) {
|
104
|
+
return "tag";
|
105
|
+
|
106
|
+
// FEATURE
|
107
|
+
} else if (!state.inKeywordLine && state.allowFeature && stream.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)) {
|
108
|
+
state.allowScenario = true;
|
109
|
+
state.allowBackground = true;
|
110
|
+
state.allowPlaceholders = false;
|
111
|
+
state.allowSteps = false;
|
112
|
+
state.allowMultilineArgument = false;
|
113
|
+
state.inKeywordLine = true;
|
114
|
+
return "keyword";
|
115
|
+
|
116
|
+
// BACKGROUND
|
117
|
+
} else if (!state.inKeywordLine && state.allowBackground && stream.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)) {
|
118
|
+
state.allowPlaceholders = false;
|
119
|
+
state.allowSteps = true;
|
120
|
+
state.allowBackground = false;
|
121
|
+
state.allowMultilineArgument = false;
|
122
|
+
state.inKeywordLine = true;
|
123
|
+
return "keyword";
|
124
|
+
|
125
|
+
// SCENARIO OUTLINE
|
126
|
+
} else if (!state.inKeywordLine && state.allowScenario && stream.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)) {
|
127
|
+
state.allowPlaceholders = true;
|
128
|
+
state.allowSteps = true;
|
129
|
+
state.allowMultilineArgument = false;
|
130
|
+
state.inKeywordLine = true;
|
131
|
+
return "keyword";
|
132
|
+
|
133
|
+
// EXAMPLES
|
134
|
+
} else if (state.allowScenario && stream.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)) {
|
135
|
+
state.allowPlaceholders = false;
|
136
|
+
state.allowSteps = true;
|
137
|
+
state.allowBackground = false;
|
138
|
+
state.allowMultilineArgument = true;
|
139
|
+
return "keyword";
|
140
|
+
|
141
|
+
// SCENARIO
|
142
|
+
} else if (!state.inKeywordLine && state.allowScenario && stream.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)) {
|
143
|
+
state.allowPlaceholders = false;
|
144
|
+
state.allowSteps = true;
|
145
|
+
state.allowBackground = false;
|
146
|
+
state.allowMultilineArgument = false;
|
147
|
+
state.inKeywordLine = true;
|
148
|
+
return "keyword";
|
149
|
+
|
150
|
+
// STEPS
|
151
|
+
} else if (!state.inKeywordLine && state.allowSteps && stream.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)) {
|
152
|
+
state.inStep = true;
|
153
|
+
state.allowPlaceholders = true;
|
154
|
+
state.allowMultilineArgument = true;
|
155
|
+
state.inKeywordLine = true;
|
156
|
+
return "keyword";
|
157
|
+
|
158
|
+
// INLINE STRING
|
159
|
+
} else if (stream.match(/"[^"]*"?/)) {
|
160
|
+
return "string";
|
161
|
+
|
162
|
+
// PLACEHOLDER
|
163
|
+
} else if (state.allowPlaceholders && stream.match(/<[^>]*>?/)) {
|
164
|
+
return "variable";
|
165
|
+
|
166
|
+
// Fall through
|
167
|
+
} else {
|
168
|
+
stream.next();
|
169
|
+
stream.eatWhile(/[^@"<#]/);
|
170
|
+
return null;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
};
|
174
|
+
});
|
175
|
+
|
176
|
+
CodeMirror.defineMIME("text/x-feature", "gherkin");
|
177
|
+
|
178
|
+
});
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<title>CodeMirror: Gherkin mode</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="gherkin.js"></script>
|
10
|
+
<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style>
|
11
|
+
<div id=nav>
|
12
|
+
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
13
|
+
|
14
|
+
<ul>
|
15
|
+
<li><a href="../../index.html">Home</a>
|
16
|
+
<li><a href="../../doc/manual.html">Manual</a>
|
17
|
+
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
18
|
+
</ul>
|
19
|
+
<ul>
|
20
|
+
<li><a href="../index.html">Language modes</a>
|
21
|
+
<li><a class=active href="#">Gherkin</a>
|
22
|
+
</ul>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<article>
|
26
|
+
<h2>Gherkin mode</h2>
|
27
|
+
<form><textarea id="code" name="code">
|
28
|
+
Feature: Using Google
|
29
|
+
Background:
|
30
|
+
Something something
|
31
|
+
Something else
|
32
|
+
Scenario: Has a homepage
|
33
|
+
When I navigate to the google home page
|
34
|
+
Then the home page should contain the menu and the search form
|
35
|
+
Scenario: Searching for a term
|
36
|
+
When I navigate to the google home page
|
37
|
+
When I search for Tofu
|
38
|
+
Then the search results page is displayed
|
39
|
+
Then the search results page contains 10 individual search results
|
40
|
+
Then the search results contain a link to the wikipedia tofu page
|
41
|
+
</textarea></form>
|
42
|
+
<script>
|
43
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
|
44
|
+
</script>
|
45
|
+
|
46
|
+
<p><strong>MIME types defined:</strong> <code>text/x-feature</code>.</p>
|
47
|
+
|
48
|
+
</article>
|