burp_cms 1.3.13 → 1.3.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -2
  3. data/app/assets/images/burp/add-image-2.jpg +0 -0
  4. data/app/assets/images/burp/add-image-3.jpg +0 -0
  5. data/app/assets/images/burp/add-image-4.jpg +0 -0
  6. data/app/assets/images/burp/enter-page-edit-mode-4.jpg +0 -0
  7. data/app/assets/images/burp/remove-image-2.jpg +0 -0
  8. data/app/assets/images/burp/remove-image-3.jpg +0 -0
  9. data/app/assets/images/burp/remove-image-4.jpg +0 -0
  10. data/app/assets/images/burp/remove-image-5.jpg +0 -0
  11. data/app/views/burp/static/help.html.erb +8 -8
  12. data/lib/burp/version.rb +1 -1
  13. metadata +95 -234
  14. data/app/assets/images/burp/add-image-2.png +0 -0
  15. data/app/assets/images/burp/add-image-3.png +0 -0
  16. data/app/assets/images/burp/add-image-4.png +0 -0
  17. data/app/assets/images/burp/enter-page-edit-mode-4.png +0 -0
  18. data/app/assets/images/burp/remove-image-2.png +0 -0
  19. data/app/assets/images/burp/remove-image-3.png +0 -0
  20. data/app/assets/images/burp/remove-image-4.png +0 -0
  21. data/app/assets/images/burp/remove-image-5.png +0 -0
  22. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/README.md +0 -8
  23. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/activeline.html +0 -72
  24. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/changemode.html +0 -50
  25. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/closetag.html +0 -65
  26. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/complete.html +0 -70
  27. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/emacs.html +0 -59
  28. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/folding.html +0 -61
  29. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/formatting.html +0 -80
  30. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/fullscreen.html +0 -152
  31. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/loadmode.html +0 -39
  32. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html +0 -52
  33. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html +0 -37
  34. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/multiplex.html +0 -59
  35. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/mustache.html +0 -57
  36. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/preview.html +0 -76
  37. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/resize.html +0 -41
  38. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/runmode.html +0 -49
  39. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/search.html +0 -83
  40. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/theme.html +0 -78
  41. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/vim.html +0 -50
  42. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/visibletabs.html +0 -61
  43. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon.png +0 -0
  44. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon_vector.svg +0 -153
  45. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/compress.html +0 -148
  46. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/docs.css +0 -154
  47. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/internals.html +0 -494
  48. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/manual.html +0 -1128
  49. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/oldrelease.html +0 -267
  50. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/reporting.html +0 -57
  51. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/upgrade_v2.2.html +0 -95
  52. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/index.html +0 -417
  53. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/clike.js +0 -271
  54. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/index.html +0 -101
  55. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/scala.html +0 -765
  56. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/clojure.js +0 -207
  57. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/index.html +0 -66
  58. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/LICENSE +0 -22
  59. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/coffeescript.js +0 -347
  60. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/index.html +0 -727
  61. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/diff.js +0 -32
  62. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/index.html +0 -104
  63. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/ecl.js +0 -203
  64. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/index.html +0 -42
  65. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/erlang.js +0 -251
  66. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/index.html +0 -61
  67. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/gfm.js +0 -144
  68. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/index.html +0 -47
  69. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/go.js +0 -170
  70. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/index.html +0 -72
  71. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/groovy.js +0 -210
  72. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/index.html +0 -71
  73. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/haskell.js +0 -242
  74. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/index.html +0 -60
  75. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/index.html +0 -37
  76. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/jinja2.js +0 -42
  77. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/index.html +0 -618
  78. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/less.js +0 -232
  79. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/index.html +0 -72
  80. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/lua.js +0 -140
  81. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/index.html +0 -41
  82. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/mysql.js +0 -188
  83. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/index.html +0 -32
  84. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/ntriples.js +0 -172
  85. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/LICENSE +0 -7
  86. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/index.html +0 -48
  87. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/pascal.js +0 -94
  88. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/LICENSE +0 -19
  89. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/index.html +0 -62
  90. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/perl.js +0 -816
  91. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/index.html +0 -48
  92. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/php.js +0 -150
  93. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/index.html +0 -42
  94. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/pig.js +0 -172
  95. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html +0 -62
  96. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/plsql.js +0 -217
  97. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/index.html +0 -40
  98. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/properties.js +0 -63
  99. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/LICENSE.txt +0 -21
  100. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/index.html +0 -122
  101. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/python.js +0 -338
  102. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/LICENSE +0 -24
  103. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/index.html +0 -73
  104. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/r.js +0 -141
  105. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/changes.js +0 -19
  106. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/index.html +0 -53
  107. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/index.html +0 -99
  108. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.css +0 -5
  109. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.js +0 -66
  110. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/index.html +0 -525
  111. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/rst.js +0 -326
  112. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/LICENSE +0 -24
  113. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/index.html +0 -171
  114. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/ruby.js +0 -195
  115. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/index.html +0 -48
  116. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/rust.js +0 -432
  117. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/index.html +0 -64
  118. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/scheme.js +0 -230
  119. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/index.html +0 -50
  120. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/shell.js +0 -103
  121. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/index.html +0 -55
  122. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/smalltalk.js +0 -139
  123. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/index.html +0 -82
  124. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/smarty.js +0 -148
  125. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/index.html +0 -40
  126. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/sparql.js +0 -143
  127. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/index.html +0 -95
  128. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/stex.js +0 -182
  129. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/test.html +0 -263
  130. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/index.html +0 -140
  131. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.css +0 -14
  132. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.js +0 -384
  133. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/index.html +0 -82
  134. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.css +0 -26
  135. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.js +0 -316
  136. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/index.html +0 -42
  137. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/vbscript.js +0 -26
  138. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/index.html +0 -103
  139. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/velocity.js +0 -146
  140. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/index.html +0 -210
  141. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/verilog.js +0 -194
  142. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/LICENSE +0 -20
  143. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/index.html +0 -222
  144. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/index.html +0 -27
  145. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testBase.js +0 -42
  146. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testEmptySequenceKeyword.js +0 -16
  147. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testMultiAttr.js +0 -16
  148. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testNamespaces.js +0 -91
  149. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testProcessingInstructions.js +0 -16
  150. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testQuotes.js +0 -19
  151. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/xquery.js +0 -448
  152. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/index.html +0 -67
  153. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/yaml.js +0 -95
  154. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/index.html +0 -28
  155. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.css +0 -22
  156. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.js +0 -164
  157. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/test.js +0 -344
  158. data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome-Vectors.pdf +11 -3176
  159. data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome.ttf +0 -0
  160. data/app/assets/packages/burp/editing/dep/FontAwesome/README.md +0 -18
  161. data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome-ie7.css +0 -645
  162. data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome.less +0 -309
  163. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome-ie7.css +0 -213
  164. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome.css +0 -303
  165. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/prettify.css +0 -30
  166. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/site.css +0 -4904
  167. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.eot +0 -0
  168. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.svg +0 -255
  169. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.ttf +0 -0
  170. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.woff +0 -0
  171. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.eot +0 -0
  172. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.ttf +0 -0
  173. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.eot +0 -0
  174. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.ttf +0 -0
  175. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.eot +0 -0
  176. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.ttf +0 -0
  177. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/ico/favicon.ico +0 -0
  178. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/backbone.min.js +0 -37
  179. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/index/index.js +0 -89
  180. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/jquery-1.7.1.min.js +0 -4
  181. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/prettify.min.js +0 -28
  182. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-alert.js +0 -94
  183. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-button.js +0 -98
  184. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-carousel.js +0 -157
  185. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-collapse.js +0 -136
  186. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-dropdown.js +0 -92
  187. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-modal.js +0 -210
  188. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-popover.js +0 -95
  189. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-scrollspy.js +0 -125
  190. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tab.js +0 -130
  191. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tooltip.js +0 -270
  192. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-transition.js +0 -51
  193. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-typeahead.js +0 -271
  194. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/underscore.min.js +0 -31
  195. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome-ie7.less +0 -245
  196. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome.less +0 -327
  197. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-site.less +0 -26
  198. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/mixins.less +0 -43
  199. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/site.less +0 -300
  200. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/accordion.less +0 -33
  201. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/alerts.less +0 -58
  202. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/bootstrap.less +0 -62
  203. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/breadcrumbs.less +0 -24
  204. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/button-groups.less +0 -191
  205. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/buttons.less +0 -191
  206. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less +0 -121
  207. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/close.less +0 -29
  208. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/code.less +0 -57
  209. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/component-animations.less +0 -20
  210. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/dropdowns.less +0 -143
  211. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/forms.less +0 -584
  212. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/grid.less +0 -5
  213. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/hero-unit.less +0 -22
  214. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/labels-badges.less +0 -55
  215. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/layouts.less +0 -17
  216. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/mixins.less +0 -631
  217. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/modals.less +0 -90
  218. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navbar.less +0 -364
  219. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navs.less +0 -363
  220. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pager.less +0 -36
  221. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pagination.less +0 -56
  222. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/popovers.less +0 -49
  223. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/progress-bars.less +0 -117
  224. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/reset.less +0 -126
  225. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-1200px-min.less +0 -26
  226. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-767px-max.less +0 -149
  227. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-768px-979px.less +0 -17
  228. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-navbar.less +0 -146
  229. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-utilities.less +0 -41
  230. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive.less +0 -48
  231. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/scaffolding.less +0 -29
  232. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/sprites.less +0 -191
  233. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tables.less +0 -176
  234. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/thumbnails.less +0 -47
  235. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tooltip.less +0 -35
  236. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/type.less +0 -235
  237. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/utilities.less +0 -23
  238. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/variables.less +0 -205
  239. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/wells.less +0 -27
  240. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/variables.less +0 -206
  241. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/index.html +0 -1087
  242. data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.sass +0 -712
  243. data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.scss +0 -329
@@ -1,64 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title>CodeMirror: Scheme mode</title>
5
- <link rel="stylesheet" href="../../lib/codemirror.css">
6
- <script src="../../lib/codemirror.js"></script>
7
- <script src="scheme.js"></script>
8
- <style>.CodeMirror {background: #f8f8f8;}</style>
9
- <link rel="stylesheet" href="../../doc/docs.css">
10
- </head>
11
- <body>
12
- <h1>CodeMirror: Scheme mode</h1>
13
- <form><textarea id="code" name="code">
14
- ; See if the input starts with a given symbol.
15
- (define (match-symbol input pattern)
16
- (cond ((null? (remain input)) #f)
17
- ((eqv? (car (remain input)) pattern) (r-cdr input))
18
- (else #f)))
19
-
20
- ; Allow the input to start with one of a list of patterns.
21
- (define (match-or input pattern)
22
- (cond ((null? pattern) #f)
23
- ((match-pattern input (car pattern)))
24
- (else (match-or input (cdr pattern)))))
25
-
26
- ; Allow a sequence of patterns.
27
- (define (match-seq input pattern)
28
- (if (null? pattern)
29
- input
30
- (let ((match (match-pattern input (car pattern))))
31
- (if match (match-seq match (cdr pattern)) #f))))
32
-
33
- ; Match with the pattern but no problem if it does not match.
34
- (define (match-opt input pattern)
35
- (let ((match (match-pattern input (car pattern))))
36
- (if match match input)))
37
-
38
- ; Match anything (other than '()), until pattern is found. The rather
39
- ; clumsy form of requiring an ending pattern is needed to decide where
40
- ; the end of the match is. If none is given, this will match the rest
41
- ; of the sentence.
42
- (define (match-any input pattern)
43
- (cond ((null? (remain input)) #f)
44
- ((null? pattern) (f-cons (remain input) (clear-remain input)))
45
- (else
46
- (let ((accum-any (collector)))
47
- (define (match-pattern-any input pattern)
48
- (cond ((null? (remain input)) #f)
49
- (else (accum-any (car (remain input)))
50
- (cond ((match-pattern (r-cdr input) pattern))
51
- (else (match-pattern-any (r-cdr input) pattern))))))
52
- (let ((retval (match-pattern-any input (car pattern))))
53
- (if retval
54
- (f-cons (accum-any) retval)
55
- #f))))))
56
- </textarea></form>
57
- <script>
58
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
59
- </script>
60
-
61
- <p><strong>MIME types defined:</strong> <code>text/x-scheme</code>.</p>
62
-
63
- </body>
64
- </html>
@@ -1,230 +0,0 @@
1
- /**
2
- * Author: Koh Zi Han, based on implementation by Koh Zi Chun
3
- */
4
- CodeMirror.defineMode("scheme", function (config, mode) {
5
- var BUILTIN = "builtin", COMMENT = "comment", STRING = "string",
6
- ATOM = "atom", NUMBER = "number", BRACKET = "bracket", KEYWORD="keyword";
7
- var INDENT_WORD_SKIP = 2, KEYWORDS_SKIP = 1;
8
-
9
- function makeKeywords(str) {
10
- var obj = {}, words = str.split(" ");
11
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
12
- return obj;
13
- }
14
-
15
- var keywords = makeKeywords("λ case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?");
16
- var indentKeys = makeKeywords("define let letrec let* lambda");
17
-
18
- function stateStack(indent, type, prev) { // represents a state stack object
19
- this.indent = indent;
20
- this.type = type;
21
- this.prev = prev;
22
- }
23
-
24
- function pushStack(state, indent, type) {
25
- state.indentStack = new stateStack(indent, type, state.indentStack);
26
- }
27
-
28
- function popStack(state) {
29
- state.indentStack = state.indentStack.prev;
30
- }
31
-
32
- var binaryMatcher = new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i);
33
- var octalMatcher = new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i);
34
- var hexMatcher = new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i);
35
- var decimalMatcher = new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);
36
-
37
- function isBinaryNumber (stream) {
38
- return stream.match(binaryMatcher);
39
- }
40
-
41
- function isOctalNumber (stream) {
42
- return stream.match(octalMatcher);
43
- }
44
-
45
- function isDecimalNumber (stream, backup) {
46
- if (backup === true) {
47
- stream.backUp(1);
48
- }
49
- return stream.match(decimalMatcher);
50
- }
51
-
52
- function isHexNumber (stream) {
53
- return stream.match(hexMatcher);
54
- }
55
-
56
- return {
57
- startState: function () {
58
- return {
59
- indentStack: null,
60
- indentation: 0,
61
- mode: false,
62
- sExprComment: false
63
- };
64
- },
65
-
66
- token: function (stream, state) {
67
- if (state.indentStack == null && stream.sol()) {
68
- // update indentation, but only if indentStack is empty
69
- state.indentation = stream.indentation();
70
- }
71
-
72
- // skip spaces
73
- if (stream.eatSpace()) {
74
- return null;
75
- }
76
- var returnType = null;
77
-
78
- switch(state.mode){
79
- case "string": // multi-line string parsing mode
80
- var next, escaped = false;
81
- while ((next = stream.next()) != null) {
82
- if (next == "\"" && !escaped) {
83
-
84
- state.mode = false;
85
- break;
86
- }
87
- escaped = !escaped && next == "\\";
88
- }
89
- returnType = STRING; // continue on in scheme-string mode
90
- break;
91
- case "comment": // comment parsing mode
92
- var next, maybeEnd = false;
93
- while ((next = stream.next()) != null) {
94
- if (next == "#" && maybeEnd) {
95
-
96
- state.mode = false;
97
- break;
98
- }
99
- maybeEnd = (next == "|");
100
- }
101
- returnType = COMMENT;
102
- break;
103
- case "s-expr-comment": // s-expr commenting mode
104
- state.mode = false;
105
- if(stream.peek() == "(" || stream.peek() == "["){
106
- // actually start scheme s-expr commenting mode
107
- state.sExprComment = 0;
108
- }else{
109
- // if not we just comment the entire of the next token
110
- stream.eatWhile(/[^/s]/); // eat non spaces
111
- returnType = COMMENT;
112
- break;
113
- }
114
- default: // default parsing mode
115
- var ch = stream.next();
116
-
117
- if (ch == "\"") {
118
- state.mode = "string";
119
- returnType = STRING;
120
-
121
- } else if (ch == "'") {
122
- returnType = ATOM;
123
- } else if (ch == '#') {
124
- if (stream.eat("|")) { // Multi-line comment
125
- state.mode = "comment"; // toggle to comment mode
126
- returnType = COMMENT;
127
- } else if (stream.eat(/[tf]/i)) { // #t/#f (atom)
128
- returnType = ATOM;
129
- } else if (stream.eat(';')) { // S-Expr comment
130
- state.mode = "s-expr-comment";
131
- returnType = COMMENT;
132
- } else {
133
- var numTest = null, hasExactness = false, hasRadix = true;
134
- if (stream.eat(/[ei]/i)) {
135
- hasExactness = true;
136
- } else {
137
- stream.backUp(1); // must be radix specifier
138
- }
139
- if (stream.match(/^#b/i)) {
140
- numTest = isBinaryNumber;
141
- } else if (stream.match(/^#o/i)) {
142
- numTest = isOctalNumber;
143
- } else if (stream.match(/^#x/i)) {
144
- numTest = isHexNumber;
145
- } else if (stream.match(/^#d/i)) {
146
- numTest = isDecimalNumber;
147
- } else if (stream.match(/^[-+0-9.]/, false)) {
148
- hasRadix = false;
149
- numTest = isDecimalNumber;
150
- // re-consume the intial # if all matches failed
151
- } else if (!hasExactness) {
152
- stream.eat('#');
153
- }
154
- if (numTest != null) {
155
- if (hasRadix && !hasExactness) {
156
- // consume optional exactness after radix
157
- stream.match(/^#[ei]/i);
158
- }
159
- if (numTest(stream))
160
- returnType = NUMBER;
161
- }
162
- }
163
- } else if (/^[-+0-9.]/.test(ch) && isDecimalNumber(stream, true)) { // match non-prefixed number, must be decimal
164
- returnType = NUMBER;
165
- } else if (ch == ";") { // comment
166
- stream.skipToEnd(); // rest of the line is a comment
167
- returnType = COMMENT;
168
- } else if (ch == "(" || ch == "[") {
169
- var keyWord = ''; var indentTemp = stream.column();
170
- /**
171
- Either
172
- (indent-word ..
173
- (non-indent-word ..
174
- (;something else, bracket, etc.
175
- */
176
-
177
- while ((letter = stream.eat(/[^\s\(\[\;\)\]]/)) != null) {
178
- keyWord += letter;
179
- }
180
-
181
- if (keyWord.length > 0 && indentKeys.propertyIsEnumerable(keyWord)) { // indent-word
182
-
183
- pushStack(state, indentTemp + INDENT_WORD_SKIP, ch);
184
- } else { // non-indent word
185
- // we continue eating the spaces
186
- stream.eatSpace();
187
- if (stream.eol() || stream.peek() == ";") {
188
- // nothing significant after
189
- // we restart indentation 1 space after
190
- pushStack(state, indentTemp + 1, ch);
191
- } else {
192
- pushStack(state, indentTemp + stream.current().length, ch); // else we match
193
- }
194
- }
195
- stream.backUp(stream.current().length - 1); // undo all the eating
196
-
197
- if(typeof state.sExprComment == "number") state.sExprComment++;
198
-
199
- returnType = BRACKET;
200
- } else if (ch == ")" || ch == "]") {
201
- returnType = BRACKET;
202
- if (state.indentStack != null && state.indentStack.type == (ch == ")" ? "(" : "[")) {
203
- popStack(state);
204
-
205
- if(typeof state.sExprComment == "number"){
206
- if(--state.sExprComment == 0){
207
- returnType = COMMENT; // final closing bracket
208
- state.sExprComment = false; // turn off s-expr commenting mode
209
- }
210
- }
211
- }
212
- } else {
213
- stream.eatWhile(/[\w\$_\-!$%&*+\.\/:<=>?@\^~]/);
214
-
215
- if (keywords && keywords.propertyIsEnumerable(stream.current())) {
216
- returnType = BUILTIN;
217
- } else returnType = "variable";
218
- }
219
- }
220
- return (typeof state.sExprComment == "number") ? COMMENT : returnType;
221
- },
222
-
223
- indent: function (state, textAfter) {
224
- if (state.indentStack == null) return state.indentation;
225
- return state.indentStack.indent;
226
- }
227
- };
228
- });
229
-
230
- CodeMirror.defineMIME("text/x-scheme", "scheme");
@@ -1,50 +0,0 @@
1
- <!doctype html>
2
- <meta charset=utf-8>
3
- <title>CodeMirror: Shell mode</title>
4
-
5
- <link rel=stylesheet href=../../lib/codemirror.css>
6
- <link rel=stylesheet href=../../doc/docs.css>
7
-
8
- <style type=text/css>
9
- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
10
- </style>
11
-
12
- <script src=../../lib/codemirror.js></script>
13
- <script src=shell.js></script>
14
-
15
- <h1>CodeMirror: Shell mode</h1>
16
-
17
- <textarea id=code>
18
- #!/bin/bash
19
-
20
- # clone the repository
21
- git clone http://github.com/garden/tree
22
-
23
- # generate HTTPS credentials
24
- cd tree
25
- openssl genrsa -aes256 -out https.key 1024
26
- openssl req -new -nodes -key https.key -out https.csr
27
- openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt
28
- cp https.key{,.orig}
29
- openssl rsa -in https.key.orig -out https.key
30
-
31
- # start the server in HTTPS mode
32
- cd web
33
- sudo node ../server.js 443 'yes' &gt;&gt; ../node.log &amp;
34
-
35
- # here is how to stop the server
36
- for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do
37
- sudo kill -9 $pid 2&gt; /dev/null
38
- done
39
-
40
- exit 0</textarea>
41
-
42
- <script>
43
- var editor = CodeMirror.fromTextArea(document.getElementById('code'), {
44
- mode: 'shell',
45
- lineNumbers: true,
46
- matchBrackets: true
47
- });
48
- </script>
49
-
50
- <p><strong>MIME types defined:</strong> <code>text/x-sh</code>.</p>
@@ -1,103 +0,0 @@
1
- CodeMirror.defineMode('shell', function(config) {
2
-
3
- var atoms = ['true','false'],
4
- keywords = ['if','then','do','else','elif','while','until','for','in','esac','fi','fin','fil','done','exit','set','unset','export','function'],
5
- commands = ['ab','awk','bash','beep','cat','cc','cd','chown','chmod','chroot','clear','cp','curl','cut','diff','echo','find','gawk','gcc','get','git','grep','kill','killall','ls','make','mkdir','openssl','mv','nc','node','npm','ping','ps','restart','rm','rmdir','sed','service','sh','shopt','shred','source','sort','sleep','ssh','start','stop','su','sudo','tee','telnet','top','touch','vi','vim','wall','wc','wget','who','write','yes','zsh'];
6
-
7
- function tokenBase(stream, state) {
8
-
9
- var sol = stream.sol();
10
- var ch = stream.next();
11
-
12
- if (ch === '\'' || ch === '"' || ch === '`') {
13
- state.tokens.unshift(tokenString(ch));
14
- return tokenize(stream, state);
15
- }
16
- if (ch === '#') {
17
- if (sol && stream.eat('!')) {
18
- stream.skipToEnd();
19
- return 'meta'; // 'comment'?
20
- }
21
- stream.skipToEnd();
22
- return 'comment';
23
- }
24
- if (ch === '$') {
25
- state.tokens.unshift(tokenDollar);
26
- return tokenize(stream, state);
27
- }
28
- if (ch === '+' || ch === '=') {
29
- return 'operator';
30
- }
31
- if (ch === '-') {
32
- stream.eat('-');
33
- stream.eatWhile(/\w/);
34
- return 'attribute';
35
- }
36
- if (/\d/.test(ch)) {
37
- stream.eatWhile(/\d/);
38
- if(!/\w/.test(stream.peek())) {
39
- return 'number';
40
- }
41
- }
42
- stream.eatWhile(/\w/);
43
- var cur = stream.current();
44
- if (stream.peek() === '=' && /\w+/.test(cur)) return 'def';
45
- if (atoms.indexOf(cur) !== -1) return 'atom';
46
- if (commands.indexOf(cur) !== -1) return 'builtin';
47
- if (keywords.indexOf(cur) !== -1) return 'keyword';
48
- return 'word';
49
- }
50
-
51
- function tokenString(quote) {
52
- return function(stream, state) {
53
- var next, end = false, escaped = false;
54
- while ((next = stream.next()) != null) {
55
- if (next === quote && !escaped) {
56
- end = true;
57
- break;
58
- }
59
- if (next === '$' && !escaped && quote !== '\'') {
60
- escaped = true;
61
- stream.backUp(1);
62
- state.tokens.unshift(tokenDollar);
63
- break;
64
- }
65
- escaped = !escaped && next === '\\';
66
- }
67
- if (end || !escaped) {
68
- state.tokens.shift();
69
- }
70
- return (quote === '`' || quote === ')' ? 'quote' : 'string');
71
- };
72
- };
73
-
74
- var tokenDollar = function(stream, state) {
75
- if (state.tokens.length > 1) stream.eat('$');
76
- var ch = stream.next(), hungry = /\w/;
77
- if (ch === '{') hungry = /[^}]/;
78
- if (ch === '(') {
79
- state.tokens[0] = tokenString(')');
80
- return tokenize(stream, state);
81
- }
82
- if (!/\d/.test(ch)) {
83
- stream.eatWhile(hungry);
84
- stream.eat('}');
85
- }
86
- state.tokens.shift();
87
- return 'def';
88
- };
89
-
90
- function tokenize(stream, state) {
91
- return (state.tokens[0] || tokenBase) (stream, state);
92
- };
93
-
94
- return {
95
- startState: function() {return {tokens:[]}},
96
- token: function(stream, state) {
97
- if (stream.eatSpace()) return null;
98
- return tokenize(stream, state);
99
- }
100
- };
101
- });
102
-
103
- CodeMirror.defineMIME('text/x-sh', 'shell');
@@ -1,55 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title>CodeMirror: Smalltalk mode</title>
5
- <link rel="stylesheet" href="../../lib/codemirror.css">
6
- <script src="../../lib/codemirror.js"></script>
7
- <script src="smalltalk.js"></script>
8
- <link rel="stylesheet" href="../../doc/docs.css">
9
- <style>
10
- .CodeMirror {border: 2px solid #dee; border-right-width: 10px;}
11
- .CodeMirror-gutter {border: none; background: #dee;}
12
- .CodeMirror-gutter pre {color: white; font-weight: bold;}
13
- </style>
14
- </head>
15
- <body>
16
- <h1>CodeMirror: Smalltalk mode</h1>
17
-
18
- <form><textarea id="code" name="code">
19
- "
20
- This is a test of the Smalltalk code
21
- "
22
- Seaside.WAComponent subclass: #MyCounter [
23
- | count |
24
- MyCounter class &gt;&gt; canBeRoot [ ^true ]
25
-
26
- initialize [
27
- super initialize.
28
- count := 0.
29
- ]
30
- states [ ^{ self } ]
31
- renderContentOn: html [
32
- html heading: count.
33
- html anchor callback: [ count := count + 1 ]; with: '++'.
34
- html space.
35
- html anchor callback: [ count := count - 1 ]; with: '--'.
36
- ]
37
- ]
38
-
39
- MyCounter registerAsApplication: 'mycounter'
40
- </textarea></form>
41
-
42
- <script>
43
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
44
- lineNumbers: true,
45
- matchBrackets: true,
46
- mode: "text/x-stsrc",
47
- indentUnit: 4
48
- });
49
- </script>
50
-
51
- <p>Simple Smalltalk mode.</p>
52
-
53
- <p><strong>MIME types defined:</strong> <code>text/x-stsrc</code>.</p>
54
- </body>
55
- </html>
@@ -1,139 +0,0 @@
1
- CodeMirror.defineMode('smalltalk', function(config, modeConfig) {
2
-
3
- var specialChars = /[+\-/\\*~<>=@%|&?!.:;^]/;
4
- var keywords = /true|false|nil|self|super|thisContext/;
5
-
6
- var Context = function(tokenizer, parent) {
7
- this.next = tokenizer;
8
- this.parent = parent;
9
- };
10
-
11
- var Token = function(name, context, eos) {
12
- this.name = name;
13
- this.context = context;
14
- this.eos = eos;
15
- };
16
-
17
- var State = function() {
18
- this.context = new Context(next, null);
19
- this.expectVariable = true;
20
- this.indentation = 0;
21
- this.userIndentationDelta = 0;
22
- };
23
-
24
- State.prototype.userIndent = function(indentation) {
25
- this.userIndentationDelta = indentation > 0 ? (indentation / config.indentUnit - this.indentation) : 0;
26
- };
27
-
28
- var next = function(stream, context, state) {
29
- var token = new Token(null, context, false);
30
- var aChar = stream.next();
31
-
32
- if (aChar === '"') {
33
- token = nextComment(stream, new Context(nextComment, context));
34
-
35
- } else if (aChar === '\'') {
36
- token = nextString(stream, new Context(nextString, context));
37
-
38
- } else if (aChar === '#') {
39
- stream.eatWhile(/[^ .]/);
40
- token.name = 'string-2';
41
-
42
- } else if (aChar === '$') {
43
- stream.eatWhile(/[^ ]/);
44
- token.name = 'string-2';
45
-
46
- } else if (aChar === '|' && state.expectVariable) {
47
- token.context = new Context(nextTemporaries, context);
48
-
49
- } else if (/[\[\]{}()]/.test(aChar)) {
50
- token.name = 'bracket';
51
- token.eos = /[\[{(]/.test(aChar);
52
-
53
- if (aChar === '[') {
54
- state.indentation++;
55
- } else if (aChar === ']') {
56
- state.indentation = Math.max(0, state.indentation - 1);
57
- }
58
-
59
- } else if (specialChars.test(aChar)) {
60
- stream.eatWhile(specialChars);
61
- token.name = 'operator';
62
- token.eos = aChar !== ';'; // ; cascaded message expression
63
-
64
- } else if (/\d/.test(aChar)) {
65
- stream.eatWhile(/[\w\d]/);
66
- token.name = 'number'
67
-
68
- } else if (/[\w_]/.test(aChar)) {
69
- stream.eatWhile(/[\w\d_]/);
70
- token.name = state.expectVariable ? (keywords.test(stream.current()) ? 'keyword' : 'variable') : null;
71
-
72
- } else {
73
- token.eos = state.expectVariable;
74
- }
75
-
76
- return token;
77
- };
78
-
79
- var nextComment = function(stream, context) {
80
- stream.eatWhile(/[^"]/);
81
- return new Token('comment', stream.eat('"') ? context.parent : context, true);
82
- };
83
-
84
- var nextString = function(stream, context) {
85
- stream.eatWhile(/[^']/);
86
- return new Token('string', stream.eat('\'') ? context.parent : context, false);
87
- };
88
-
89
- var nextTemporaries = function(stream, context, state) {
90
- var token = new Token(null, context, false);
91
- var aChar = stream.next();
92
-
93
- if (aChar === '|') {
94
- token.context = context.parent;
95
- token.eos = true;
96
-
97
- } else {
98
- stream.eatWhile(/[^|]/);
99
- token.name = 'variable';
100
- }
101
-
102
- return token;
103
- }
104
-
105
- return {
106
- startState: function() {
107
- return new State;
108
- },
109
-
110
- token: function(stream, state) {
111
- state.userIndent(stream.indentation());
112
-
113
- if (stream.eatSpace()) {
114
- return null;
115
- }
116
-
117
- var token = state.context.next(stream, state.context, state);
118
- state.context = token.context;
119
- state.expectVariable = token.eos;
120
-
121
- state.lastToken = token;
122
- return token.name;
123
- },
124
-
125
- blankLine: function(state) {
126
- state.userIndent(0);
127
- },
128
-
129
- indent: function(state, textAfter) {
130
- var i = state.context.next === next && textAfter && textAfter.charAt(0) === ']' ? -1 : state.userIndentationDelta;
131
- return (state.indentation + i) * config.indentUnit;
132
- },
133
-
134
- electricChars: ']'
135
- };
136
-
137
- });
138
-
139
- CodeMirror.defineMIME('text/x-stsrc', {name: 'smalltalk'});