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,40 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>CodeMirror: Properties files mode</title>
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
7
|
-
<script src="properties.js"></script>
|
8
|
-
<style>.CodeMirror {border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;}</style>
|
9
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
10
|
-
</head>
|
11
|
-
<body>
|
12
|
-
<h1>CodeMirror: Properties files mode</h1>
|
13
|
-
<form><textarea id="code" name="code">
|
14
|
-
# This is a properties file
|
15
|
-
a.key = A value
|
16
|
-
another.key = http://example.com
|
17
|
-
! Exclamation mark as comment
|
18
|
-
but.not=Within ! A value # indeed
|
19
|
-
# Spaces at the beginning of a line
|
20
|
-
spaces.before.key=value
|
21
|
-
backslash=Used for multi\
|
22
|
-
line entries,\
|
23
|
-
that's convenient.
|
24
|
-
# Unicode sequences
|
25
|
-
unicode.key=This is \u0020 Unicode
|
26
|
-
no.multiline=here
|
27
|
-
# Colons
|
28
|
-
colons : can be used too
|
29
|
-
# Spaces
|
30
|
-
spaces\ in\ keys=Not very common...
|
31
|
-
</textarea></form>
|
32
|
-
<script>
|
33
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
|
34
|
-
</script>
|
35
|
-
|
36
|
-
<p><strong>MIME types defined:</strong> <code>text/x-properties</code>,
|
37
|
-
<code>text/x-ini</code>.</p>
|
38
|
-
|
39
|
-
</body>
|
40
|
-
</html>
|
@@ -1,63 +0,0 @@
|
|
1
|
-
CodeMirror.defineMode("properties", function() {
|
2
|
-
return {
|
3
|
-
token: function(stream, state) {
|
4
|
-
var sol = stream.sol() || state.afterSection;
|
5
|
-
var eol = stream.eol();
|
6
|
-
|
7
|
-
state.afterSection = false;
|
8
|
-
|
9
|
-
if (sol) {
|
10
|
-
if (state.nextMultiline) {
|
11
|
-
state.inMultiline = true;
|
12
|
-
state.nextMultiline = false;
|
13
|
-
} else {
|
14
|
-
state.position = "def";
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
if (eol && ! state.nextMultiline) {
|
19
|
-
state.inMultiline = false;
|
20
|
-
state.position = "def";
|
21
|
-
}
|
22
|
-
|
23
|
-
if (sol) {
|
24
|
-
while(stream.eatSpace());
|
25
|
-
}
|
26
|
-
|
27
|
-
var ch = stream.next();
|
28
|
-
|
29
|
-
if (sol && (ch === "#" || ch === "!" || ch === ";")) {
|
30
|
-
state.position = "comment";
|
31
|
-
stream.skipToEnd();
|
32
|
-
return "comment";
|
33
|
-
} else if (sol && ch === "[") {
|
34
|
-
state.afterSection = true;
|
35
|
-
stream.skipTo("]"); stream.eat("]");
|
36
|
-
return "header";
|
37
|
-
} else if (ch === "=" || ch === ":") {
|
38
|
-
state.position = "quote";
|
39
|
-
return null;
|
40
|
-
} else if (ch === "\\" && state.position === "quote") {
|
41
|
-
if (stream.next() !== "u") { // u = Unicode sequence \u1234
|
42
|
-
// Multiline value
|
43
|
-
state.nextMultiline = true;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
return state.position;
|
48
|
-
},
|
49
|
-
|
50
|
-
startState: function() {
|
51
|
-
return {
|
52
|
-
position : "def", // Current position, "def", "quote" or "comment"
|
53
|
-
nextMultiline : false, // Is the next line multiline value
|
54
|
-
inMultiline : false, // Is the current line a multiline value
|
55
|
-
afterSection : false // Did we just open a section
|
56
|
-
};
|
57
|
-
}
|
58
|
-
|
59
|
-
};
|
60
|
-
});
|
61
|
-
|
62
|
-
CodeMirror.defineMIME("text/x-properties", "properties");
|
63
|
-
CodeMirror.defineMIME("text/x-ini", "properties");
|
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2010 Timothy Farrell
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
@@ -1,122 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>CodeMirror: Python mode</title>
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
7
|
-
<script src="python.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: Python mode</h1>
|
13
|
-
|
14
|
-
<div><textarea id="code" name="code">
|
15
|
-
# Literals
|
16
|
-
1234
|
17
|
-
0.0e101
|
18
|
-
.123
|
19
|
-
0b01010011100
|
20
|
-
0o01234567
|
21
|
-
0x0987654321abcdef
|
22
|
-
7
|
23
|
-
2147483647
|
24
|
-
3L
|
25
|
-
79228162514264337593543950336L
|
26
|
-
0x100000000L
|
27
|
-
79228162514264337593543950336
|
28
|
-
0xdeadbeef
|
29
|
-
3.14j
|
30
|
-
10.j
|
31
|
-
10j
|
32
|
-
.001j
|
33
|
-
1e100j
|
34
|
-
3.14e-10j
|
35
|
-
|
36
|
-
|
37
|
-
# String Literals
|
38
|
-
'For\''
|
39
|
-
"God\""
|
40
|
-
"""so loved
|
41
|
-
the world"""
|
42
|
-
'''that he gave
|
43
|
-
his only begotten\' '''
|
44
|
-
'that whosoever believeth \
|
45
|
-
in him'
|
46
|
-
''
|
47
|
-
|
48
|
-
# Identifiers
|
49
|
-
__a__
|
50
|
-
a.b
|
51
|
-
a.b.c
|
52
|
-
|
53
|
-
# Operators
|
54
|
-
+ - * / % & | ^ ~ < >
|
55
|
-
== != <= >= <> << >> // **
|
56
|
-
and or not in is
|
57
|
-
|
58
|
-
# Delimiters
|
59
|
-
() [] {} , : ` = ; @ . # Note that @ and . require the proper context.
|
60
|
-
+= -= *= /= %= &= |= ^=
|
61
|
-
//= >>= <<= **=
|
62
|
-
|
63
|
-
# Keywords
|
64
|
-
as assert break class continue def del elif else except
|
65
|
-
finally for from global if import lambda pass raise
|
66
|
-
return try while with yield
|
67
|
-
|
68
|
-
# Python 2 Keywords (otherwise Identifiers)
|
69
|
-
exec print
|
70
|
-
|
71
|
-
# Python 3 Keywords (otherwise Identifiers)
|
72
|
-
nonlocal
|
73
|
-
|
74
|
-
# Types
|
75
|
-
bool classmethod complex dict enumerate float frozenset int list object
|
76
|
-
property reversed set slice staticmethod str super tuple type
|
77
|
-
|
78
|
-
# Python 2 Types (otherwise Identifiers)
|
79
|
-
basestring buffer file long unicode xrange
|
80
|
-
|
81
|
-
# Python 3 Types (otherwise Identifiers)
|
82
|
-
bytearray bytes filter map memoryview open range zip
|
83
|
-
|
84
|
-
# Some Example code
|
85
|
-
import os
|
86
|
-
from package import ParentClass
|
87
|
-
|
88
|
-
@nonsenseDecorator
|
89
|
-
def doesNothing():
|
90
|
-
pass
|
91
|
-
|
92
|
-
class ExampleClass(ParentClass):
|
93
|
-
@staticmethod
|
94
|
-
def example(inputStr):
|
95
|
-
a = list(inputStr)
|
96
|
-
a.reverse()
|
97
|
-
return ''.join(a)
|
98
|
-
|
99
|
-
def __init__(self, mixin = 'Hello'):
|
100
|
-
self.mixin = mixin
|
101
|
-
|
102
|
-
</textarea></div>
|
103
|
-
<script>
|
104
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
105
|
-
mode: {name: "python",
|
106
|
-
version: 2,
|
107
|
-
singleLineStringErrors: false},
|
108
|
-
lineNumbers: true,
|
109
|
-
indentUnit: 4,
|
110
|
-
tabMode: "shift",
|
111
|
-
matchBrackets: true
|
112
|
-
});
|
113
|
-
</script>
|
114
|
-
<h2>Configuration Options:</h2>
|
115
|
-
<ul>
|
116
|
-
<li>version - 2/3 - The version of Python to recognize. Default is 2.</li>
|
117
|
-
<li>singleLineStringErrors - true/false - If you have a single-line string that is not terminated at the end of the line, this will show subsequent lines as errors if true, otherwise it will consider the newline as the end of the string. Default is false.</li>
|
118
|
-
</ul>
|
119
|
-
|
120
|
-
<p><strong>MIME types defined:</strong> <code>text/x-python</code>.</p>
|
121
|
-
</body>
|
122
|
-
</html>
|
@@ -1,338 +0,0 @@
|
|
1
|
-
CodeMirror.defineMode("python", function(conf, parserConf) {
|
2
|
-
var ERRORCLASS = 'error';
|
3
|
-
|
4
|
-
function wordRegexp(words) {
|
5
|
-
return new RegExp("^((" + words.join(")|(") + "))\\b");
|
6
|
-
}
|
7
|
-
|
8
|
-
var singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!]");
|
9
|
-
var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]');
|
10
|
-
var doubleOperators = new RegExp("^((==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))");
|
11
|
-
var doubleDelimiters = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))");
|
12
|
-
var tripleDelimiters = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))");
|
13
|
-
var identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*");
|
14
|
-
|
15
|
-
var wordOperators = wordRegexp(['and', 'or', 'not', 'is', 'in']);
|
16
|
-
var commonkeywords = ['as', 'assert', 'break', 'class', 'continue',
|
17
|
-
'def', 'del', 'elif', 'else', 'except', 'finally',
|
18
|
-
'for', 'from', 'global', 'if', 'import',
|
19
|
-
'lambda', 'pass', 'raise', 'return',
|
20
|
-
'try', 'while', 'with', 'yield'];
|
21
|
-
var commonBuiltins = ['abs', 'all', 'any', 'bin', 'bool', 'bytearray', 'callable', 'chr',
|
22
|
-
'classmethod', 'compile', 'complex', 'delattr', 'dict', 'dir', 'divmod',
|
23
|
-
'enumerate', 'eval', 'filter', 'float', 'format', 'frozenset',
|
24
|
-
'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id',
|
25
|
-
'input', 'int', 'isinstance', 'issubclass', 'iter', 'len',
|
26
|
-
'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next',
|
27
|
-
'object', 'oct', 'open', 'ord', 'pow', 'property', 'range',
|
28
|
-
'repr', 'reversed', 'round', 'set', 'setattr', 'slice',
|
29
|
-
'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple',
|
30
|
-
'type', 'vars', 'zip', '__import__', 'NotImplemented',
|
31
|
-
'Ellipsis', '__debug__'];
|
32
|
-
var py2 = {'builtins': ['apply', 'basestring', 'buffer', 'cmp', 'coerce', 'execfile',
|
33
|
-
'file', 'intern', 'long', 'raw_input', 'reduce', 'reload',
|
34
|
-
'unichr', 'unicode', 'xrange', 'False', 'True', 'None'],
|
35
|
-
'keywords': ['exec', 'print']};
|
36
|
-
var py3 = {'builtins': ['ascii', 'bytes', 'exec', 'print'],
|
37
|
-
'keywords': ['nonlocal', 'False', 'True', 'None']};
|
38
|
-
|
39
|
-
if (!!parserConf.version && parseInt(parserConf.version, 10) === 3) {
|
40
|
-
commonkeywords = commonkeywords.concat(py3.keywords);
|
41
|
-
commonBuiltins = commonBuiltins.concat(py3.builtins);
|
42
|
-
var stringPrefixes = new RegExp("^(([rb]|(br))?('{3}|\"{3}|['\"]))", "i");
|
43
|
-
} else {
|
44
|
-
commonkeywords = commonkeywords.concat(py2.keywords);
|
45
|
-
commonBuiltins = commonBuiltins.concat(py2.builtins);
|
46
|
-
var stringPrefixes = new RegExp("^(([rub]|(ur)|(br))?('{3}|\"{3}|['\"]))", "i");
|
47
|
-
}
|
48
|
-
var keywords = wordRegexp(commonkeywords);
|
49
|
-
var builtins = wordRegexp(commonBuiltins);
|
50
|
-
|
51
|
-
var indentInfo = null;
|
52
|
-
|
53
|
-
// tokenizers
|
54
|
-
function tokenBase(stream, state) {
|
55
|
-
// Handle scope changes
|
56
|
-
if (stream.sol()) {
|
57
|
-
var scopeOffset = state.scopes[0].offset;
|
58
|
-
if (stream.eatSpace()) {
|
59
|
-
var lineOffset = stream.indentation();
|
60
|
-
if (lineOffset > scopeOffset) {
|
61
|
-
indentInfo = 'indent';
|
62
|
-
} else if (lineOffset < scopeOffset) {
|
63
|
-
indentInfo = 'dedent';
|
64
|
-
}
|
65
|
-
return null;
|
66
|
-
} else {
|
67
|
-
if (scopeOffset > 0) {
|
68
|
-
dedent(stream, state);
|
69
|
-
}
|
70
|
-
}
|
71
|
-
}
|
72
|
-
if (stream.eatSpace()) {
|
73
|
-
return null;
|
74
|
-
}
|
75
|
-
|
76
|
-
var ch = stream.peek();
|
77
|
-
|
78
|
-
// Handle Comments
|
79
|
-
if (ch === '#') {
|
80
|
-
stream.skipToEnd();
|
81
|
-
return 'comment';
|
82
|
-
}
|
83
|
-
|
84
|
-
// Handle Number Literals
|
85
|
-
if (stream.match(/^[0-9\.]/, false)) {
|
86
|
-
var floatLiteral = false;
|
87
|
-
// Floats
|
88
|
-
if (stream.match(/^\d*\.\d+(e[\+\-]?\d+)?/i)) { floatLiteral = true; }
|
89
|
-
if (stream.match(/^\d+\.\d*/)) { floatLiteral = true; }
|
90
|
-
if (stream.match(/^\.\d+/)) { floatLiteral = true; }
|
91
|
-
if (floatLiteral) {
|
92
|
-
// Float literals may be "imaginary"
|
93
|
-
stream.eat(/J/i);
|
94
|
-
return 'number';
|
95
|
-
}
|
96
|
-
// Integers
|
97
|
-
var intLiteral = false;
|
98
|
-
// Hex
|
99
|
-
if (stream.match(/^0x[0-9a-f]+/i)) { intLiteral = true; }
|
100
|
-
// Binary
|
101
|
-
if (stream.match(/^0b[01]+/i)) { intLiteral = true; }
|
102
|
-
// Octal
|
103
|
-
if (stream.match(/^0o[0-7]+/i)) { intLiteral = true; }
|
104
|
-
// Decimal
|
105
|
-
if (stream.match(/^[1-9]\d*(e[\+\-]?\d+)?/)) {
|
106
|
-
// Decimal literals may be "imaginary"
|
107
|
-
stream.eat(/J/i);
|
108
|
-
// TODO - Can you have imaginary longs?
|
109
|
-
intLiteral = true;
|
110
|
-
}
|
111
|
-
// Zero by itself with no other piece of number.
|
112
|
-
if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; }
|
113
|
-
if (intLiteral) {
|
114
|
-
// Integer literals may be "long"
|
115
|
-
stream.eat(/L/i);
|
116
|
-
return 'number';
|
117
|
-
}
|
118
|
-
}
|
119
|
-
|
120
|
-
// Handle Strings
|
121
|
-
if (stream.match(stringPrefixes)) {
|
122
|
-
state.tokenize = tokenStringFactory(stream.current());
|
123
|
-
return state.tokenize(stream, state);
|
124
|
-
}
|
125
|
-
|
126
|
-
// Handle operators and Delimiters
|
127
|
-
if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) {
|
128
|
-
return null;
|
129
|
-
}
|
130
|
-
if (stream.match(doubleOperators)
|
131
|
-
|| stream.match(singleOperators)
|
132
|
-
|| stream.match(wordOperators)) {
|
133
|
-
return 'operator';
|
134
|
-
}
|
135
|
-
if (stream.match(singleDelimiters)) {
|
136
|
-
return null;
|
137
|
-
}
|
138
|
-
|
139
|
-
if (stream.match(keywords)) {
|
140
|
-
return 'keyword';
|
141
|
-
}
|
142
|
-
|
143
|
-
if (stream.match(builtins)) {
|
144
|
-
return 'builtin';
|
145
|
-
}
|
146
|
-
|
147
|
-
if (stream.match(identifiers)) {
|
148
|
-
return 'variable';
|
149
|
-
}
|
150
|
-
|
151
|
-
// Handle non-detected items
|
152
|
-
stream.next();
|
153
|
-
return ERRORCLASS;
|
154
|
-
}
|
155
|
-
|
156
|
-
function tokenStringFactory(delimiter) {
|
157
|
-
while ('rub'.indexOf(delimiter.charAt(0).toLowerCase()) >= 0) {
|
158
|
-
delimiter = delimiter.substr(1);
|
159
|
-
}
|
160
|
-
var singleline = delimiter.length == 1;
|
161
|
-
var OUTCLASS = 'string';
|
162
|
-
|
163
|
-
return function tokenString(stream, state) {
|
164
|
-
while (!stream.eol()) {
|
165
|
-
stream.eatWhile(/[^'"\\]/);
|
166
|
-
if (stream.eat('\\')) {
|
167
|
-
stream.next();
|
168
|
-
if (singleline && stream.eol()) {
|
169
|
-
return OUTCLASS;
|
170
|
-
}
|
171
|
-
} else if (stream.match(delimiter)) {
|
172
|
-
state.tokenize = tokenBase;
|
173
|
-
return OUTCLASS;
|
174
|
-
} else {
|
175
|
-
stream.eat(/['"]/);
|
176
|
-
}
|
177
|
-
}
|
178
|
-
if (singleline) {
|
179
|
-
if (parserConf.singleLineStringErrors) {
|
180
|
-
return ERRORCLASS;
|
181
|
-
} else {
|
182
|
-
state.tokenize = tokenBase;
|
183
|
-
}
|
184
|
-
}
|
185
|
-
return OUTCLASS;
|
186
|
-
};
|
187
|
-
}
|
188
|
-
|
189
|
-
function indent(stream, state, type) {
|
190
|
-
type = type || 'py';
|
191
|
-
var indentUnit = 0;
|
192
|
-
if (type === 'py') {
|
193
|
-
if (state.scopes[0].type !== 'py') {
|
194
|
-
state.scopes[0].offset = stream.indentation();
|
195
|
-
return;
|
196
|
-
}
|
197
|
-
for (var i = 0; i < state.scopes.length; ++i) {
|
198
|
-
if (state.scopes[i].type === 'py') {
|
199
|
-
indentUnit = state.scopes[i].offset + conf.indentUnit;
|
200
|
-
break;
|
201
|
-
}
|
202
|
-
}
|
203
|
-
} else {
|
204
|
-
indentUnit = stream.column() + stream.current().length;
|
205
|
-
}
|
206
|
-
state.scopes.unshift({
|
207
|
-
offset: indentUnit,
|
208
|
-
type: type
|
209
|
-
});
|
210
|
-
}
|
211
|
-
|
212
|
-
function dedent(stream, state, type) {
|
213
|
-
type = type || 'py';
|
214
|
-
if (state.scopes.length == 1) return;
|
215
|
-
if (state.scopes[0].type === 'py') {
|
216
|
-
var _indent = stream.indentation();
|
217
|
-
var _indent_index = -1;
|
218
|
-
for (var i = 0; i < state.scopes.length; ++i) {
|
219
|
-
if (_indent === state.scopes[i].offset) {
|
220
|
-
_indent_index = i;
|
221
|
-
break;
|
222
|
-
}
|
223
|
-
}
|
224
|
-
if (_indent_index === -1) {
|
225
|
-
return true;
|
226
|
-
}
|
227
|
-
while (state.scopes[0].offset !== _indent) {
|
228
|
-
state.scopes.shift();
|
229
|
-
}
|
230
|
-
return false
|
231
|
-
} else {
|
232
|
-
if (type === 'py') {
|
233
|
-
state.scopes[0].offset = stream.indentation();
|
234
|
-
return false;
|
235
|
-
} else {
|
236
|
-
if (state.scopes[0].type != type) {
|
237
|
-
return true;
|
238
|
-
}
|
239
|
-
state.scopes.shift();
|
240
|
-
return false;
|
241
|
-
}
|
242
|
-
}
|
243
|
-
}
|
244
|
-
|
245
|
-
function tokenLexer(stream, state) {
|
246
|
-
indentInfo = null;
|
247
|
-
var style = state.tokenize(stream, state);
|
248
|
-
var current = stream.current();
|
249
|
-
|
250
|
-
// Handle '.' connected identifiers
|
251
|
-
if (current === '.') {
|
252
|
-
style = stream.match(identifiers, false) ? null : ERRORCLASS;
|
253
|
-
if (style === null && state.lastToken === 'meta') {
|
254
|
-
// Apply 'meta' style to '.' connected identifiers when
|
255
|
-
// appropriate.
|
256
|
-
style = 'meta';
|
257
|
-
}
|
258
|
-
return style;
|
259
|
-
}
|
260
|
-
|
261
|
-
// Handle decorators
|
262
|
-
if (current === '@') {
|
263
|
-
return stream.match(identifiers, false) ? 'meta' : ERRORCLASS;
|
264
|
-
}
|
265
|
-
|
266
|
-
if ((style === 'variable' || style === 'builtin')
|
267
|
-
&& state.lastToken === 'meta') {
|
268
|
-
style = 'meta';
|
269
|
-
}
|
270
|
-
|
271
|
-
// Handle scope changes.
|
272
|
-
if (current === 'pass' || current === 'return') {
|
273
|
-
state.dedent += 1;
|
274
|
-
}
|
275
|
-
if (current === 'lambda') state.lambda = true;
|
276
|
-
if ((current === ':' && !state.lambda && state.scopes[0].type == 'py')
|
277
|
-
|| indentInfo === 'indent') {
|
278
|
-
indent(stream, state);
|
279
|
-
}
|
280
|
-
var delimiter_index = '[({'.indexOf(current);
|
281
|
-
if (delimiter_index !== -1) {
|
282
|
-
indent(stream, state, '])}'.slice(delimiter_index, delimiter_index+1));
|
283
|
-
}
|
284
|
-
if (indentInfo === 'dedent') {
|
285
|
-
if (dedent(stream, state)) {
|
286
|
-
return ERRORCLASS;
|
287
|
-
}
|
288
|
-
}
|
289
|
-
delimiter_index = '])}'.indexOf(current);
|
290
|
-
if (delimiter_index !== -1) {
|
291
|
-
if (dedent(stream, state, current)) {
|
292
|
-
return ERRORCLASS;
|
293
|
-
}
|
294
|
-
}
|
295
|
-
if (state.dedent > 0 && stream.eol() && state.scopes[0].type == 'py') {
|
296
|
-
if (state.scopes.length > 1) state.scopes.shift();
|
297
|
-
state.dedent -= 1;
|
298
|
-
}
|
299
|
-
|
300
|
-
return style;
|
301
|
-
}
|
302
|
-
|
303
|
-
var external = {
|
304
|
-
startState: function(basecolumn) {
|
305
|
-
return {
|
306
|
-
tokenize: tokenBase,
|
307
|
-
scopes: [{offset:basecolumn || 0, type:'py'}],
|
308
|
-
lastToken: null,
|
309
|
-
lambda: false,
|
310
|
-
dedent: 0
|
311
|
-
};
|
312
|
-
},
|
313
|
-
|
314
|
-
token: function(stream, state) {
|
315
|
-
var style = tokenLexer(stream, state);
|
316
|
-
|
317
|
-
state.lastToken = style;
|
318
|
-
|
319
|
-
if (stream.eol() && stream.lambda) {
|
320
|
-
state.lambda = false;
|
321
|
-
}
|
322
|
-
|
323
|
-
return style;
|
324
|
-
},
|
325
|
-
|
326
|
-
indent: function(state, textAfter) {
|
327
|
-
if (state.tokenize != tokenBase) {
|
328
|
-
return 0;
|
329
|
-
}
|
330
|
-
|
331
|
-
return state.scopes[0].offset;
|
332
|
-
}
|
333
|
-
|
334
|
-
};
|
335
|
-
return external;
|
336
|
-
});
|
337
|
-
|
338
|
-
CodeMirror.defineMIME("text/x-python", "python");
|
@@ -1,24 +0,0 @@
|
|
1
|
-
Copyright (c) 2011, Ubalo, Inc.
|
2
|
-
All rights reserved.
|
3
|
-
|
4
|
-
Redistribution and use in source and binary forms, with or without
|
5
|
-
modification, are permitted provided that the following conditions are met:
|
6
|
-
* Redistributions of source code must retain the above copyright
|
7
|
-
notice, this list of conditions and the following disclaimer.
|
8
|
-
* Redistributions in binary form must reproduce the above copyright
|
9
|
-
notice, this list of conditions and the following disclaimer in the
|
10
|
-
documentation and/or other materials provided with the distribution.
|
11
|
-
* Neither the name of the Ubalo, Inc nor the names of its
|
12
|
-
contributors may be used to endorse or promote products derived
|
13
|
-
from this software without specific prior written permission.
|
14
|
-
|
15
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
16
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
17
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
18
|
-
DISCLAIMED. IN NO EVENT SHALL UBALO, INC BE LIABLE FOR ANY
|
19
|
-
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
20
|
-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
21
|
-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
22
|
-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
23
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
24
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -1,73 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>CodeMirror: R mode</title>
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
7
|
-
<script src="r.js"></script>
|
8
|
-
<style>
|
9
|
-
.CodeMirror { border-top: 1px solid silver; border-bottom: 1px solid silver; }
|
10
|
-
.cm-s-default span.cm-semi { color: blue; font-weight: bold; }
|
11
|
-
.cm-s-default span.cm-dollar { color: orange; font-weight: bold; }
|
12
|
-
.cm-s-default span.cm-arrow { color: brown; }
|
13
|
-
.cm-s-default span.cm-arg-is { color: brown; }
|
14
|
-
</style>
|
15
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
16
|
-
</head>
|
17
|
-
<body>
|
18
|
-
<h1>CodeMirror: R mode</h1>
|
19
|
-
<form><textarea id="code" name="code">
|
20
|
-
# Code from http://www.mayin.org/ajayshah/KB/R/
|
21
|
-
|
22
|
-
# FIRST LEARN ABOUT LISTS --
|
23
|
-
X = list(height=5.4, weight=54)
|
24
|
-
print("Use default printing --")
|
25
|
-
print(X)
|
26
|
-
print("Accessing individual elements --")
|
27
|
-
cat("Your height is ", X$height, " and your weight is ", X$weight, "\n")
|
28
|
-
|
29
|
-
# FUNCTIONS --
|
30
|
-
square <- function(x) {
|
31
|
-
return(x*x)
|
32
|
-
}
|
33
|
-
cat("The square of 3 is ", square(3), "\n")
|
34
|
-
|
35
|
-
# default value of the arg is set to 5.
|
36
|
-
cube <- function(x=5) {
|
37
|
-
return(x*x*x);
|
38
|
-
}
|
39
|
-
cat("Calling cube with 2 : ", cube(2), "\n") # will give 2^3
|
40
|
-
cat("Calling cube : ", cube(), "\n") # will default to 5^3.
|
41
|
-
|
42
|
-
# LEARN ABOUT FUNCTIONS THAT RETURN MULTIPLE OBJECTS --
|
43
|
-
powers <- function(x) {
|
44
|
-
parcel = list(x2=x*x, x3=x*x*x, x4=x*x*x*x);
|
45
|
-
return(parcel);
|
46
|
-
}
|
47
|
-
|
48
|
-
X = powers(3);
|
49
|
-
print("Showing powers of 3 --"); print(X);
|
50
|
-
|
51
|
-
# WRITING THIS COMPACTLY (4 lines instead of 7)
|
52
|
-
|
53
|
-
powerful <- function(x) {
|
54
|
-
return(list(x2=x*x, x3=x*x*x, x4=x*x*x*x));
|
55
|
-
}
|
56
|
-
print("Showing powers of 3 --"); print(powerful(3));
|
57
|
-
|
58
|
-
# In R, the last expression in a function is, by default, what is
|
59
|
-
# returned. So you could equally just say:
|
60
|
-
powerful <- function(x) {list(x2=x*x, x3=x*x*x, x4=x*x*x*x)}
|
61
|
-
</textarea></form>
|
62
|
-
<script>
|
63
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
|
64
|
-
</script>
|
65
|
-
|
66
|
-
<p><strong>MIME types defined:</strong> <code>text/x-rsrc</code>.</p>
|
67
|
-
|
68
|
-
<p>Development of the CodeMirror R mode was kindly sponsored
|
69
|
-
by <a href="http://ubalo.com/">Ubalo</a>, who hold
|
70
|
-
the <a href="LICENSE">license</a>.</p>
|
71
|
-
|
72
|
-
</body>
|
73
|
-
</html>
|