administrate-field-simple_mde_markdown 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (419) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +72 -0
  3. data/.circleci/setup-rubygems.sh +3 -0
  4. data/.gitignore +11 -0
  5. data/.rspec +3 -0
  6. data/CODE_OF_CONDUCT.md +74 -0
  7. data/Gemfile +8 -0
  8. data/Gemfile.lock +196 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +44 -0
  11. data/Rakefile +8 -0
  12. data/administrate-field-simple_mde_markdown.gemspec +31 -0
  13. data/app/assets/javascripts/administrate-field-simple_mde_markdown/application.js +6 -0
  14. data/app/assets/stylesheets/administrate-field-simple_mde_markdown/application.css +3 -0
  15. data/app/views/fields/simple_mde_markdown/_form.html.erb +6 -0
  16. data/app/views/fields/simple_mde_markdown/_index.html.erb +1 -0
  17. data/app/views/fields/simple_mde_markdown/_show.html.erb +1 -0
  18. data/lib/administrate/field/simple_mde_markdown.rb +31 -0
  19. data/node_modules/.bin/marked +1 -0
  20. data/node_modules/codemirror-spell-checker/.eslintrc +23 -0
  21. data/node_modules/codemirror-spell-checker/.npmignore +2 -0
  22. data/node_modules/codemirror-spell-checker/.travis.yml +18 -0
  23. data/node_modules/codemirror-spell-checker/CONTRIBUTING 2.md +10 -0
  24. data/node_modules/codemirror-spell-checker/CONTRIBUTING.md +10 -0
  25. data/node_modules/codemirror-spell-checker/LICENSE +22 -0
  26. data/node_modules/codemirror-spell-checker/README.md +50 -0
  27. data/node_modules/codemirror-spell-checker/bower.json +27 -0
  28. data/node_modules/codemirror-spell-checker/debug/.spell-checker 2.css.icloud +0 -0
  29. data/node_modules/codemirror-spell-checker/debug/spell-checker.css +9 -0
  30. data/node_modules/codemirror-spell-checker/debug/spell-checker.debug.js +2844 -0
  31. data/node_modules/codemirror-spell-checker/debug/spell-checker.js +2841 -0
  32. data/node_modules/codemirror-spell-checker/dist/.spell-checker.min 2.css.icloud +0 -0
  33. data/node_modules/codemirror-spell-checker/dist/en_US.aff +201 -0
  34. data/node_modules/codemirror-spell-checker/dist/en_US.dic +62120 -0
  35. data/node_modules/codemirror-spell-checker/dist/spell-checker.min 2.js +7 -0
  36. data/node_modules/codemirror-spell-checker/dist/spell-checker.min.css +7 -0
  37. data/node_modules/codemirror-spell-checker/dist/spell-checker.min.js +7 -0
  38. data/node_modules/codemirror-spell-checker/gulpfile.js +94 -0
  39. data/node_modules/codemirror-spell-checker/package.json +75 -0
  40. data/node_modules/codemirror-spell-checker/src/css/spell-checker.css +3 -0
  41. data/node_modules/codemirror-spell-checker/src/data/en_US.aff +201 -0
  42. data/node_modules/codemirror-spell-checker/src/data/en_US.dic +62120 -0
  43. data/node_modules/codemirror-spell-checker/src/js/spell-checker.js +119 -0
  44. data/node_modules/codemirror/.package 2.json.icloud +0 -0
  45. data/node_modules/codemirror/AUTHORS +773 -0
  46. data/node_modules/codemirror/CHANGELOG.md +1486 -0
  47. data/node_modules/codemirror/CONTRIBUTING.md +92 -0
  48. data/node_modules/codemirror/LICENSE +21 -0
  49. data/node_modules/codemirror/README.md +49 -0
  50. data/node_modules/codemirror/addon/comment/comment.js +209 -0
  51. data/node_modules/codemirror/addon/comment/continuecomment.js +78 -0
  52. data/node_modules/codemirror/addon/dialog/dialog.css +32 -0
  53. data/node_modules/codemirror/addon/dialog/dialog.js +161 -0
  54. data/node_modules/codemirror/addon/display/autorefresh.js +47 -0
  55. data/node_modules/codemirror/addon/display/fullscreen.css +6 -0
  56. data/node_modules/codemirror/addon/display/fullscreen.js +41 -0
  57. data/node_modules/codemirror/addon/display/panel.js +127 -0
  58. data/node_modules/codemirror/addon/display/placeholder.js +63 -0
  59. data/node_modules/codemirror/addon/display/rulers.js +51 -0
  60. data/node_modules/codemirror/addon/edit/closebrackets.js +187 -0
  61. data/node_modules/codemirror/addon/edit/closetag.js +175 -0
  62. data/node_modules/codemirror/addon/edit/continuelist.js +89 -0
  63. data/node_modules/codemirror/addon/edit/matchbrackets.js +145 -0
  64. data/node_modules/codemirror/addon/edit/matchtags.js +66 -0
  65. data/node_modules/codemirror/addon/edit/trailingspace.js +27 -0
  66. data/node_modules/codemirror/addon/fold/brace-fold.js +105 -0
  67. data/node_modules/codemirror/addon/fold/comment-fold.js +59 -0
  68. data/node_modules/codemirror/addon/fold/foldcode.js +152 -0
  69. data/node_modules/codemirror/addon/fold/foldgutter.css +20 -0
  70. data/node_modules/codemirror/addon/fold/foldgutter.js +146 -0
  71. data/node_modules/codemirror/addon/fold/indent-fold.js +48 -0
  72. data/node_modules/codemirror/addon/fold/markdown-fold.js +49 -0
  73. data/node_modules/codemirror/addon/fold/xml-fold.js +184 -0
  74. data/node_modules/codemirror/addon/hint/anyword-hint.js +41 -0
  75. data/node_modules/codemirror/addon/hint/css-hint.js +60 -0
  76. data/node_modules/codemirror/addon/hint/html-hint.js +348 -0
  77. data/node_modules/codemirror/addon/hint/javascript-hint.js +157 -0
  78. data/node_modules/codemirror/addon/hint/show-hint.css +36 -0
  79. data/node_modules/codemirror/addon/hint/show-hint.js +434 -0
  80. data/node_modules/codemirror/addon/hint/sql-hint.js +299 -0
  81. data/node_modules/codemirror/addon/hint/xml-hint.js +110 -0
  82. data/node_modules/codemirror/addon/lint/coffeescript-lint.js +47 -0
  83. data/node_modules/codemirror/addon/lint/css-lint.js +40 -0
  84. data/node_modules/codemirror/addon/lint/html-lint.js +53 -0
  85. data/node_modules/codemirror/addon/lint/javascript-lint.js +63 -0
  86. data/node_modules/codemirror/addon/lint/json-lint.js +40 -0
  87. data/node_modules/codemirror/addon/lint/lint.css +73 -0
  88. data/node_modules/codemirror/addon/lint/lint.js +252 -0
  89. data/node_modules/codemirror/addon/lint/yaml-lint.js +41 -0
  90. data/node_modules/codemirror/addon/merge/merge.css +119 -0
  91. data/node_modules/codemirror/addon/merge/merge.js +1002 -0
  92. data/node_modules/codemirror/addon/mode/loadmode.js +64 -0
  93. data/node_modules/codemirror/addon/mode/multiplex.js +131 -0
  94. data/node_modules/codemirror/addon/mode/multiplex_test.js +33 -0
  95. data/node_modules/codemirror/addon/mode/overlay.js +90 -0
  96. data/node_modules/codemirror/addon/mode/simple.js +216 -0
  97. data/node_modules/codemirror/addon/runmode/colorize.js +40 -0
  98. data/node_modules/codemirror/addon/runmode/runmode-standalone.js +158 -0
  99. data/node_modules/codemirror/addon/runmode/runmode.js +72 -0
  100. data/node_modules/codemirror/addon/runmode/runmode.node.js +197 -0
  101. data/node_modules/codemirror/addon/scroll/annotatescrollbar.js +122 -0
  102. data/node_modules/codemirror/addon/scroll/scrollpastend.js +48 -0
  103. data/node_modules/codemirror/addon/scroll/simplescrollbars.css +66 -0
  104. data/node_modules/codemirror/addon/scroll/simplescrollbars.js +152 -0
  105. data/node_modules/codemirror/addon/search/jump-to-line.js +50 -0
  106. data/node_modules/codemirror/addon/search/match-highlighter.js +165 -0
  107. data/node_modules/codemirror/addon/search/matchesonscrollbar.css +8 -0
  108. data/node_modules/codemirror/addon/search/matchesonscrollbar.js +97 -0
  109. data/node_modules/codemirror/addon/search/search.js +258 -0
  110. data/node_modules/codemirror/addon/search/searchcursor.js +293 -0
  111. data/node_modules/codemirror/addon/selection/active-line.js +72 -0
  112. data/node_modules/codemirror/addon/selection/mark-selection.js +119 -0
  113. data/node_modules/codemirror/addon/selection/selection-pointer.js +98 -0
  114. data/node_modules/codemirror/addon/tern/tern.css +87 -0
  115. data/node_modules/codemirror/addon/tern/tern.js +718 -0
  116. data/node_modules/codemirror/addon/tern/worker.js +44 -0
  117. data/node_modules/codemirror/addon/wrap/hardwrap.js +145 -0
  118. data/node_modules/codemirror/bin/source-highlight +48 -0
  119. data/node_modules/codemirror/keymap/emacs.js +417 -0
  120. data/node_modules/codemirror/keymap/sublime.js +691 -0
  121. data/node_modules/codemirror/keymap/vim.js +5467 -0
  122. data/node_modules/codemirror/lib/codemirror.css +346 -0
  123. data/node_modules/codemirror/lib/codemirror.js +9698 -0
  124. data/node_modules/codemirror/mode/apl/apl.js +174 -0
  125. data/node_modules/codemirror/mode/asciiarmor/asciiarmor.js +74 -0
  126. data/node_modules/codemirror/mode/asn.1/asn.1.js +204 -0
  127. data/node_modules/codemirror/mode/asterisk/asterisk.js +196 -0
  128. data/node_modules/codemirror/mode/brainfuck/brainfuck.js +85 -0
  129. data/node_modules/codemirror/mode/clike/clike.js +879 -0
  130. data/node_modules/codemirror/mode/clojure/clojure.js +292 -0
  131. data/node_modules/codemirror/mode/cmake/cmake.js +97 -0
  132. data/node_modules/codemirror/mode/cobol/cobol.js +255 -0
  133. data/node_modules/codemirror/mode/coffeescript/coffeescript.js +359 -0
  134. data/node_modules/codemirror/mode/commonlisp/commonlisp.js +124 -0
  135. data/node_modules/codemirror/mode/crystal/crystal.js +433 -0
  136. data/node_modules/codemirror/mode/css/css.js +832 -0
  137. data/node_modules/codemirror/mode/cypher/cypher.js +150 -0
  138. data/node_modules/codemirror/mode/d/d.js +223 -0
  139. data/node_modules/codemirror/mode/dart/dart.js +157 -0
  140. data/node_modules/codemirror/mode/diff/diff.js +47 -0
  141. data/node_modules/codemirror/mode/django/django.js +356 -0
  142. data/node_modules/codemirror/mode/dockerfile/dockerfile.js +211 -0
  143. data/node_modules/codemirror/mode/dtd/dtd.js +142 -0
  144. data/node_modules/codemirror/mode/dylan/dylan.js +352 -0
  145. data/node_modules/codemirror/mode/ebnf/ebnf.js +195 -0
  146. data/node_modules/codemirror/mode/ecl/ecl.js +206 -0
  147. data/node_modules/codemirror/mode/eiffel/eiffel.js +160 -0
  148. data/node_modules/codemirror/mode/elm/elm.js +205 -0
  149. data/node_modules/codemirror/mode/erlang/erlang.js +619 -0
  150. data/node_modules/codemirror/mode/factor/factor.js +85 -0
  151. data/node_modules/codemirror/mode/fcl/fcl.js +173 -0
  152. data/node_modules/codemirror/mode/forth/forth.js +180 -0
  153. data/node_modules/codemirror/mode/fortran/fortran.js +188 -0
  154. data/node_modules/codemirror/mode/gas/gas.js +345 -0
  155. data/node_modules/codemirror/mode/gfm/gfm.js +129 -0
  156. data/node_modules/codemirror/mode/gherkin/gherkin.js +178 -0
  157. data/node_modules/codemirror/mode/go/go.js +187 -0
  158. data/node_modules/codemirror/mode/groovy/groovy.js +230 -0
  159. data/node_modules/codemirror/mode/haml/haml.js +161 -0
  160. data/node_modules/codemirror/mode/handlebars/handlebars.js +66 -0
  161. data/node_modules/codemirror/mode/haskell-literate/haskell-literate.js +43 -0
  162. data/node_modules/codemirror/mode/haskell/haskell.js +268 -0
  163. data/node_modules/codemirror/mode/haxe/haxe.js +515 -0
  164. data/node_modules/codemirror/mode/htmlembedded/htmlembedded.js +37 -0
  165. data/node_modules/codemirror/mode/htmlmixed/htmlmixed.js +152 -0
  166. data/node_modules/codemirror/mode/http/http.js +113 -0
  167. data/node_modules/codemirror/mode/idl/idl.js +290 -0
  168. data/node_modules/codemirror/mode/javascript/javascript.js +899 -0
  169. data/node_modules/codemirror/mode/jinja2/jinja2.js +144 -0
  170. data/node_modules/codemirror/mode/jsx/jsx.js +148 -0
  171. data/node_modules/codemirror/mode/julia/julia.js +433 -0
  172. data/node_modules/codemirror/mode/livescript/livescript.js +280 -0
  173. data/node_modules/codemirror/mode/lua/lua.js +159 -0
  174. data/node_modules/codemirror/mode/markdown/markdown.js +884 -0
  175. data/node_modules/codemirror/mode/mathematica/mathematica.js +176 -0
  176. data/node_modules/codemirror/mode/mbox/mbox.js +129 -0
  177. data/node_modules/codemirror/mode/meta.js +217 -0
  178. data/node_modules/codemirror/mode/mirc/mirc.js +193 -0
  179. data/node_modules/codemirror/mode/mllike/mllike.js +359 -0
  180. data/node_modules/codemirror/mode/modelica/modelica.js +245 -0
  181. data/node_modules/codemirror/mode/mscgen/mscgen.js +175 -0
  182. data/node_modules/codemirror/mode/mumps/mumps.js +148 -0
  183. data/node_modules/codemirror/mode/nginx/nginx.js +178 -0
  184. data/node_modules/codemirror/mode/nsis/nsis.js +95 -0
  185. data/node_modules/codemirror/mode/ntriples/ntriples.js +195 -0
  186. data/node_modules/codemirror/mode/octave/octave.js +139 -0
  187. data/node_modules/codemirror/mode/oz/oz.js +252 -0
  188. data/node_modules/codemirror/mode/pascal/pascal.js +121 -0
  189. data/node_modules/codemirror/mode/pegjs/pegjs.js +114 -0
  190. data/node_modules/codemirror/mode/perl/perl.js +837 -0
  191. data/node_modules/codemirror/mode/php/php.js +234 -0
  192. data/node_modules/codemirror/mode/pig/pig.js +178 -0
  193. data/node_modules/codemirror/mode/powershell/powershell.js +398 -0
  194. data/node_modules/codemirror/mode/properties/properties 2.js +78 -0
  195. data/node_modules/codemirror/mode/properties/properties.js +78 -0
  196. data/node_modules/codemirror/mode/protobuf/protobuf.js +69 -0
  197. data/node_modules/codemirror/mode/pug/pug.js +591 -0
  198. data/node_modules/codemirror/mode/puppet/puppet.js +220 -0
  199. data/node_modules/codemirror/mode/python/python.js +409 -0
  200. data/node_modules/codemirror/mode/q/q.js +139 -0
  201. data/node_modules/codemirror/mode/r/r.js +190 -0
  202. data/node_modules/codemirror/mode/rpm/changes/index.html +66 -0
  203. data/node_modules/codemirror/mode/rpm/rpm.js +109 -0
  204. data/node_modules/codemirror/mode/rst/rst.js +557 -0
  205. data/node_modules/codemirror/mode/ruby/ruby.js +296 -0
  206. data/node_modules/codemirror/mode/rust/rust.js +72 -0
  207. data/node_modules/codemirror/mode/sas/sas.js +303 -0
  208. data/node_modules/codemirror/mode/sass/sass.js +454 -0
  209. data/node_modules/codemirror/mode/scheme/scheme.js +265 -0
  210. data/node_modules/codemirror/mode/shell/shell.js +152 -0
  211. data/node_modules/codemirror/mode/sieve/sieve.js +193 -0
  212. data/node_modules/codemirror/mode/slim/slim.js +575 -0
  213. data/node_modules/codemirror/mode/smalltalk/smalltalk.js +168 -0
  214. data/node_modules/codemirror/mode/smarty/smarty.js +225 -0
  215. data/node_modules/codemirror/mode/solr/solr.js +104 -0
  216. data/node_modules/codemirror/mode/soy/soy 2.js +359 -0
  217. data/node_modules/codemirror/mode/soy/soy.js +235 -0
  218. data/node_modules/codemirror/mode/sparql/sparql.js +180 -0
  219. data/node_modules/codemirror/mode/spreadsheet/spreadsheet.js +112 -0
  220. data/node_modules/codemirror/mode/sql/sql.js +499 -0
  221. data/node_modules/codemirror/mode/stex/stex.js +264 -0
  222. data/node_modules/codemirror/mode/stylus/stylus.js +771 -0
  223. data/node_modules/codemirror/mode/swift/swift.js +219 -0
  224. data/node_modules/codemirror/mode/tcl/tcl.js +139 -0
  225. data/node_modules/codemirror/mode/textile/textile.js +469 -0
  226. data/node_modules/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
  227. data/node_modules/codemirror/mode/tiddlywiki/tiddlywiki.js +308 -0
  228. data/node_modules/codemirror/mode/tiki/tiki.css +26 -0
  229. data/node_modules/codemirror/mode/tiki/tiki.js +312 -0
  230. data/node_modules/codemirror/mode/toml/toml.js +88 -0
  231. data/node_modules/codemirror/mode/tornado/tornado.js +68 -0
  232. data/node_modules/codemirror/mode/troff/troff.js +84 -0
  233. data/node_modules/codemirror/mode/ttcn-cfg/ttcn-cfg.js +214 -0
  234. data/node_modules/codemirror/mode/ttcn/ttcn.js +283 -0
  235. data/node_modules/codemirror/mode/turtle/turtle.js +162 -0
  236. data/node_modules/codemirror/mode/twig/twig.js +141 -0
  237. data/node_modules/codemirror/mode/vb/vb.js +275 -0
  238. data/node_modules/codemirror/mode/vbscript/vbscript.js +350 -0
  239. data/node_modules/codemirror/mode/velocity/velocity.js +201 -0
  240. data/node_modules/codemirror/mode/verilog/verilog.js +675 -0
  241. data/node_modules/codemirror/mode/vhdl/vhdl.js +189 -0
  242. data/node_modules/codemirror/mode/vue/vue.js +77 -0
  243. data/node_modules/codemirror/mode/webidl/webidl.js +195 -0
  244. data/node_modules/codemirror/mode/xml/xml.js +402 -0
  245. data/node_modules/codemirror/mode/xquery/xquery.js +448 -0
  246. data/node_modules/codemirror/mode/yacas/yacas.js +204 -0
  247. data/node_modules/codemirror/mode/yaml-frontmatter/yaml-frontmatter.js +68 -0
  248. data/node_modules/codemirror/mode/yaml/yaml.js +120 -0
  249. data/node_modules/codemirror/mode/z80/z80.js +116 -0
  250. data/node_modules/codemirror/package.json +2395 -0
  251. data/node_modules/codemirror/rollup.config.js +20 -0
  252. data/node_modules/codemirror/src/codemirror.js +3 -0
  253. data/node_modules/codemirror/src/display/Display.js +106 -0
  254. data/node_modules/codemirror/src/display/focus.js +47 -0
  255. data/node_modules/codemirror/src/display/gutters.js +34 -0
  256. data/node_modules/codemirror/src/display/highlight_worker.js +55 -0
  257. data/node_modules/codemirror/src/display/line_numbers.js +48 -0
  258. data/node_modules/codemirror/src/display/mode_state.js +22 -0
  259. data/node_modules/codemirror/src/display/operations.js +205 -0
  260. data/node_modules/codemirror/src/display/scroll_events.js +115 -0
  261. data/node_modules/codemirror/src/display/scrollbars.js +193 -0
  262. data/node_modules/codemirror/src/display/scrolling.js +184 -0
  263. data/node_modules/codemirror/src/display/selection.js +158 -0
  264. data/node_modules/codemirror/src/display/update_display.js +260 -0
  265. data/node_modules/codemirror/src/display/update_line.js +188 -0
  266. data/node_modules/codemirror/src/display/update_lines.js +64 -0
  267. data/node_modules/codemirror/src/display/view_tracking.js +153 -0
  268. data/node_modules/codemirror/src/edit/CodeMirror.js +215 -0
  269. data/node_modules/codemirror/src/edit/commands.js +178 -0
  270. data/node_modules/codemirror/src/edit/deleteNearSelection.js +30 -0
  271. data/node_modules/codemirror/src/edit/drop_events.js +119 -0
  272. data/node_modules/codemirror/src/edit/fromTextArea.js +61 -0
  273. data/node_modules/codemirror/src/edit/global_events.js +42 -0
  274. data/node_modules/codemirror/src/edit/key_events.js +159 -0
  275. data/node_modules/codemirror/src/edit/legacy.js +62 -0
  276. data/node_modules/codemirror/src/edit/main.js +69 -0
  277. data/node_modules/codemirror/src/edit/methods.js +544 -0
  278. data/node_modules/codemirror/src/edit/mouse_events.js +407 -0
  279. data/node_modules/codemirror/src/edit/options.js +193 -0
  280. data/node_modules/codemirror/src/edit/utils.js +7 -0
  281. data/node_modules/codemirror/src/input/ContentEditableInput.js +527 -0
  282. data/node_modules/codemirror/src/input/TextareaInput.js +355 -0
  283. data/node_modules/codemirror/src/input/indent.js +71 -0
  284. data/node_modules/codemirror/src/input/input.js +135 -0
  285. data/node_modules/codemirror/src/input/keymap.js +148 -0
  286. data/node_modules/codemirror/src/input/keynames.js +17 -0
  287. data/node_modules/codemirror/src/input/movement.js +110 -0
  288. data/node_modules/codemirror/src/line/highlight.js +284 -0
  289. data/node_modules/codemirror/src/line/line_data.js +339 -0
  290. data/node_modules/codemirror/src/line/pos.js +40 -0
  291. data/node_modules/codemirror/src/line/saw_special_spans.js +10 -0
  292. data/node_modules/codemirror/src/line/spans.js +382 -0
  293. data/node_modules/codemirror/src/line/utils_line.js +85 -0
  294. data/node_modules/codemirror/src/measurement/position_measurement.js +699 -0
  295. data/node_modules/codemirror/src/measurement/widgets.js +26 -0
  296. data/node_modules/codemirror/src/model/Doc.js +432 -0
  297. data/node_modules/codemirror/src/model/change_measurement.js +61 -0
  298. data/node_modules/codemirror/src/model/changes.js +333 -0
  299. data/node_modules/codemirror/src/model/chunk.js +167 -0
  300. data/node_modules/codemirror/src/model/document_data.js +111 -0
  301. data/node_modules/codemirror/src/model/history.js +228 -0
  302. data/node_modules/codemirror/src/model/line_widget.js +78 -0
  303. data/node_modules/codemirror/src/model/mark_text.js +292 -0
  304. data/node_modules/codemirror/src/model/selection.js +84 -0
  305. data/node_modules/codemirror/src/model/selection_updates.js +208 -0
  306. data/node_modules/codemirror/src/modes.js +96 -0
  307. data/node_modules/codemirror/src/util/StringStream.js +90 -0
  308. data/node_modules/codemirror/src/util/bidi.js +214 -0
  309. data/node_modules/codemirror/src/util/browser.js +33 -0
  310. data/node_modules/codemirror/src/util/dom.js +97 -0
  311. data/node_modules/codemirror/src/util/event.js +103 -0
  312. data/node_modules/codemirror/src/util/feature_detection.js +84 -0
  313. data/node_modules/codemirror/src/util/misc.js +150 -0
  314. data/node_modules/codemirror/src/util/operation_group.js +72 -0
  315. data/node_modules/codemirror/theme/3024-day.css +41 -0
  316. data/node_modules/codemirror/theme/3024-night.css +39 -0
  317. data/node_modules/codemirror/theme/abcdef.css +32 -0
  318. data/node_modules/codemirror/theme/ambiance-mobile.css +5 -0
  319. data/node_modules/codemirror/theme/ambiance.css +74 -0
  320. data/node_modules/codemirror/theme/base16-dark.css +38 -0
  321. data/node_modules/codemirror/theme/base16-light.css +38 -0
  322. data/node_modules/codemirror/theme/bespin.css +34 -0
  323. data/node_modules/codemirror/theme/blackboard.css +32 -0
  324. data/node_modules/codemirror/theme/cobalt.css +25 -0
  325. data/node_modules/codemirror/theme/colorforth.css +33 -0
  326. data/node_modules/codemirror/theme/darcula.css +46 -0
  327. data/node_modules/codemirror/theme/dracula.css +40 -0
  328. data/node_modules/codemirror/theme/duotone-dark.css +35 -0
  329. data/node_modules/codemirror/theme/duotone-light.css +36 -0
  330. data/node_modules/codemirror/theme/eclipse.css +23 -0
  331. data/node_modules/codemirror/theme/elegant.css +13 -0
  332. data/node_modules/codemirror/theme/erlang-dark.css +34 -0
  333. data/node_modules/codemirror/theme/gruvbox-dark.css +37 -0
  334. data/node_modules/codemirror/theme/hopscotch.css +34 -0
  335. data/node_modules/codemirror/theme/icecoder.css +43 -0
  336. data/node_modules/codemirror/theme/idea.css +42 -0
  337. data/node_modules/codemirror/theme/isotope.css +34 -0
  338. data/node_modules/codemirror/theme/lesser-dark.css +47 -0
  339. data/node_modules/codemirror/theme/liquibyte.css +95 -0
  340. data/node_modules/codemirror/theme/lucario.css +37 -0
  341. data/node_modules/codemirror/theme/material.css +53 -0
  342. data/node_modules/codemirror/theme/mbo.css +37 -0
  343. data/node_modules/codemirror/theme/mdn-like.css +46 -0
  344. data/node_modules/codemirror/theme/midnight.css +43 -0
  345. data/node_modules/codemirror/theme/monokai.css +41 -0
  346. data/node_modules/codemirror/theme/neat.css +12 -0
  347. data/node_modules/codemirror/theme/neo.css +43 -0
  348. data/node_modules/codemirror/theme/night.css +27 -0
  349. data/node_modules/codemirror/theme/oceanic-next.css +44 -0
  350. data/node_modules/codemirror/theme/panda-syntax.css +85 -0
  351. data/node_modules/codemirror/theme/paraiso-dark.css +38 -0
  352. data/node_modules/codemirror/theme/paraiso-light.css +38 -0
  353. data/node_modules/codemirror/theme/pastel-on-dark.css +52 -0
  354. data/node_modules/codemirror/theme/railscasts.css +34 -0
  355. data/node_modules/codemirror/theme/rubyblue.css +25 -0
  356. data/node_modules/codemirror/theme/seti.css +44 -0
  357. data/node_modules/codemirror/theme/shadowfox.css +52 -0
  358. data/node_modules/codemirror/theme/solarized.css +168 -0
  359. data/node_modules/codemirror/theme/ssms.css +16 -0
  360. data/node_modules/codemirror/theme/the-matrix.css +30 -0
  361. data/node_modules/codemirror/theme/tomorrow-night-bright.css +35 -0
  362. data/node_modules/codemirror/theme/tomorrow-night-eighties.css +38 -0
  363. data/node_modules/codemirror/theme/ttcn.css +64 -0
  364. data/node_modules/codemirror/theme/twilight.css +32 -0
  365. data/node_modules/codemirror/theme/vibrant-ink.css +34 -0
  366. data/node_modules/codemirror/theme/xq-dark.css +53 -0
  367. data/node_modules/codemirror/theme/xq-light.css +43 -0
  368. data/node_modules/codemirror/theme/yeti.css +44 -0
  369. data/node_modules/codemirror/theme/zenburn.css +37 -0
  370. data/node_modules/marked/.editorconfig +16 -0
  371. data/node_modules/marked/.eslintignore +1 -0
  372. data/node_modules/marked/.eslintrc.json +28 -0
  373. data/node_modules/marked/.package 2.json.icloud +0 -0
  374. data/node_modules/marked/.travis.yml +47 -0
  375. data/node_modules/marked/Makefile +15 -0
  376. data/node_modules/marked/Makefile 2 +15 -0
  377. data/node_modules/marked/README 2.md +75 -0
  378. data/node_modules/marked/README.md +75 -0
  379. data/node_modules/marked/bin/marked +199 -0
  380. data/node_modules/marked/bower.json +23 -0
  381. data/node_modules/marked/component.json +10 -0
  382. data/node_modules/marked/index.js +1 -0
  383. data/node_modules/marked/jasmine.json +11 -0
  384. data/node_modules/marked/lib/marked 2.js +1604 -0
  385. data/node_modules/marked/lib/marked.js +1604 -0
  386. data/node_modules/marked/man/marked.1 +91 -0
  387. data/node_modules/marked/man/marked.1.txt +96 -0
  388. data/node_modules/marked/marked.min.js +6 -0
  389. data/node_modules/marked/package.json +95 -0
  390. data/node_modules/simplemde/.eslintrc +23 -0
  391. data/node_modules/simplemde/.npmignore +9 -0
  392. data/node_modules/simplemde/.travis.yml +18 -0
  393. data/node_modules/simplemde/CONTRIBUTING 2.md +10 -0
  394. data/node_modules/simplemde/CONTRIBUTING.md +10 -0
  395. data/node_modules/simplemde/LICENSE +22 -0
  396. data/node_modules/simplemde/README.md +331 -0
  397. data/node_modules/simplemde/bower.json +23 -0
  398. data/node_modules/simplemde/debug/.simplemde 2.css.icloud +0 -0
  399. data/node_modules/simplemde/debug/simplemde.css +676 -0
  400. data/node_modules/simplemde/debug/simplemde.debug.js +17023 -0
  401. data/node_modules/simplemde/debug/simplemde.js +17019 -0
  402. data/node_modules/simplemde/dist/simplemde.min.css +7 -0
  403. data/node_modules/simplemde/dist/simplemde.min.js +15 -0
  404. data/node_modules/simplemde/gulpfile.js +96 -0
  405. data/node_modules/simplemde/package.json +73 -0
  406. data/node_modules/simplemde/src/css/simplemde.css +328 -0
  407. data/node_modules/simplemde/src/js/codemirror/tablist 2.js +44 -0
  408. data/node_modules/simplemde/src/js/codemirror/tablist.js +44 -0
  409. data/node_modules/simplemde/src/js/simplemde.js +2028 -0
  410. data/node_modules/typo-js/README.md +45 -0
  411. data/node_modules/typo-js/dictionaries/en_US/.en_US 2.dic.icloud +0 -0
  412. data/node_modules/typo-js/dictionaries/en_US/README.md +7 -0
  413. data/node_modules/typo-js/dictionaries/en_US/en_US.aff +201 -0
  414. data/node_modules/typo-js/dictionaries/en_US/en_US.dic +62120 -0
  415. data/node_modules/typo-js/package.json +56 -0
  416. data/node_modules/typo-js/typo.js +931 -0
  417. data/package-lock.json +40 -0
  418. data/package.json +7 -0
  419. metadata +557 -0
@@ -0,0 +1,37 @@
1
+ // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
+ // Distributed under an MIT license: https://codemirror.net/LICENSE
3
+
4
+ (function(mod) {
5
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
6
+ mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"),
7
+ require("../../addon/mode/multiplex"));
8
+ else if (typeof define == "function" && define.amd) // AMD
9
+ define(["../../lib/codemirror", "../htmlmixed/htmlmixed",
10
+ "../../addon/mode/multiplex"], mod);
11
+ else // Plain browser env
12
+ mod(CodeMirror);
13
+ })(function(CodeMirror) {
14
+ "use strict";
15
+
16
+ CodeMirror.defineMode("htmlembedded", function(config, parserConfig) {
17
+ var closeComment = parserConfig.closeComment || "--%>"
18
+ return CodeMirror.multiplexingMode(CodeMirror.getMode(config, "htmlmixed"), {
19
+ open: parserConfig.openComment || "<%--",
20
+ close: closeComment,
21
+ delimStyle: "comment",
22
+ mode: {token: function(stream) {
23
+ stream.skipTo(closeComment) || stream.skipToEnd()
24
+ return "comment"
25
+ }}
26
+ }, {
27
+ open: parserConfig.open || parserConfig.scriptStartRegex || "<%",
28
+ close: parserConfig.close || parserConfig.scriptEndRegex || "%>",
29
+ mode: CodeMirror.getMode(config, parserConfig.scriptingModeSpec)
30
+ });
31
+ }, "htmlmixed");
32
+
33
+ CodeMirror.defineMIME("application/x-ejs", {name: "htmlembedded", scriptingModeSpec:"javascript"});
34
+ CodeMirror.defineMIME("application/x-aspx", {name: "htmlembedded", scriptingModeSpec:"text/x-csharp"});
35
+ CodeMirror.defineMIME("application/x-jsp", {name: "htmlembedded", scriptingModeSpec:"text/x-java"});
36
+ CodeMirror.defineMIME("application/x-erb", {name: "htmlembedded", scriptingModeSpec:"ruby"});
37
+ });
@@ -0,0 +1,152 @@
1
+ // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
+ // Distributed under an MIT license: https://codemirror.net/LICENSE
3
+
4
+ (function(mod) {
5
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
6
+ mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript"), require("../css/css"));
7
+ else if (typeof define == "function" && define.amd) // AMD
8
+ define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript", "../css/css"], mod);
9
+ else // Plain browser env
10
+ mod(CodeMirror);
11
+ })(function(CodeMirror) {
12
+ "use strict";
13
+
14
+ var defaultTags = {
15
+ script: [
16
+ ["lang", /(javascript|babel)/i, "javascript"],
17
+ ["type", /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i, "javascript"],
18
+ ["type", /./, "text/plain"],
19
+ [null, null, "javascript"]
20
+ ],
21
+ style: [
22
+ ["lang", /^css$/i, "css"],
23
+ ["type", /^(text\/)?(x-)?(stylesheet|css)$/i, "css"],
24
+ ["type", /./, "text/plain"],
25
+ [null, null, "css"]
26
+ ]
27
+ };
28
+
29
+ function maybeBackup(stream, pat, style) {
30
+ var cur = stream.current(), close = cur.search(pat);
31
+ if (close > -1) {
32
+ stream.backUp(cur.length - close);
33
+ } else if (cur.match(/<\/?$/)) {
34
+ stream.backUp(cur.length);
35
+ if (!stream.match(pat, false)) stream.match(cur);
36
+ }
37
+ return style;
38
+ }
39
+
40
+ var attrRegexpCache = {};
41
+ function getAttrRegexp(attr) {
42
+ var regexp = attrRegexpCache[attr];
43
+ if (regexp) return regexp;
44
+ return attrRegexpCache[attr] = new RegExp("\\s+" + attr + "\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*");
45
+ }
46
+
47
+ function getAttrValue(text, attr) {
48
+ var match = text.match(getAttrRegexp(attr))
49
+ return match ? /^\s*(.*?)\s*$/.exec(match[2])[1] : ""
50
+ }
51
+
52
+ function getTagRegexp(tagName, anchored) {
53
+ return new RegExp((anchored ? "^" : "") + "<\/\s*" + tagName + "\s*>", "i");
54
+ }
55
+
56
+ function addTags(from, to) {
57
+ for (var tag in from) {
58
+ var dest = to[tag] || (to[tag] = []);
59
+ var source = from[tag];
60
+ for (var i = source.length - 1; i >= 0; i--)
61
+ dest.unshift(source[i])
62
+ }
63
+ }
64
+
65
+ function findMatchingMode(tagInfo, tagText) {
66
+ for (var i = 0; i < tagInfo.length; i++) {
67
+ var spec = tagInfo[i];
68
+ if (!spec[0] || spec[1].test(getAttrValue(tagText, spec[0]))) return spec[2];
69
+ }
70
+ }
71
+
72
+ CodeMirror.defineMode("htmlmixed", function (config, parserConfig) {
73
+ var htmlMode = CodeMirror.getMode(config, {
74
+ name: "xml",
75
+ htmlMode: true,
76
+ multilineTagIndentFactor: parserConfig.multilineTagIndentFactor,
77
+ multilineTagIndentPastTag: parserConfig.multilineTagIndentPastTag
78
+ });
79
+
80
+ var tags = {};
81
+ var configTags = parserConfig && parserConfig.tags, configScript = parserConfig && parserConfig.scriptTypes;
82
+ addTags(defaultTags, tags);
83
+ if (configTags) addTags(configTags, tags);
84
+ if (configScript) for (var i = configScript.length - 1; i >= 0; i--)
85
+ tags.script.unshift(["type", configScript[i].matches, configScript[i].mode])
86
+
87
+ function html(stream, state) {
88
+ var style = htmlMode.token(stream, state.htmlState), tag = /\btag\b/.test(style), tagName
89
+ if (tag && !/[<>\s\/]/.test(stream.current()) &&
90
+ (tagName = state.htmlState.tagName && state.htmlState.tagName.toLowerCase()) &&
91
+ tags.hasOwnProperty(tagName)) {
92
+ state.inTag = tagName + " "
93
+ } else if (state.inTag && tag && />$/.test(stream.current())) {
94
+ var inTag = /^([\S]+) (.*)/.exec(state.inTag)
95
+ state.inTag = null
96
+ var modeSpec = stream.current() == ">" && findMatchingMode(tags[inTag[1]], inTag[2])
97
+ var mode = CodeMirror.getMode(config, modeSpec)
98
+ var endTagA = getTagRegexp(inTag[1], true), endTag = getTagRegexp(inTag[1], false);
99
+ state.token = function (stream, state) {
100
+ if (stream.match(endTagA, false)) {
101
+ state.token = html;
102
+ state.localState = state.localMode = null;
103
+ return null;
104
+ }
105
+ return maybeBackup(stream, endTag, state.localMode.token(stream, state.localState));
106
+ };
107
+ state.localMode = mode;
108
+ state.localState = CodeMirror.startState(mode, htmlMode.indent(state.htmlState, ""));
109
+ } else if (state.inTag) {
110
+ state.inTag += stream.current()
111
+ if (stream.eol()) state.inTag += " "
112
+ }
113
+ return style;
114
+ };
115
+
116
+ return {
117
+ startState: function () {
118
+ var state = CodeMirror.startState(htmlMode);
119
+ return {token: html, inTag: null, localMode: null, localState: null, htmlState: state};
120
+ },
121
+
122
+ copyState: function (state) {
123
+ var local;
124
+ if (state.localState) {
125
+ local = CodeMirror.copyState(state.localMode, state.localState);
126
+ }
127
+ return {token: state.token, inTag: state.inTag,
128
+ localMode: state.localMode, localState: local,
129
+ htmlState: CodeMirror.copyState(htmlMode, state.htmlState)};
130
+ },
131
+
132
+ token: function (stream, state) {
133
+ return state.token(stream, state);
134
+ },
135
+
136
+ indent: function (state, textAfter, line) {
137
+ if (!state.localMode || /^\s*<\//.test(textAfter))
138
+ return htmlMode.indent(state.htmlState, textAfter);
139
+ else if (state.localMode.indent)
140
+ return state.localMode.indent(state.localState, textAfter, line);
141
+ else
142
+ return CodeMirror.Pass;
143
+ },
144
+
145
+ innerMode: function (state) {
146
+ return {state: state.localState || state.htmlState, mode: state.localMode || htmlMode};
147
+ }
148
+ };
149
+ }, "xml", "javascript", "css");
150
+
151
+ CodeMirror.defineMIME("text/html", "htmlmixed");
152
+ });
@@ -0,0 +1,113 @@
1
+ // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
+ // Distributed under an MIT license: https://codemirror.net/LICENSE
3
+
4
+ (function(mod) {
5
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
6
+ mod(require("../../lib/codemirror"));
7
+ else if (typeof define == "function" && define.amd) // AMD
8
+ define(["../../lib/codemirror"], mod);
9
+ else // Plain browser env
10
+ mod(CodeMirror);
11
+ })(function(CodeMirror) {
12
+ "use strict";
13
+
14
+ CodeMirror.defineMode("http", function() {
15
+ function failFirstLine(stream, state) {
16
+ stream.skipToEnd();
17
+ state.cur = header;
18
+ return "error";
19
+ }
20
+
21
+ function start(stream, state) {
22
+ if (stream.match(/^HTTP\/\d\.\d/)) {
23
+ state.cur = responseStatusCode;
24
+ return "keyword";
25
+ } else if (stream.match(/^[A-Z]+/) && /[ \t]/.test(stream.peek())) {
26
+ state.cur = requestPath;
27
+ return "keyword";
28
+ } else {
29
+ return failFirstLine(stream, state);
30
+ }
31
+ }
32
+
33
+ function responseStatusCode(stream, state) {
34
+ var code = stream.match(/^\d+/);
35
+ if (!code) return failFirstLine(stream, state);
36
+
37
+ state.cur = responseStatusText;
38
+ var status = Number(code[0]);
39
+ if (status >= 100 && status < 200) {
40
+ return "positive informational";
41
+ } else if (status >= 200 && status < 300) {
42
+ return "positive success";
43
+ } else if (status >= 300 && status < 400) {
44
+ return "positive redirect";
45
+ } else if (status >= 400 && status < 500) {
46
+ return "negative client-error";
47
+ } else if (status >= 500 && status < 600) {
48
+ return "negative server-error";
49
+ } else {
50
+ return "error";
51
+ }
52
+ }
53
+
54
+ function responseStatusText(stream, state) {
55
+ stream.skipToEnd();
56
+ state.cur = header;
57
+ return null;
58
+ }
59
+
60
+ function requestPath(stream, state) {
61
+ stream.eatWhile(/\S/);
62
+ state.cur = requestProtocol;
63
+ return "string-2";
64
+ }
65
+
66
+ function requestProtocol(stream, state) {
67
+ if (stream.match(/^HTTP\/\d\.\d$/)) {
68
+ state.cur = header;
69
+ return "keyword";
70
+ } else {
71
+ return failFirstLine(stream, state);
72
+ }
73
+ }
74
+
75
+ function header(stream) {
76
+ if (stream.sol() && !stream.eat(/[ \t]/)) {
77
+ if (stream.match(/^.*?:/)) {
78
+ return "atom";
79
+ } else {
80
+ stream.skipToEnd();
81
+ return "error";
82
+ }
83
+ } else {
84
+ stream.skipToEnd();
85
+ return "string";
86
+ }
87
+ }
88
+
89
+ function body(stream) {
90
+ stream.skipToEnd();
91
+ return null;
92
+ }
93
+
94
+ return {
95
+ token: function(stream, state) {
96
+ var cur = state.cur;
97
+ if (cur != header && cur != body && stream.eatSpace()) return null;
98
+ return cur(stream, state);
99
+ },
100
+
101
+ blankLine: function(state) {
102
+ state.cur = body;
103
+ },
104
+
105
+ startState: function() {
106
+ return {cur: start};
107
+ }
108
+ };
109
+ });
110
+
111
+ CodeMirror.defineMIME("message/http", "http");
112
+
113
+ });
@@ -0,0 +1,290 @@
1
+ // CodeMirror, copyright (c) by Marijn Haverbeke and others
2
+ // Distributed under an MIT license: https://codemirror.net/LICENSE
3
+
4
+ (function(mod) {
5
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
6
+ mod(require("../../lib/codemirror"));
7
+ else if (typeof define == "function" && define.amd) // AMD
8
+ define(["../../lib/codemirror"], mod);
9
+ else // Plain browser env
10
+ mod(CodeMirror);
11
+ })(function(CodeMirror) {
12
+ "use strict";
13
+
14
+ function wordRegexp(words) {
15
+ return new RegExp('^((' + words.join(')|(') + '))\\b', 'i');
16
+ };
17
+
18
+ var builtinArray = [
19
+ 'a_correlate', 'abs', 'acos', 'adapt_hist_equal', 'alog',
20
+ 'alog2', 'alog10', 'amoeba', 'annotate', 'app_user_dir',
21
+ 'app_user_dir_query', 'arg_present', 'array_equal', 'array_indices',
22
+ 'arrow', 'ascii_template', 'asin', 'assoc', 'atan',
23
+ 'axis', 'axis', 'bandpass_filter', 'bandreject_filter', 'barplot',
24
+ 'bar_plot', 'beseli', 'beselj', 'beselk', 'besely',
25
+ 'beta', 'biginteger', 'bilinear', 'bin_date', 'binary_template',
26
+ 'bindgen', 'binomial', 'bit_ffs', 'bit_population', 'blas_axpy',
27
+ 'blk_con', 'boolarr', 'boolean', 'boxplot', 'box_cursor',
28
+ 'breakpoint', 'broyden', 'bubbleplot', 'butterworth', 'bytarr',
29
+ 'byte', 'byteorder', 'bytscl', 'c_correlate', 'calendar',
30
+ 'caldat', 'call_external', 'call_function', 'call_method',
31
+ 'call_procedure', 'canny', 'catch', 'cd', 'cdf', 'ceil',
32
+ 'chebyshev', 'check_math', 'chisqr_cvf', 'chisqr_pdf', 'choldc',
33
+ 'cholsol', 'cindgen', 'cir_3pnt', 'clipboard', 'close',
34
+ 'clust_wts', 'cluster', 'cluster_tree', 'cmyk_convert', 'code_coverage',
35
+ 'color_convert', 'color_exchange', 'color_quan', 'color_range_map',
36
+ 'colorbar', 'colorize_sample', 'colormap_applicable',
37
+ 'colormap_gradient', 'colormap_rotation', 'colortable',
38
+ 'comfit', 'command_line_args', 'common', 'compile_opt', 'complex',
39
+ 'complexarr', 'complexround', 'compute_mesh_normals', 'cond', 'congrid',
40
+ 'conj', 'constrained_min', 'contour', 'contour', 'convert_coord',
41
+ 'convol', 'convol_fft', 'coord2to3', 'copy_lun', 'correlate',
42
+ 'cos', 'cosh', 'cpu', 'cramer', 'createboxplotdata',
43
+ 'create_cursor', 'create_struct', 'create_view', 'crossp', 'crvlength',
44
+ 'ct_luminance', 'cti_test', 'cursor', 'curvefit', 'cv_coord',
45
+ 'cvttobm', 'cw_animate', 'cw_animate_getp', 'cw_animate_load',
46
+ 'cw_animate_run', 'cw_arcball', 'cw_bgroup', 'cw_clr_index',
47
+ 'cw_colorsel', 'cw_defroi', 'cw_field', 'cw_filesel', 'cw_form',
48
+ 'cw_fslider', 'cw_light_editor', 'cw_light_editor_get',
49
+ 'cw_light_editor_set', 'cw_orient', 'cw_palette_editor',
50
+ 'cw_palette_editor_get', 'cw_palette_editor_set', 'cw_pdmenu',
51
+ 'cw_rgbslider', 'cw_tmpl', 'cw_zoom', 'db_exists',
52
+ 'dblarr', 'dcindgen', 'dcomplex', 'dcomplexarr', 'define_key',
53
+ 'define_msgblk', 'define_msgblk_from_file', 'defroi', 'defsysv',
54
+ 'delvar', 'dendro_plot', 'dendrogram', 'deriv', 'derivsig',
55
+ 'determ', 'device', 'dfpmin', 'diag_matrix', 'dialog_dbconnect',
56
+ 'dialog_message', 'dialog_pickfile', 'dialog_printersetup',
57
+ 'dialog_printjob', 'dialog_read_image',
58
+ 'dialog_write_image', 'dictionary', 'digital_filter', 'dilate', 'dindgen',
59
+ 'dissolve', 'dist', 'distance_measure', 'dlm_load', 'dlm_register',
60
+ 'doc_library', 'double', 'draw_roi', 'edge_dog', 'efont',
61
+ 'eigenql', 'eigenvec', 'ellipse', 'elmhes', 'emboss',
62
+ 'empty', 'enable_sysrtn', 'eof', 'eos', 'erase',
63
+ 'erf', 'erfc', 'erfcx', 'erode', 'errorplot',
64
+ 'errplot', 'estimator_filter', 'execute', 'exit', 'exp',
65
+ 'expand', 'expand_path', 'expint', 'extrac', 'extract_slice',
66
+ 'f_cvf', 'f_pdf', 'factorial', 'fft', 'file_basename',
67
+ 'file_chmod', 'file_copy', 'file_delete', 'file_dirname',
68
+ 'file_expand_path', 'file_gunzip', 'file_gzip', 'file_info',
69
+ 'file_lines', 'file_link', 'file_mkdir', 'file_move',
70
+ 'file_poll_input', 'file_readlink', 'file_same',
71
+ 'file_search', 'file_tar', 'file_test', 'file_untar', 'file_unzip',
72
+ 'file_which', 'file_zip', 'filepath', 'findgen', 'finite',
73
+ 'fix', 'flick', 'float', 'floor', 'flow3',
74
+ 'fltarr', 'flush', 'format_axis_values', 'forward_function', 'free_lun',
75
+ 'fstat', 'fulstr', 'funct', 'function', 'fv_test',
76
+ 'fx_root', 'fz_roots', 'gamma', 'gamma_ct', 'gauss_cvf',
77
+ 'gauss_pdf', 'gauss_smooth', 'gauss2dfit', 'gaussfit',
78
+ 'gaussian_function', 'gaussint', 'get_drive_list', 'get_dxf_objects',
79
+ 'get_kbrd', 'get_login_info',
80
+ 'get_lun', 'get_screen_size', 'getenv', 'getwindows', 'greg2jul',
81
+ 'grib', 'grid_input', 'grid_tps', 'grid3', 'griddata',
82
+ 'gs_iter', 'h_eq_ct', 'h_eq_int', 'hanning', 'hash',
83
+ 'hdf', 'hdf5', 'heap_free', 'heap_gc', 'heap_nosave',
84
+ 'heap_refcount', 'heap_save', 'help', 'hilbert', 'hist_2d',
85
+ 'hist_equal', 'histogram', 'hls', 'hough', 'hqr',
86
+ 'hsv', 'i18n_multibytetoutf8',
87
+ 'i18n_multibytetowidechar', 'i18n_utf8tomultibyte',
88
+ 'i18n_widechartomultibyte',
89
+ 'ibeta', 'icontour', 'iconvertcoord', 'idelete', 'identity',
90
+ 'idl_base64', 'idl_container', 'idl_validname',
91
+ 'idlexbr_assistant', 'idlitsys_createtool',
92
+ 'idlunit', 'iellipse', 'igamma', 'igetcurrent', 'igetdata',
93
+ 'igetid', 'igetproperty', 'iimage', 'image', 'image_cont',
94
+ 'image_statistics', 'image_threshold', 'imaginary', 'imap', 'indgen',
95
+ 'int_2d', 'int_3d', 'int_tabulated', 'intarr', 'interpol',
96
+ 'interpolate', 'interval_volume', 'invert', 'ioctl', 'iopen',
97
+ 'ir_filter', 'iplot', 'ipolygon', 'ipolyline', 'iputdata',
98
+ 'iregister', 'ireset', 'iresolve', 'irotate', 'isa',
99
+ 'isave', 'iscale', 'isetcurrent', 'isetproperty', 'ishft',
100
+ 'isocontour', 'isosurface', 'isurface', 'itext', 'itranslate',
101
+ 'ivector', 'ivolume', 'izoom', 'journal', 'json_parse',
102
+ 'json_serialize', 'jul2greg', 'julday', 'keyword_set', 'krig2d',
103
+ 'kurtosis', 'kw_test', 'l64indgen', 'la_choldc', 'la_cholmprove',
104
+ 'la_cholsol', 'la_determ', 'la_eigenproblem', 'la_eigenql', 'la_eigenvec',
105
+ 'la_elmhes', 'la_gm_linear_model', 'la_hqr', 'la_invert',
106
+ 'la_least_square_equality', 'la_least_squares', 'la_linear_equation',
107
+ 'la_ludc', 'la_lumprove', 'la_lusol',
108
+ 'la_svd', 'la_tridc', 'la_trimprove', 'la_triql', 'la_trired',
109
+ 'la_trisol', 'label_date', 'label_region', 'ladfit', 'laguerre',
110
+ 'lambda', 'lambdap', 'lambertw', 'laplacian', 'least_squares_filter',
111
+ 'leefilt', 'legend', 'legendre', 'linbcg', 'lindgen',
112
+ 'linfit', 'linkimage', 'list', 'll_arc_distance', 'lmfit',
113
+ 'lmgr', 'lngamma', 'lnp_test', 'loadct', 'locale_get',
114
+ 'logical_and', 'logical_or', 'logical_true', 'lon64arr', 'lonarr',
115
+ 'long', 'long64', 'lsode', 'lu_complex', 'ludc',
116
+ 'lumprove', 'lusol', 'm_correlate', 'machar', 'make_array',
117
+ 'make_dll', 'make_rt', 'map', 'mapcontinents', 'mapgrid',
118
+ 'map_2points', 'map_continents', 'map_grid', 'map_image', 'map_patch',
119
+ 'map_proj_forward', 'map_proj_image', 'map_proj_info',
120
+ 'map_proj_init', 'map_proj_inverse',
121
+ 'map_set', 'matrix_multiply', 'matrix_power', 'max', 'md_test',
122
+ 'mean', 'meanabsdev', 'mean_filter', 'median', 'memory',
123
+ 'mesh_clip', 'mesh_decimate', 'mesh_issolid',
124
+ 'mesh_merge', 'mesh_numtriangles',
125
+ 'mesh_obj', 'mesh_smooth', 'mesh_surfacearea',
126
+ 'mesh_validate', 'mesh_volume',
127
+ 'message', 'min', 'min_curve_surf', 'mk_html_help', 'modifyct',
128
+ 'moment', 'morph_close', 'morph_distance',
129
+ 'morph_gradient', 'morph_hitormiss',
130
+ 'morph_open', 'morph_thin', 'morph_tophat', 'multi', 'n_elements',
131
+ 'n_params', 'n_tags', 'ncdf', 'newton', 'noise_hurl',
132
+ 'noise_pick', 'noise_scatter', 'noise_slur', 'norm', 'obj_class',
133
+ 'obj_destroy', 'obj_hasmethod', 'obj_isa', 'obj_new', 'obj_valid',
134
+ 'objarr', 'on_error', 'on_ioerror', 'online_help', 'openr',
135
+ 'openu', 'openw', 'oplot', 'oploterr', 'orderedhash',
136
+ 'p_correlate', 'parse_url', 'particle_trace', 'path_cache', 'path_sep',
137
+ 'pcomp', 'plot', 'plot3d', 'plot', 'plot_3dbox',
138
+ 'plot_field', 'ploterr', 'plots', 'polar_contour', 'polar_surface',
139
+ 'polyfill', 'polyshade', 'pnt_line', 'point_lun', 'polarplot',
140
+ 'poly', 'poly_2d', 'poly_area', 'poly_fit', 'polyfillv',
141
+ 'polygon', 'polyline', 'polywarp', 'popd', 'powell',
142
+ 'pref_commit', 'pref_get', 'pref_set', 'prewitt', 'primes',
143
+ 'print', 'printf', 'printd', 'pro', 'product',
144
+ 'profile', 'profiler', 'profiles', 'project_vol', 'ps_show_fonts',
145
+ 'psafm', 'pseudo', 'ptr_free', 'ptr_new', 'ptr_valid',
146
+ 'ptrarr', 'pushd', 'qgrid3', 'qhull', 'qromb',
147
+ 'qromo', 'qsimp', 'query_*', 'query_ascii', 'query_bmp',
148
+ 'query_csv', 'query_dicom', 'query_gif', 'query_image', 'query_jpeg',
149
+ 'query_jpeg2000', 'query_mrsid', 'query_pict', 'query_png', 'query_ppm',
150
+ 'query_srf', 'query_tiff', 'query_video', 'query_wav', 'r_correlate',
151
+ 'r_test', 'radon', 'randomn', 'randomu', 'ranks',
152
+ 'rdpix', 'read', 'readf', 'read_ascii', 'read_binary',
153
+ 'read_bmp', 'read_csv', 'read_dicom', 'read_gif', 'read_image',
154
+ 'read_interfile', 'read_jpeg', 'read_jpeg2000', 'read_mrsid', 'read_pict',
155
+ 'read_png', 'read_ppm', 'read_spr', 'read_srf', 'read_sylk',
156
+ 'read_tiff', 'read_video', 'read_wav', 'read_wave', 'read_x11_bitmap',
157
+ 'read_xwd', 'reads', 'readu', 'real_part', 'rebin',
158
+ 'recall_commands', 'recon3', 'reduce_colors', 'reform', 'region_grow',
159
+ 'register_cursor', 'regress', 'replicate',
160
+ 'replicate_inplace', 'resolve_all',
161
+ 'resolve_routine', 'restore', 'retall', 'return', 'reverse',
162
+ 'rk4', 'roberts', 'rot', 'rotate', 'round',
163
+ 'routine_filepath', 'routine_info', 'rs_test', 's_test', 'save',
164
+ 'savgol', 'scale3', 'scale3d', 'scatterplot', 'scatterplot3d',
165
+ 'scope_level', 'scope_traceback', 'scope_varfetch',
166
+ 'scope_varname', 'search2d',
167
+ 'search3d', 'sem_create', 'sem_delete', 'sem_lock', 'sem_release',
168
+ 'set_plot', 'set_shading', 'setenv', 'sfit', 'shade_surf',
169
+ 'shade_surf_irr', 'shade_volume', 'shift', 'shift_diff', 'shmdebug',
170
+ 'shmmap', 'shmunmap', 'shmvar', 'show3', 'showfont',
171
+ 'signum', 'simplex', 'sin', 'sindgen', 'sinh',
172
+ 'size', 'skewness', 'skip_lun', 'slicer3', 'slide_image',
173
+ 'smooth', 'sobel', 'socket', 'sort', 'spawn',
174
+ 'sph_4pnt', 'sph_scat', 'spher_harm', 'spl_init', 'spl_interp',
175
+ 'spline', 'spline_p', 'sprsab', 'sprsax', 'sprsin',
176
+ 'sprstp', 'sqrt', 'standardize', 'stddev', 'stop',
177
+ 'strarr', 'strcmp', 'strcompress', 'streamline', 'streamline',
178
+ 'stregex', 'stretch', 'string', 'strjoin', 'strlen',
179
+ 'strlowcase', 'strmatch', 'strmessage', 'strmid', 'strpos',
180
+ 'strput', 'strsplit', 'strtrim', 'struct_assign', 'struct_hide',
181
+ 'strupcase', 'surface', 'surface', 'surfr', 'svdc',
182
+ 'svdfit', 'svsol', 'swap_endian', 'swap_endian_inplace', 'symbol',
183
+ 'systime', 't_cvf', 't_pdf', 't3d', 'tag_names',
184
+ 'tan', 'tanh', 'tek_color', 'temporary', 'terminal_size',
185
+ 'tetra_clip', 'tetra_surface', 'tetra_volume', 'text', 'thin',
186
+ 'thread', 'threed', 'tic', 'time_test2', 'timegen',
187
+ 'timer', 'timestamp', 'timestamptovalues', 'tm_test', 'toc',
188
+ 'total', 'trace', 'transpose', 'tri_surf', 'triangulate',
189
+ 'trigrid', 'triql', 'trired', 'trisol', 'truncate_lun',
190
+ 'ts_coef', 'ts_diff', 'ts_fcast', 'ts_smooth', 'tv',
191
+ 'tvcrs', 'tvlct', 'tvrd', 'tvscl', 'typename',
192
+ 'uindgen', 'uint', 'uintarr', 'ul64indgen', 'ulindgen',
193
+ 'ulon64arr', 'ulonarr', 'ulong', 'ulong64', 'uniq',
194
+ 'unsharp_mask', 'usersym', 'value_locate', 'variance', 'vector',
195
+ 'vector_field', 'vel', 'velovect', 'vert_t3d', 'voigt',
196
+ 'volume', 'voronoi', 'voxel_proj', 'wait', 'warp_tri',
197
+ 'watershed', 'wdelete', 'wf_draw', 'where', 'widget_base',
198
+ 'widget_button', 'widget_combobox', 'widget_control',
199
+ 'widget_displaycontextmenu', 'widget_draw',
200
+ 'widget_droplist', 'widget_event', 'widget_info',
201
+ 'widget_label', 'widget_list',
202
+ 'widget_propertysheet', 'widget_slider', 'widget_tab',
203
+ 'widget_table', 'widget_text',
204
+ 'widget_tree', 'widget_tree_move', 'widget_window',
205
+ 'wiener_filter', 'window',
206
+ 'window', 'write_bmp', 'write_csv', 'write_gif', 'write_image',
207
+ 'write_jpeg', 'write_jpeg2000', 'write_nrif', 'write_pict', 'write_png',
208
+ 'write_ppm', 'write_spr', 'write_srf', 'write_sylk', 'write_tiff',
209
+ 'write_video', 'write_wav', 'write_wave', 'writeu', 'wset',
210
+ 'wshow', 'wtn', 'wv_applet', 'wv_cwt', 'wv_cw_wavelet',
211
+ 'wv_denoise', 'wv_dwt', 'wv_fn_coiflet',
212
+ 'wv_fn_daubechies', 'wv_fn_gaussian',
213
+ 'wv_fn_haar', 'wv_fn_morlet', 'wv_fn_paul',
214
+ 'wv_fn_symlet', 'wv_import_data',
215
+ 'wv_import_wavelet', 'wv_plot3d_wps', 'wv_plot_multires',
216
+ 'wv_pwt', 'wv_tool_denoise',
217
+ 'xbm_edit', 'xdisplayfile', 'xdxf', 'xfont', 'xinteranimate',
218
+ 'xloadct', 'xmanager', 'xmng_tmpl', 'xmtool', 'xobjview',
219
+ 'xobjview_rotate', 'xobjview_write_image',
220
+ 'xpalette', 'xpcolor', 'xplot3d',
221
+ 'xregistered', 'xroi', 'xsq_test', 'xsurface', 'xvaredit',
222
+ 'xvolume', 'xvolume_rotate', 'xvolume_write_image',
223
+ 'xyouts', 'zlib_compress', 'zlib_uncompress', 'zoom', 'zoom_24'
224
+ ];
225
+ var builtins = wordRegexp(builtinArray);
226
+
227
+ var keywordArray = [
228
+ 'begin', 'end', 'endcase', 'endfor',
229
+ 'endwhile', 'endif', 'endrep', 'endforeach',
230
+ 'break', 'case', 'continue', 'for',
231
+ 'foreach', 'goto', 'if', 'then', 'else',
232
+ 'repeat', 'until', 'switch', 'while',
233
+ 'do', 'pro', 'function'
234
+ ];
235
+ var keywords = wordRegexp(keywordArray);
236
+
237
+ CodeMirror.registerHelper("hintWords", "idl", builtinArray.concat(keywordArray));
238
+
239
+ var identifiers = new RegExp('^[_a-z\xa1-\uffff][_a-z0-9\xa1-\uffff]*', 'i');
240
+
241
+ var singleOperators = /[+\-*&=<>\/@#~$]/;
242
+ var boolOperators = new RegExp('(and|or|eq|lt|le|gt|ge|ne|not)', 'i');
243
+
244
+ function tokenBase(stream) {
245
+ // whitespaces
246
+ if (stream.eatSpace()) return null;
247
+
248
+ // Handle one line Comments
249
+ if (stream.match(';')) {
250
+ stream.skipToEnd();
251
+ return 'comment';
252
+ }
253
+
254
+ // Handle Number Literals
255
+ if (stream.match(/^[0-9\.+-]/, false)) {
256
+ if (stream.match(/^[+-]?0x[0-9a-fA-F]+/))
257
+ return 'number';
258
+ if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))
259
+ return 'number';
260
+ if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))
261
+ return 'number';
262
+ }
263
+
264
+ // Handle Strings
265
+ if (stream.match(/^"([^"]|(""))*"/)) { return 'string'; }
266
+ if (stream.match(/^'([^']|(''))*'/)) { return 'string'; }
267
+
268
+ // Handle words
269
+ if (stream.match(keywords)) { return 'keyword'; }
270
+ if (stream.match(builtins)) { return 'builtin'; }
271
+ if (stream.match(identifiers)) { return 'variable'; }
272
+
273
+ if (stream.match(singleOperators) || stream.match(boolOperators)) {
274
+ return 'operator'; }
275
+
276
+ // Handle non-detected items
277
+ stream.next();
278
+ return null;
279
+ };
280
+
281
+ CodeMirror.defineMode('idl', function() {
282
+ return {
283
+ token: function(stream) {
284
+ return tokenBase(stream);
285
+ }
286
+ };
287
+ });
288
+
289
+ CodeMirror.defineMIME('text/x-idl', 'idl');
290
+ });