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.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/app/assets/images/burp/add-image-2.jpg +0 -0
- data/app/assets/images/burp/add-image-3.jpg +0 -0
- data/app/assets/images/burp/add-image-4.jpg +0 -0
- data/app/assets/images/burp/enter-page-edit-mode-4.jpg +0 -0
- data/app/assets/images/burp/remove-image-2.jpg +0 -0
- data/app/assets/images/burp/remove-image-3.jpg +0 -0
- data/app/assets/images/burp/remove-image-4.jpg +0 -0
- data/app/assets/images/burp/remove-image-5.jpg +0 -0
- data/app/views/burp/static/help.html.erb +8 -8
- data/lib/burp/version.rb +1 -1
- metadata +95 -234
- data/app/assets/images/burp/add-image-2.png +0 -0
- data/app/assets/images/burp/add-image-3.png +0 -0
- data/app/assets/images/burp/add-image-4.png +0 -0
- data/app/assets/images/burp/enter-page-edit-mode-4.png +0 -0
- data/app/assets/images/burp/remove-image-2.png +0 -0
- data/app/assets/images/burp/remove-image-3.png +0 -0
- data/app/assets/images/burp/remove-image-4.png +0 -0
- data/app/assets/images/burp/remove-image-5.png +0 -0
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/README.md +0 -8
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/activeline.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/changemode.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/closetag.html +0 -65
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/complete.html +0 -70
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/emacs.html +0 -59
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/folding.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/formatting.html +0 -80
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/fullscreen.html +0 -152
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/loadmode.html +0 -39
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html +0 -52
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html +0 -37
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/multiplex.html +0 -59
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/mustache.html +0 -57
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/preview.html +0 -76
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/resize.html +0 -41
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/runmode.html +0 -49
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/search.html +0 -83
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/theme.html +0 -78
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/vim.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/visibletabs.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon.png +0 -0
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon_vector.svg +0 -153
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/compress.html +0 -148
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/docs.css +0 -154
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/internals.html +0 -494
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/manual.html +0 -1128
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/oldrelease.html +0 -267
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/reporting.html +0 -57
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/upgrade_v2.2.html +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/index.html +0 -417
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/clike.js +0 -271
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/index.html +0 -101
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/scala.html +0 -765
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/clojure.js +0 -207
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/index.html +0 -66
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/LICENSE +0 -22
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/coffeescript.js +0 -347
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/index.html +0 -727
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/diff.js +0 -32
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/index.html +0 -104
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/ecl.js +0 -203
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/erlang.js +0 -251
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/index.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/gfm.js +0 -144
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/index.html +0 -47
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/go.js +0 -170
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/index.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/groovy.js +0 -210
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/index.html +0 -71
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/haskell.js +0 -242
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/index.html +0 -60
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/index.html +0 -37
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/jinja2.js +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/index.html +0 -618
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/less.js +0 -232
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/index.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/lua.js +0 -140
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/index.html +0 -41
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/mysql.js +0 -188
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/index.html +0 -32
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/ntriples.js +0 -172
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/LICENSE +0 -7
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/pascal.js +0 -94
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/LICENSE +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/index.html +0 -62
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/perl.js +0 -816
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/php.js +0 -150
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/pig.js +0 -172
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html +0 -62
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/plsql.js +0 -217
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/index.html +0 -40
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/properties.js +0 -63
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/LICENSE.txt +0 -21
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/index.html +0 -122
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/python.js +0 -338
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/LICENSE +0 -24
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/index.html +0 -73
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/r.js +0 -141
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/changes.js +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/index.html +0 -53
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/index.html +0 -99
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.css +0 -5
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.js +0 -66
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/index.html +0 -525
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/rst.js +0 -326
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/LICENSE +0 -24
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/index.html +0 -171
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/ruby.js +0 -195
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/rust.js +0 -432
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/index.html +0 -64
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/scheme.js +0 -230
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/index.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/shell.js +0 -103
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/index.html +0 -55
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/smalltalk.js +0 -139
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/index.html +0 -82
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/smarty.js +0 -148
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/index.html +0 -40
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/sparql.js +0 -143
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/index.html +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/stex.js +0 -182
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/test.html +0 -263
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/index.html +0 -140
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.css +0 -14
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.js +0 -384
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/index.html +0 -82
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.css +0 -26
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.js +0 -316
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/vbscript.js +0 -26
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/index.html +0 -103
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/velocity.js +0 -146
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/index.html +0 -210
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/verilog.js +0 -194
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/LICENSE +0 -20
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/index.html +0 -222
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/index.html +0 -27
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testBase.js +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testEmptySequenceKeyword.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testMultiAttr.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testNamespaces.js +0 -91
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testProcessingInstructions.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testQuotes.js +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/xquery.js +0 -448
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/index.html +0 -67
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/yaml.js +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/index.html +0 -28
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.css +0 -22
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.js +0 -164
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/test.js +0 -344
- data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome-Vectors.pdf +11 -3176
- data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/README.md +0 -18
- data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome-ie7.css +0 -645
- data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome.less +0 -309
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome-ie7.css +0 -213
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome.css +0 -303
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/prettify.css +0 -30
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/site.css +0 -4904
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.svg +0 -255
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.woff +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/ico/favicon.ico +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/backbone.min.js +0 -37
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/index/index.js +0 -89
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/jquery-1.7.1.min.js +0 -4
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/prettify.min.js +0 -28
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-alert.js +0 -94
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-button.js +0 -98
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-carousel.js +0 -157
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-collapse.js +0 -136
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-dropdown.js +0 -92
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-modal.js +0 -210
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-popover.js +0 -95
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-scrollspy.js +0 -125
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tab.js +0 -130
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tooltip.js +0 -270
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-transition.js +0 -51
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-typeahead.js +0 -271
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/underscore.min.js +0 -31
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome-ie7.less +0 -245
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome.less +0 -327
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-site.less +0 -26
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/mixins.less +0 -43
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/site.less +0 -300
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/accordion.less +0 -33
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/alerts.less +0 -58
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/bootstrap.less +0 -62
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/breadcrumbs.less +0 -24
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/button-groups.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/buttons.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less +0 -121
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/close.less +0 -29
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/code.less +0 -57
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/component-animations.less +0 -20
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/dropdowns.less +0 -143
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/forms.less +0 -584
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/grid.less +0 -5
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/hero-unit.less +0 -22
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/labels-badges.less +0 -55
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/layouts.less +0 -17
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/mixins.less +0 -631
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/modals.less +0 -90
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navbar.less +0 -364
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navs.less +0 -363
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pager.less +0 -36
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pagination.less +0 -56
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/popovers.less +0 -49
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/progress-bars.less +0 -117
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/reset.less +0 -126
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-1200px-min.less +0 -26
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-767px-max.less +0 -149
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-768px-979px.less +0 -17
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-navbar.less +0 -146
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-utilities.less +0 -41
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive.less +0 -48
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/scaffolding.less +0 -29
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/sprites.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tables.less +0 -176
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/thumbnails.less +0 -47
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tooltip.less +0 -35
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/type.less +0 -235
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/utilities.less +0 -23
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/variables.less +0 -205
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/wells.less +0 -27
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/variables.less +0 -206
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/index.html +0 -1087
- data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.sass +0 -712
- data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.scss +0 -329
@@ -1,316 +0,0 @@
|
|
1
|
-
CodeMirror.defineMode('tiki', function(config, parserConfig) {
|
2
|
-
function inBlock(style, terminator, returnTokenizer) {
|
3
|
-
return function(stream, state) {
|
4
|
-
while (!stream.eol()) {
|
5
|
-
if (stream.match(terminator)) {
|
6
|
-
state.tokenize = inText;
|
7
|
-
break;
|
8
|
-
}
|
9
|
-
stream.next();
|
10
|
-
}
|
11
|
-
|
12
|
-
if (returnTokenizer) state.tokenize = returnTokenizer;
|
13
|
-
|
14
|
-
return style;
|
15
|
-
};
|
16
|
-
}
|
17
|
-
|
18
|
-
function inLine(style, terminator) {
|
19
|
-
return function(stream, state) {
|
20
|
-
while(!stream.eol()) {
|
21
|
-
stream.next()
|
22
|
-
}
|
23
|
-
state.tokenize = inText;
|
24
|
-
return style;
|
25
|
-
};
|
26
|
-
}
|
27
|
-
|
28
|
-
function inText(stream, state) {
|
29
|
-
function chain(parser) {
|
30
|
-
state.tokenize = parser;
|
31
|
-
return parser(stream, state);
|
32
|
-
}
|
33
|
-
|
34
|
-
var sol = stream.sol();
|
35
|
-
var ch = stream.next();
|
36
|
-
|
37
|
-
//non start of line
|
38
|
-
switch (ch) { //switch is generally much faster than if, so it is used here
|
39
|
-
case "{": //plugin
|
40
|
-
type = stream.eat("/") ? "closeTag" : "openTag";
|
41
|
-
stream.eatSpace();
|
42
|
-
tagName = "";
|
43
|
-
var c;
|
44
|
-
while ((c = stream.eat(/[^\s\u00a0=\"\'\/?(}]/))) tagName += c;
|
45
|
-
state.tokenize = inPlugin;
|
46
|
-
return "tag";
|
47
|
-
break;
|
48
|
-
case "_": //bold
|
49
|
-
if (stream.eat("_")) {
|
50
|
-
return chain(inBlock("strong", "__", inText));
|
51
|
-
}
|
52
|
-
break;
|
53
|
-
case "'": //italics
|
54
|
-
if (stream.eat("'")) {
|
55
|
-
// Italic text
|
56
|
-
return chain(inBlock("em", "''", inText));
|
57
|
-
}
|
58
|
-
break;
|
59
|
-
case "(":// Wiki Link
|
60
|
-
if (stream.eat("(")) {
|
61
|
-
return chain(inBlock("variable-2", "))", inText));
|
62
|
-
}
|
63
|
-
break;
|
64
|
-
case "[":// Weblink
|
65
|
-
return chain(inBlock("variable-3", "]", inText));
|
66
|
-
break;
|
67
|
-
case "|": //table
|
68
|
-
if (stream.eat("|")) {
|
69
|
-
return chain(inBlock("comment", "||"));
|
70
|
-
}
|
71
|
-
break;
|
72
|
-
case "-":
|
73
|
-
if (stream.eat("=")) {//titleBar
|
74
|
-
return chain(inBlock("header string", "=-", inText));
|
75
|
-
} else if (stream.eat("-")) {//deleted
|
76
|
-
return chain(inBlock("error tw-deleted", "--", inText));
|
77
|
-
}
|
78
|
-
break;
|
79
|
-
case "=": //underline
|
80
|
-
if (stream.match("==")) {
|
81
|
-
return chain(inBlock("tw-underline", "===", inText));
|
82
|
-
}
|
83
|
-
break;
|
84
|
-
case ":":
|
85
|
-
if (stream.eat(":")) {
|
86
|
-
return chain(inBlock("comment", "::"));
|
87
|
-
}
|
88
|
-
break;
|
89
|
-
case "^": //box
|
90
|
-
return chain(inBlock("tw-box", "^"));
|
91
|
-
break;
|
92
|
-
case "~": //np
|
93
|
-
if (stream.match("np~")) {
|
94
|
-
return chain(inBlock("meta", "~/np~"));
|
95
|
-
}
|
96
|
-
break;
|
97
|
-
}
|
98
|
-
|
99
|
-
//start of line types
|
100
|
-
if (sol) {
|
101
|
-
switch (ch) {
|
102
|
-
case "!": //header at start of line
|
103
|
-
if (stream.match('!!!!!')) {
|
104
|
-
return chain(inLine("header string"));
|
105
|
-
} else if (stream.match('!!!!')) {
|
106
|
-
return chain(inLine("header string"));
|
107
|
-
} else if (stream.match('!!!')) {
|
108
|
-
return chain(inLine("header string"));
|
109
|
-
} else if (stream.match('!!')) {
|
110
|
-
return chain(inLine("header string"));
|
111
|
-
} else {
|
112
|
-
return chain(inLine("header string"));
|
113
|
-
}
|
114
|
-
break;
|
115
|
-
case "*": //unordered list line item, or <li /> at start of line
|
116
|
-
case "#": //ordered list line item, or <li /> at start of line
|
117
|
-
case "+": //ordered list line item, or <li /> at start of line
|
118
|
-
return chain(inLine("tw-listitem bracket"));
|
119
|
-
break;
|
120
|
-
}
|
121
|
-
}
|
122
|
-
|
123
|
-
//stream.eatWhile(/[&{]/); was eating up plugins, turned off to act less like html and more like tiki
|
124
|
-
return null;
|
125
|
-
}
|
126
|
-
|
127
|
-
var indentUnit = config.indentUnit;
|
128
|
-
|
129
|
-
// Return variables for tokenizers
|
130
|
-
var pluginName, type;
|
131
|
-
function inPlugin(stream, state) {
|
132
|
-
var ch = stream.next();
|
133
|
-
var peek = stream.peek();
|
134
|
-
|
135
|
-
if (ch == "}") {
|
136
|
-
state.tokenize = inText;
|
137
|
-
//type = ch == ")" ? "endPlugin" : "selfclosePlugin"; inPlugin
|
138
|
-
return "tag";
|
139
|
-
} else if (ch == "(" || ch == ")") {
|
140
|
-
return "bracket";
|
141
|
-
} else if (ch == "=") {
|
142
|
-
type = "equals";
|
143
|
-
|
144
|
-
if (peek == ">") {
|
145
|
-
ch = stream.next();
|
146
|
-
peek = stream.peek();
|
147
|
-
}
|
148
|
-
|
149
|
-
//here we detect values directly after equal character with no quotes
|
150
|
-
if (!/[\'\"]/.test(peek)) {
|
151
|
-
state.tokenize = inAttributeNoQuote();
|
152
|
-
}
|
153
|
-
//end detect values
|
154
|
-
|
155
|
-
return "operator";
|
156
|
-
} else if (/[\'\"]/.test(ch)) {
|
157
|
-
state.tokenize = inAttribute(ch);
|
158
|
-
return state.tokenize(stream, state);
|
159
|
-
} else {
|
160
|
-
stream.eatWhile(/[^\s\u00a0=\"\'\/?]/);
|
161
|
-
return "keyword";
|
162
|
-
}
|
163
|
-
}
|
164
|
-
|
165
|
-
function inAttribute(quote) {
|
166
|
-
return function(stream, state) {
|
167
|
-
while (!stream.eol()) {
|
168
|
-
if (stream.next() == quote) {
|
169
|
-
state.tokenize = inPlugin;
|
170
|
-
break;
|
171
|
-
}
|
172
|
-
}
|
173
|
-
return "string";
|
174
|
-
};
|
175
|
-
}
|
176
|
-
|
177
|
-
function inAttributeNoQuote() {
|
178
|
-
return function(stream, state) {
|
179
|
-
while (!stream.eol()) {
|
180
|
-
var ch = stream.next();
|
181
|
-
var peek = stream.peek();
|
182
|
-
if (ch == " " || ch == "," || /[ )}]/.test(peek)) {
|
183
|
-
state.tokenize = inPlugin;
|
184
|
-
break;
|
185
|
-
}
|
186
|
-
}
|
187
|
-
return "string";
|
188
|
-
};
|
189
|
-
}
|
190
|
-
|
191
|
-
var curState, setStyle;
|
192
|
-
function pass() {
|
193
|
-
for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]);
|
194
|
-
}
|
195
|
-
|
196
|
-
function cont() {
|
197
|
-
pass.apply(null, arguments);
|
198
|
-
return true;
|
199
|
-
}
|
200
|
-
|
201
|
-
function pushContext(pluginName, startOfLine) {
|
202
|
-
var noIndent = curState.context && curState.context.noIndent;
|
203
|
-
curState.context = {
|
204
|
-
prev: curState.context,
|
205
|
-
pluginName: pluginName,
|
206
|
-
indent: curState.indented,
|
207
|
-
startOfLine: startOfLine,
|
208
|
-
noIndent: noIndent
|
209
|
-
};
|
210
|
-
}
|
211
|
-
|
212
|
-
function popContext() {
|
213
|
-
if (curState.context) curState.context = curState.context.prev;
|
214
|
-
}
|
215
|
-
|
216
|
-
function element(type) {
|
217
|
-
if (type == "openPlugin") {curState.pluginName = pluginName; return cont(attributes, endplugin(curState.startOfLine));}
|
218
|
-
else if (type == "closePlugin") {
|
219
|
-
var err = false;
|
220
|
-
if (curState.context) {
|
221
|
-
err = curState.context.pluginName != pluginName;
|
222
|
-
popContext();
|
223
|
-
} else {
|
224
|
-
err = true;
|
225
|
-
}
|
226
|
-
if (err) setStyle = "error";
|
227
|
-
return cont(endcloseplugin(err));
|
228
|
-
}
|
229
|
-
else if (type == "string") {
|
230
|
-
if (!curState.context || curState.context.name != "!cdata") pushContext("!cdata");
|
231
|
-
if (curState.tokenize == inText) popContext();
|
232
|
-
return cont();
|
233
|
-
}
|
234
|
-
else return cont();
|
235
|
-
}
|
236
|
-
|
237
|
-
function endplugin(startOfLine) {
|
238
|
-
return function(type) {
|
239
|
-
if (
|
240
|
-
type == "selfclosePlugin" ||
|
241
|
-
type == "endPlugin"
|
242
|
-
)
|
243
|
-
return cont();
|
244
|
-
if (type == "endPlugin") {pushContext(curState.pluginName, startOfLine); return cont();}
|
245
|
-
return cont();
|
246
|
-
};
|
247
|
-
}
|
248
|
-
|
249
|
-
function endcloseplugin(err) {
|
250
|
-
return function(type) {
|
251
|
-
if (err) setStyle = "error";
|
252
|
-
if (type == "endPlugin") return cont();
|
253
|
-
return pass();
|
254
|
-
}
|
255
|
-
}
|
256
|
-
|
257
|
-
function attributes(type) {
|
258
|
-
if (type == "keyword") {setStyle = "attribute"; return cont(attributes);}
|
259
|
-
if (type == "equals") return cont(attvalue, attributes);
|
260
|
-
return pass();
|
261
|
-
}
|
262
|
-
function attvalue(type) {
|
263
|
-
if (type == "keyword") {setStyle = "string"; return cont();}
|
264
|
-
if (type == "string") return cont(attvaluemaybe);
|
265
|
-
return pass();
|
266
|
-
}
|
267
|
-
function attvaluemaybe(type) {
|
268
|
-
if (type == "string") return cont(attvaluemaybe);
|
269
|
-
else return pass();
|
270
|
-
}
|
271
|
-
return {
|
272
|
-
startState: function() {
|
273
|
-
return {tokenize: inText, cc: [], indented: 0, startOfLine: true, pluginName: null, context: null};
|
274
|
-
},
|
275
|
-
token: function(stream, state) {
|
276
|
-
if (stream.sol()) {
|
277
|
-
state.startOfLine = true;
|
278
|
-
state.indented = stream.indentation();
|
279
|
-
}
|
280
|
-
if (stream.eatSpace()) return null;
|
281
|
-
|
282
|
-
setStyle = type = pluginName = null;
|
283
|
-
var style = state.tokenize(stream, state);
|
284
|
-
if ((style || type) && style != "comment") {
|
285
|
-
curState = state;
|
286
|
-
while (true) {
|
287
|
-
var comb = state.cc.pop() || element;
|
288
|
-
if (comb(type || style)) break;
|
289
|
-
}
|
290
|
-
}
|
291
|
-
state.startOfLine = false;
|
292
|
-
return setStyle || style;
|
293
|
-
},
|
294
|
-
indent: function(state, textAfter) {
|
295
|
-
var context = state.context;
|
296
|
-
if (context && context.noIndent) return 0;
|
297
|
-
if (context && /^{\//.test(textAfter))
|
298
|
-
context = context.prev;
|
299
|
-
while (context && !context.startOfLine)
|
300
|
-
context = context.prev;
|
301
|
-
if (context) return context.indent + indentUnit;
|
302
|
-
else return 0;
|
303
|
-
},
|
304
|
-
compareStates: function(a, b) {
|
305
|
-
if (a.indented != b.indented || a.pluginName != b.pluginName) return false;
|
306
|
-
for (var ca = a.context, cb = b.context; ; ca = ca.prev, cb = cb.prev) {
|
307
|
-
if (!ca || !cb) return ca == cb;
|
308
|
-
if (ca.pluginName != cb.pluginName) return false;
|
309
|
-
}
|
310
|
-
},
|
311
|
-
electricChars: "/"
|
312
|
-
};
|
313
|
-
});
|
314
|
-
|
315
|
-
//I figure, why not
|
316
|
-
CodeMirror.defineMIME("text/tiki", "tiki");
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>CodeMirror: VBScript mode</title>
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
7
|
-
<script src="vbscript.js"></script>
|
8
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
9
|
-
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
10
|
-
</head>
|
11
|
-
<body>
|
12
|
-
<h1>CodeMirror: VBScript mode</h1>
|
13
|
-
|
14
|
-
<div><textarea id="code" name="code">
|
15
|
-
' Pete Guhl
|
16
|
-
' 03-04-2012
|
17
|
-
'
|
18
|
-
' Basic VBScript support for codemirror2
|
19
|
-
|
20
|
-
Const ForReading = 1, ForWriting = 2, ForAppending = 8
|
21
|
-
|
22
|
-
Call Sub020_PostBroadcastToUrbanAirship(strUserName, strPassword, intTransmitID, strResponse)
|
23
|
-
|
24
|
-
If Not IsNull(strResponse) AND Len(strResponse) = 0 Then
|
25
|
-
boolTransmitOkYN = False
|
26
|
-
Else
|
27
|
-
' WScript.Echo "Oh Happy Day! Oh Happy DAY!"
|
28
|
-
boolTransmitOkYN = True
|
29
|
-
End If
|
30
|
-
</textarea></div>
|
31
|
-
|
32
|
-
<script>
|
33
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
34
|
-
lineNumbers: true,
|
35
|
-
matchBrackets: true
|
36
|
-
});
|
37
|
-
</script>
|
38
|
-
|
39
|
-
<p><strong>MIME types defined:</strong> <code>text/vbscript</code>.</p>
|
40
|
-
</body>
|
41
|
-
</html>
|
42
|
-
|
@@ -1,26 +0,0 @@
|
|
1
|
-
CodeMirror.defineMode("vbscript", function() {
|
2
|
-
var regexVBScriptKeyword = /^(?:Call|Case|CDate|Clear|CInt|CLng|Const|CStr|Description|Dim|Do|Each|Else|ElseIf|End|Err|Error|Exit|False|For|Function|If|LCase|Loop|LTrim|Next|Nothing|Now|Number|On|Preserve|Quit|ReDim|Resume|RTrim|Select|Set|Sub|Then|To|Trim|True|UBound|UCase|Until|VbCr|VbCrLf|VbLf|VbTab)$/im;
|
3
|
-
|
4
|
-
return {
|
5
|
-
token: function(stream) {
|
6
|
-
if (stream.eatSpace()) return null;
|
7
|
-
var ch = stream.next();
|
8
|
-
if (ch == "'") {
|
9
|
-
stream.skipToEnd();
|
10
|
-
return "comment";
|
11
|
-
}
|
12
|
-
if (ch == '"') {
|
13
|
-
stream.skipTo('"');
|
14
|
-
return "string";
|
15
|
-
}
|
16
|
-
|
17
|
-
if (/\w/.test(ch)) {
|
18
|
-
stream.eatWhile(/\w/);
|
19
|
-
if (regexVBScriptKeyword.test(stream.current())) return "keyword";
|
20
|
-
}
|
21
|
-
return null;
|
22
|
-
}
|
23
|
-
};
|
24
|
-
});
|
25
|
-
|
26
|
-
CodeMirror.defineMIME("text/vbscript", "vbscript");
|
@@ -1,103 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>CodeMirror: Velocity mode</title>
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
7
|
-
<script src="velocity.js"></script>
|
8
|
-
<link rel="stylesheet" href="../../theme/night.css">
|
9
|
-
<style>.CodeMirror {border: 1px solid black;}</style>
|
10
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
11
|
-
</head>
|
12
|
-
<body>
|
13
|
-
<h1>CodeMirror: Velocity mode</h1>
|
14
|
-
<form><textarea id="code" name="code">
|
15
|
-
## Velocity Code Demo
|
16
|
-
#*
|
17
|
-
based on PL/SQL mode by Peter Raganitsch, adapted to Velocity by Steve O'Hara ( http://www.pivotal-solutions.co.uk )
|
18
|
-
August 2011
|
19
|
-
*#
|
20
|
-
|
21
|
-
#*
|
22
|
-
This is a multiline comment.
|
23
|
-
This is the second line
|
24
|
-
*#
|
25
|
-
|
26
|
-
#[[ hello steve
|
27
|
-
This has invalid syntax that would normally need "poor man's escaping" like:
|
28
|
-
|
29
|
-
#define()
|
30
|
-
|
31
|
-
${blah
|
32
|
-
]]#
|
33
|
-
|
34
|
-
#include( "disclaimer.txt" "opinion.txt" )
|
35
|
-
#include( $foo $bar )
|
36
|
-
|
37
|
-
#parse( "lecorbusier.vm" )
|
38
|
-
#parse( $foo )
|
39
|
-
|
40
|
-
#evaluate( 'string with VTL #if(true)will be displayed#end' )
|
41
|
-
|
42
|
-
#define( $hello ) Hello $who #end #set( $who = "World!") $hello ## displays Hello World!
|
43
|
-
|
44
|
-
#foreach( $customer in $customerList )
|
45
|
-
|
46
|
-
$foreach.count $customer.Name
|
47
|
-
|
48
|
-
#if( $foo == ${bar})
|
49
|
-
it's true!
|
50
|
-
#break
|
51
|
-
#{else}
|
52
|
-
it's not!
|
53
|
-
#stop
|
54
|
-
#end
|
55
|
-
|
56
|
-
#if ($foreach.parent.hasNext)
|
57
|
-
$velocityCount
|
58
|
-
#end
|
59
|
-
#end
|
60
|
-
|
61
|
-
$someObject.getValues("this is a string split
|
62
|
-
across lines")
|
63
|
-
|
64
|
-
#macro( tablerows $color $somelist )
|
65
|
-
#foreach( $something in $somelist )
|
66
|
-
<tr><td bgcolor=$color>$something</td></tr>
|
67
|
-
#end
|
68
|
-
#end
|
69
|
-
|
70
|
-
#tablerows("red" ["dadsdf","dsa"])
|
71
|
-
|
72
|
-
Variable reference: #set( $monkey = $bill )
|
73
|
-
String literal: #set( $monkey.Friend = 'monica' )
|
74
|
-
Property reference: #set( $monkey.Blame = $whitehouse.Leak )
|
75
|
-
Method reference: #set( $monkey.Plan = $spindoctor.weave($web) )
|
76
|
-
Number literal: #set( $monkey.Number = 123 )
|
77
|
-
Range operator: #set( $monkey.Numbers = [1..3] )
|
78
|
-
Object list: #set( $monkey.Say = ["Not", $my, "fault"] )
|
79
|
-
Object map: #set( $monkey.Map = {"banana" : "good", "roast beef" : "bad"})
|
80
|
-
|
81
|
-
The RHS can also be a simple arithmetic expression, such as:
|
82
|
-
Addition: #set( $value = $foo + 1 )
|
83
|
-
Subtraction: #set( $value = $bar - 1 )
|
84
|
-
Multiplication: #set( $value = $foo * $bar )
|
85
|
-
Division: #set( $value = $foo / $bar )
|
86
|
-
Remainder: #set( $value = $foo % $bar )
|
87
|
-
|
88
|
-
</textarea></form>
|
89
|
-
<script>
|
90
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
91
|
-
tabMode: "indent",
|
92
|
-
matchBrackets: true,
|
93
|
-
theme: "night",
|
94
|
-
lineNumbers: true,
|
95
|
-
indentUnit: 4,
|
96
|
-
mode: "text/velocity"
|
97
|
-
});
|
98
|
-
</script>
|
99
|
-
|
100
|
-
<p><strong>MIME types defined:</strong> <code>text/velocity</code>.</p>
|
101
|
-
|
102
|
-
</body>
|
103
|
-
</html>
|
@@ -1,146 +0,0 @@
|
|
1
|
-
CodeMirror.defineMode("velocity", function(config) {
|
2
|
-
function parseWords(str) {
|
3
|
-
var obj = {}, words = str.split(" ");
|
4
|
-
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
5
|
-
return obj;
|
6
|
-
}
|
7
|
-
|
8
|
-
var indentUnit = config.indentUnit
|
9
|
-
var keywords = parseWords("#end #else #break #stop #[[ #]] " +
|
10
|
-
"#{end} #{else} #{break} #{stop}");
|
11
|
-
var functions = parseWords("#if #elseif #foreach #set #include #parse #macro #define #evaluate " +
|
12
|
-
"#{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}");
|
13
|
-
var specials = parseWords("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent $velocityCount");
|
14
|
-
var isOperatorChar = /[+\-*&%=<>!?:\/|]/;
|
15
|
-
var multiLineStrings =true;
|
16
|
-
|
17
|
-
function chain(stream, state, f) {
|
18
|
-
state.tokenize = f;
|
19
|
-
return f(stream, state);
|
20
|
-
}
|
21
|
-
function tokenBase(stream, state) {
|
22
|
-
var beforeParams = state.beforeParams;
|
23
|
-
state.beforeParams = false;
|
24
|
-
var ch = stream.next();
|
25
|
-
// start of string?
|
26
|
-
if ((ch == '"' || ch == "'") && state.inParams)
|
27
|
-
return chain(stream, state, tokenString(ch));
|
28
|
-
// is it one of the special signs []{}().,;? Seperator?
|
29
|
-
else if (/[\[\]{}\(\),;\.]/.test(ch)) {
|
30
|
-
if (ch == "(" && beforeParams) state.inParams = true;
|
31
|
-
else if (ch == ")") state.inParams = false;
|
32
|
-
return null;
|
33
|
-
}
|
34
|
-
// start of a number value?
|
35
|
-
else if (/\d/.test(ch)) {
|
36
|
-
stream.eatWhile(/[\w\.]/);
|
37
|
-
return "number";
|
38
|
-
}
|
39
|
-
// multi line comment?
|
40
|
-
else if (ch == "#" && stream.eat("*")) {
|
41
|
-
return chain(stream, state, tokenComment);
|
42
|
-
}
|
43
|
-
// unparsed content?
|
44
|
-
else if (ch == "#" && stream.match(/ *\[ *\[/)) {
|
45
|
-
return chain(stream, state, tokenUnparsed);
|
46
|
-
}
|
47
|
-
// single line comment?
|
48
|
-
else if (ch == "#" && stream.eat("#")) {
|
49
|
-
stream.skipToEnd();
|
50
|
-
return "comment";
|
51
|
-
}
|
52
|
-
// variable?
|
53
|
-
else if (ch == "$") {
|
54
|
-
stream.eatWhile(/[\w\d\$_\.{}]/);
|
55
|
-
// is it one of the specials?
|
56
|
-
if (specials && specials.propertyIsEnumerable(stream.current().toLowerCase())) {
|
57
|
-
return "keyword";
|
58
|
-
}
|
59
|
-
else {
|
60
|
-
state.beforeParams = true;
|
61
|
-
return "builtin";
|
62
|
-
}
|
63
|
-
}
|
64
|
-
// is it a operator?
|
65
|
-
else if (isOperatorChar.test(ch)) {
|
66
|
-
stream.eatWhile(isOperatorChar);
|
67
|
-
return "operator";
|
68
|
-
}
|
69
|
-
else {
|
70
|
-
// get the whole word
|
71
|
-
stream.eatWhile(/[\w\$_{}]/);
|
72
|
-
var word = stream.current().toLowerCase();
|
73
|
-
// is it one of the listed keywords?
|
74
|
-
if (keywords && keywords.propertyIsEnumerable(word))
|
75
|
-
return "keyword";
|
76
|
-
// is it one of the listed functions?
|
77
|
-
if (functions && functions.propertyIsEnumerable(word) ||
|
78
|
-
stream.current().match(/^#[a-z0-9_]+ *$/i) && stream.peek()=="(") {
|
79
|
-
state.beforeParams = true;
|
80
|
-
return "keyword";
|
81
|
-
}
|
82
|
-
// default: just a "word"
|
83
|
-
return null;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
function tokenString(quote) {
|
88
|
-
return function(stream, state) {
|
89
|
-
var escaped = false, next, end = false;
|
90
|
-
while ((next = stream.next()) != null) {
|
91
|
-
if (next == quote && !escaped) {
|
92
|
-
end = true;
|
93
|
-
break;
|
94
|
-
}
|
95
|
-
escaped = !escaped && next == "\\";
|
96
|
-
}
|
97
|
-
if (end) state.tokenize = tokenBase;
|
98
|
-
return "string";
|
99
|
-
};
|
100
|
-
}
|
101
|
-
|
102
|
-
function tokenComment(stream, state) {
|
103
|
-
var maybeEnd = false, ch;
|
104
|
-
while (ch = stream.next()) {
|
105
|
-
if (ch == "#" && maybeEnd) {
|
106
|
-
state.tokenize = tokenBase;
|
107
|
-
break;
|
108
|
-
}
|
109
|
-
maybeEnd = (ch == "*");
|
110
|
-
}
|
111
|
-
return "comment";
|
112
|
-
}
|
113
|
-
|
114
|
-
function tokenUnparsed(stream, state) {
|
115
|
-
var maybeEnd = 0, ch;
|
116
|
-
while (ch = stream.next()) {
|
117
|
-
if (ch == "#" && maybeEnd == 2) {
|
118
|
-
state.tokenize = tokenBase;
|
119
|
-
break;
|
120
|
-
}
|
121
|
-
if (ch == "]")
|
122
|
-
maybeEnd++;
|
123
|
-
else if (ch != " ")
|
124
|
-
maybeEnd = 0;
|
125
|
-
}
|
126
|
-
return "meta";
|
127
|
-
}
|
128
|
-
// Interface
|
129
|
-
|
130
|
-
return {
|
131
|
-
startState: function(basecolumn) {
|
132
|
-
return {
|
133
|
-
tokenize: tokenBase,
|
134
|
-
beforeParams: false,
|
135
|
-
inParams: false
|
136
|
-
};
|
137
|
-
},
|
138
|
-
|
139
|
-
token: function(stream, state) {
|
140
|
-
if (stream.eatSpace()) return null;
|
141
|
-
return state.tokenize(stream, state);
|
142
|
-
}
|
143
|
-
};
|
144
|
-
});
|
145
|
-
|
146
|
-
CodeMirror.defineMIME("text/velocity", "velocity");
|