plate-lang 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.bowerrc +3 -0
- data/.codeclimate.yml +7 -0
- data/.gitignore +25 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +21 -0
- data/README.md +64 -0
- data/Rakefile +36 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/bower.json +10 -0
- data/circle.yml +4 -0
- data/exe/plate +6 -0
- data/lib/plate/cli.rb +97 -0
- data/lib/plate/compiler.rb +244 -0
- data/lib/plate/grammar.y +145 -0
- data/lib/plate/lexer.rb +138 -0
- data/lib/plate/nodes.rb +107 -0
- data/lib/plate/parser.rb +568 -0
- data/lib/plate/version.rb +3 -0
- data/lib/plate.rb +14 -0
- data/plate-lang.gemspec +30 -0
- data/skeleton/app/assets/css/app.css +21 -0
- data/skeleton/app/assets/js/app.js +15 -0
- data/skeleton/app/index.html +26 -0
- data/skeleton/app/vendor/.keep +0 -0
- data/skeleton/vendor/bootstrap/.bower.json +44 -0
- data/skeleton/vendor/bootstrap/Gruntfile.js +531 -0
- data/skeleton/vendor/bootstrap/LICENSE +21 -0
- data/skeleton/vendor/bootstrap/README.md +137 -0
- data/skeleton/vendor/bootstrap/bower.json +34 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap-theme.css +587 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap-theme.css.map +1 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap-theme.min.css +5 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap.css +6800 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap.css.map +1 -0
- data/skeleton/vendor/bootstrap/dist/css/bootstrap.min.css +5 -0
- data/skeleton/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/skeleton/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +288 -0
- data/skeleton/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/skeleton/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/skeleton/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/skeleton/vendor/bootstrap/dist/js/bootstrap.js +2363 -0
- data/skeleton/vendor/bootstrap/dist/js/bootstrap.min.js +7 -0
- data/skeleton/vendor/bootstrap/dist/js/npm.js +13 -0
- data/skeleton/vendor/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
- data/skeleton/vendor/bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
- data/skeleton/vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/skeleton/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
- data/skeleton/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/skeleton/vendor/bootstrap/grunt/.jshintrc +7 -0
- data/skeleton/vendor/bootstrap/grunt/bs-commonjs-generator.js +30 -0
- data/skeleton/vendor/bootstrap/grunt/bs-glyphicons-data-generator.js +42 -0
- data/skeleton/vendor/bootstrap/grunt/bs-lessdoc-parser.js +237 -0
- data/skeleton/vendor/bootstrap/grunt/bs-raw-files-generator.js +44 -0
- data/skeleton/vendor/bootstrap/grunt/configBridge.json +46 -0
- data/skeleton/vendor/bootstrap/grunt/sauce_browsers.yml +82 -0
- data/skeleton/vendor/bootstrap/js/.jscsrc +42 -0
- data/skeleton/vendor/bootstrap/js/.jshintrc +15 -0
- data/skeleton/vendor/bootstrap/js/affix.js +162 -0
- data/skeleton/vendor/bootstrap/js/alert.js +94 -0
- data/skeleton/vendor/bootstrap/js/button.js +120 -0
- data/skeleton/vendor/bootstrap/js/carousel.js +237 -0
- data/skeleton/vendor/bootstrap/js/collapse.js +211 -0
- data/skeleton/vendor/bootstrap/js/dropdown.js +165 -0
- data/skeleton/vendor/bootstrap/js/modal.js +337 -0
- data/skeleton/vendor/bootstrap/js/popover.js +108 -0
- data/skeleton/vendor/bootstrap/js/scrollspy.js +172 -0
- data/skeleton/vendor/bootstrap/js/tab.js +155 -0
- data/skeleton/vendor/bootstrap/js/tooltip.js +514 -0
- data/skeleton/vendor/bootstrap/js/transition.js +59 -0
- data/skeleton/vendor/bootstrap/less/.csscomb.json +304 -0
- data/skeleton/vendor/bootstrap/less/.csslintrc +19 -0
- data/skeleton/vendor/bootstrap/less/alerts.less +73 -0
- data/skeleton/vendor/bootstrap/less/badges.less +66 -0
- data/skeleton/vendor/bootstrap/less/bootstrap.less +56 -0
- data/skeleton/vendor/bootstrap/less/breadcrumbs.less +26 -0
- data/skeleton/vendor/bootstrap/less/button-groups.less +244 -0
- data/skeleton/vendor/bootstrap/less/buttons.less +166 -0
- data/skeleton/vendor/bootstrap/less/carousel.less +269 -0
- data/skeleton/vendor/bootstrap/less/close.less +34 -0
- data/skeleton/vendor/bootstrap/less/code.less +69 -0
- data/skeleton/vendor/bootstrap/less/component-animations.less +33 -0
- data/skeleton/vendor/bootstrap/less/dropdowns.less +216 -0
- data/skeleton/vendor/bootstrap/less/forms.less +607 -0
- data/skeleton/vendor/bootstrap/less/glyphicons.less +305 -0
- data/skeleton/vendor/bootstrap/less/grid.less +84 -0
- data/skeleton/vendor/bootstrap/less/input-groups.less +167 -0
- data/skeleton/vendor/bootstrap/less/jumbotron.less +52 -0
- data/skeleton/vendor/bootstrap/less/labels.less +64 -0
- data/skeleton/vendor/bootstrap/less/list-group.less +130 -0
- data/skeleton/vendor/bootstrap/less/media.less +66 -0
- data/skeleton/vendor/bootstrap/less/mixins/alerts.less +14 -0
- data/skeleton/vendor/bootstrap/less/mixins/background-variant.less +9 -0
- data/skeleton/vendor/bootstrap/less/mixins/border-radius.less +18 -0
- data/skeleton/vendor/bootstrap/less/mixins/buttons.less +68 -0
- data/skeleton/vendor/bootstrap/less/mixins/center-block.less +7 -0
- data/skeleton/vendor/bootstrap/less/mixins/clearfix.less +22 -0
- data/skeleton/vendor/bootstrap/less/mixins/forms.less +85 -0
- data/skeleton/vendor/bootstrap/less/mixins/gradients.less +59 -0
- data/skeleton/vendor/bootstrap/less/mixins/grid-framework.less +91 -0
- data/skeleton/vendor/bootstrap/less/mixins/grid.less +122 -0
- data/skeleton/vendor/bootstrap/less/mixins/hide-text.less +21 -0
- data/skeleton/vendor/bootstrap/less/mixins/image.less +33 -0
- data/skeleton/vendor/bootstrap/less/mixins/labels.less +12 -0
- data/skeleton/vendor/bootstrap/less/mixins/list-group.less +30 -0
- data/skeleton/vendor/bootstrap/less/mixins/nav-divider.less +10 -0
- data/skeleton/vendor/bootstrap/less/mixins/nav-vertical-align.less +9 -0
- data/skeleton/vendor/bootstrap/less/mixins/opacity.less +8 -0
- data/skeleton/vendor/bootstrap/less/mixins/pagination.less +24 -0
- data/skeleton/vendor/bootstrap/less/mixins/panels.less +24 -0
- data/skeleton/vendor/bootstrap/less/mixins/progress-bar.less +10 -0
- data/skeleton/vendor/bootstrap/less/mixins/reset-filter.less +8 -0
- data/skeleton/vendor/bootstrap/less/mixins/reset-text.less +18 -0
- data/skeleton/vendor/bootstrap/less/mixins/resize.less +6 -0
- data/skeleton/vendor/bootstrap/less/mixins/responsive-visibility.less +15 -0
- data/skeleton/vendor/bootstrap/less/mixins/size.less +10 -0
- data/skeleton/vendor/bootstrap/less/mixins/tab-focus.less +9 -0
- data/skeleton/vendor/bootstrap/less/mixins/table-row.less +28 -0
- data/skeleton/vendor/bootstrap/less/mixins/text-emphasis.less +9 -0
- data/skeleton/vendor/bootstrap/less/mixins/text-overflow.less +8 -0
- data/skeleton/vendor/bootstrap/less/mixins/vendor-prefixes.less +227 -0
- data/skeleton/vendor/bootstrap/less/mixins.less +40 -0
- data/skeleton/vendor/bootstrap/less/modals.less +150 -0
- data/skeleton/vendor/bootstrap/less/navbar.less +660 -0
- data/skeleton/vendor/bootstrap/less/navs.less +242 -0
- data/skeleton/vendor/bootstrap/less/normalize.less +424 -0
- data/skeleton/vendor/bootstrap/less/pager.less +54 -0
- data/skeleton/vendor/bootstrap/less/pagination.less +89 -0
- data/skeleton/vendor/bootstrap/less/panels.less +271 -0
- data/skeleton/vendor/bootstrap/less/popovers.less +131 -0
- data/skeleton/vendor/bootstrap/less/print.less +101 -0
- data/skeleton/vendor/bootstrap/less/progress-bars.less +87 -0
- data/skeleton/vendor/bootstrap/less/responsive-embed.less +35 -0
- data/skeleton/vendor/bootstrap/less/responsive-utilities.less +194 -0
- data/skeleton/vendor/bootstrap/less/scaffolding.less +161 -0
- data/skeleton/vendor/bootstrap/less/tables.less +234 -0
- data/skeleton/vendor/bootstrap/less/theme.less +291 -0
- data/skeleton/vendor/bootstrap/less/thumbnails.less +36 -0
- data/skeleton/vendor/bootstrap/less/tooltip.less +101 -0
- data/skeleton/vendor/bootstrap/less/type.less +302 -0
- data/skeleton/vendor/bootstrap/less/utilities.less +55 -0
- data/skeleton/vendor/bootstrap/less/variables.less +867 -0
- data/skeleton/vendor/bootstrap/less/wells.less +29 -0
- data/skeleton/vendor/bootstrap/package.js +25 -0
- data/skeleton/vendor/bootstrap/package.json +87 -0
- data/skeleton/vendor/bootswatch/.bower.json +52 -0
- data/skeleton/vendor/bootswatch/.bowerrc +5 -0
- data/skeleton/vendor/bootswatch/LICENSE +21 -0
- data/skeleton/vendor/bootswatch/README.md +59 -0
- data/skeleton/vendor/bootswatch/bower.json +42 -0
- data/skeleton/vendor/bootswatch/cerulean/_bootswatch.scss +131 -0
- data/skeleton/vendor/bootswatch/cerulean/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/cerulean/bootstrap.css +6944 -0
- data/skeleton/vendor/bootswatch/cerulean/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/cerulean/bootswatch.less +131 -0
- data/skeleton/vendor/bootswatch/cerulean/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/cerulean/variables.less +867 -0
- data/skeleton/vendor/bootswatch/cosmo/_bootswatch.scss +261 -0
- data/skeleton/vendor/bootswatch/cosmo/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/cosmo/bootstrap.css +6979 -0
- data/skeleton/vendor/bootswatch/cosmo/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/cosmo/bootswatch.less +261 -0
- data/skeleton/vendor/bootswatch/cosmo/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/cosmo/variables.less +867 -0
- data/skeleton/vendor/bootswatch/cyborg/_bootswatch.scss +234 -0
- data/skeleton/vendor/bootswatch/cyborg/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/cyborg/bootstrap.css +6963 -0
- data/skeleton/vendor/bootswatch/cyborg/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/cyborg/bootswatch.less +234 -0
- data/skeleton/vendor/bootswatch/cyborg/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/cyborg/variables.less +867 -0
- data/skeleton/vendor/bootswatch/darkly/_bootswatch.scss +346 -0
- data/skeleton/vendor/bootswatch/darkly/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/darkly/bootstrap.css +7086 -0
- data/skeleton/vendor/bootswatch/darkly/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/darkly/bootswatch.less +346 -0
- data/skeleton/vendor/bootswatch/darkly/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/darkly/variables.less +867 -0
- data/skeleton/vendor/bootswatch/flatly/_bootswatch.scss +329 -0
- data/skeleton/vendor/bootswatch/flatly/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/flatly/bootstrap.css +7065 -0
- data/skeleton/vendor/bootswatch/flatly/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/flatly/bootswatch.less +329 -0
- data/skeleton/vendor/bootswatch/flatly/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/flatly/variables.less +867 -0
- data/skeleton/vendor/bootswatch/fonts/glyphicons-halflings-regular.eot +0 -0
- data/skeleton/vendor/bootswatch/fonts/glyphicons-halflings-regular.svg +288 -0
- data/skeleton/vendor/bootswatch/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/skeleton/vendor/bootswatch/fonts/glyphicons-halflings-regular.woff +0 -0
- data/skeleton/vendor/bootswatch/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/skeleton/vendor/bootswatch/journal/_bootswatch.scss +144 -0
- data/skeleton/vendor/bootswatch/journal/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/journal/bootstrap.css +6891 -0
- data/skeleton/vendor/bootswatch/journal/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/journal/bootswatch.less +144 -0
- data/skeleton/vendor/bootswatch/journal/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/journal/variables.less +867 -0
- data/skeleton/vendor/bootswatch/lumen/_bootswatch.scss +520 -0
- data/skeleton/vendor/bootswatch/lumen/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/lumen/bootstrap.css +7216 -0
- data/skeleton/vendor/bootswatch/lumen/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/lumen/bootswatch.less +520 -0
- data/skeleton/vendor/bootswatch/lumen/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/lumen/variables.less +867 -0
- data/skeleton/vendor/bootswatch/paper/_bootswatch.scss +585 -0
- data/skeleton/vendor/bootswatch/paper/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/paper/bootstrap.css +7502 -0
- data/skeleton/vendor/bootswatch/paper/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/paper/bootswatch.less +585 -0
- data/skeleton/vendor/bootswatch/paper/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/paper/variables.less +867 -0
- data/skeleton/vendor/bootswatch/readable/_bootswatch.scss +182 -0
- data/skeleton/vendor/bootswatch/readable/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/readable/bootstrap.css +6915 -0
- data/skeleton/vendor/bootswatch/readable/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/readable/bootswatch.less +182 -0
- data/skeleton/vendor/bootswatch/readable/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/readable/variables.less +867 -0
- data/skeleton/vendor/bootswatch/sandstone/_bootswatch.scss +194 -0
- data/skeleton/vendor/bootswatch/sandstone/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/sandstone/bootstrap.css +6953 -0
- data/skeleton/vendor/bootswatch/sandstone/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/sandstone/bootswatch.less +194 -0
- data/skeleton/vendor/bootswatch/sandstone/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/sandstone/variables.less +867 -0
- data/skeleton/vendor/bootswatch/simplex/_bootswatch.scss +169 -0
- data/skeleton/vendor/bootswatch/simplex/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/simplex/bootstrap.css +6953 -0
- data/skeleton/vendor/bootswatch/simplex/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/simplex/bootswatch.less +169 -0
- data/skeleton/vendor/bootswatch/simplex/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/simplex/variables.less +867 -0
- data/skeleton/vendor/bootswatch/slate/_bootswatch.scss +441 -0
- data/skeleton/vendor/bootswatch/slate/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/slate/bootstrap.css +7301 -0
- data/skeleton/vendor/bootswatch/slate/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/slate/bootswatch.less +441 -0
- data/skeleton/vendor/bootswatch/slate/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/slate/variables.less +867 -0
- data/skeleton/vendor/bootswatch/spacelab/_bootswatch.scss +137 -0
- data/skeleton/vendor/bootswatch/spacelab/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/spacelab/bootstrap.css +6998 -0
- data/skeleton/vendor/bootswatch/spacelab/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/spacelab/bootswatch.less +137 -0
- data/skeleton/vendor/bootswatch/spacelab/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/spacelab/variables.less +867 -0
- data/skeleton/vendor/bootswatch/superhero/_bootswatch.scss +356 -0
- data/skeleton/vendor/bootswatch/superhero/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/superhero/bootstrap.css +7048 -0
- data/skeleton/vendor/bootswatch/superhero/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/superhero/bootswatch.less +356 -0
- data/skeleton/vendor/bootswatch/superhero/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/superhero/variables.less +867 -0
- data/skeleton/vendor/bootswatch/united/_bootswatch.scss +55 -0
- data/skeleton/vendor/bootswatch/united/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/united/bootstrap.css +6813 -0
- data/skeleton/vendor/bootswatch/united/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/united/bootswatch.less +55 -0
- data/skeleton/vendor/bootswatch/united/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/united/variables.less +867 -0
- data/skeleton/vendor/bootswatch/yeti/_bootswatch.scss +437 -0
- data/skeleton/vendor/bootswatch/yeti/_variables.scss +868 -0
- data/skeleton/vendor/bootswatch/yeti/bootstrap.css +7107 -0
- data/skeleton/vendor/bootswatch/yeti/bootstrap.min.css +11 -0
- data/skeleton/vendor/bootswatch/yeti/bootswatch.less +437 -0
- data/skeleton/vendor/bootswatch/yeti/thumbnail.png +0 -0
- data/skeleton/vendor/bootswatch/yeti/variables.less +867 -0
- data/skeleton/vendor/font-awesome/.bower.json +36 -0
- data/skeleton/vendor/font-awesome/.gitignore +33 -0
- data/skeleton/vendor/font-awesome/.npmignore +42 -0
- data/skeleton/vendor/font-awesome/HELP-US-OUT.txt +7 -0
- data/skeleton/vendor/font-awesome/bower.json +22 -0
- data/skeleton/vendor/font-awesome/css/font-awesome.css +2026 -0
- data/skeleton/vendor/font-awesome/css/font-awesome.css.map +7 -0
- data/skeleton/vendor/font-awesome/css/font-awesome.min.css +4 -0
- data/skeleton/vendor/font-awesome/fonts/FontAwesome.otf +0 -0
- data/skeleton/vendor/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/skeleton/vendor/font-awesome/fonts/fontawesome-webfont.svg +640 -0
- data/skeleton/vendor/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/skeleton/vendor/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/skeleton/vendor/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- data/skeleton/vendor/font-awesome/less/animated.less +34 -0
- data/skeleton/vendor/font-awesome/less/bordered-pulled.less +25 -0
- data/skeleton/vendor/font-awesome/less/core.less +12 -0
- data/skeleton/vendor/font-awesome/less/fixed-width.less +6 -0
- data/skeleton/vendor/font-awesome/less/font-awesome.less +17 -0
- data/skeleton/vendor/font-awesome/less/icons.less +677 -0
- data/skeleton/vendor/font-awesome/less/larger.less +13 -0
- data/skeleton/vendor/font-awesome/less/list.less +19 -0
- data/skeleton/vendor/font-awesome/less/mixins.less +26 -0
- data/skeleton/vendor/font-awesome/less/path.less +15 -0
- data/skeleton/vendor/font-awesome/less/rotated-flipped.less +20 -0
- data/skeleton/vendor/font-awesome/less/stacked.less +20 -0
- data/skeleton/vendor/font-awesome/less/variables.less +688 -0
- data/skeleton/vendor/font-awesome/scss/_animated.scss +34 -0
- data/skeleton/vendor/font-awesome/scss/_bordered-pulled.scss +25 -0
- data/skeleton/vendor/font-awesome/scss/_core.scss +12 -0
- data/skeleton/vendor/font-awesome/scss/_fixed-width.scss +6 -0
- data/skeleton/vendor/font-awesome/scss/_icons.scss +677 -0
- data/skeleton/vendor/font-awesome/scss/_larger.scss +13 -0
- data/skeleton/vendor/font-awesome/scss/_list.scss +19 -0
- data/skeleton/vendor/font-awesome/scss/_mixins.scss +26 -0
- data/skeleton/vendor/font-awesome/scss/_path.scss +15 -0
- data/skeleton/vendor/font-awesome/scss/_rotated-flipped.scss +20 -0
- data/skeleton/vendor/font-awesome/scss/_stacked.scss +20 -0
- data/skeleton/vendor/font-awesome/scss/_variables.scss +688 -0
- data/skeleton/vendor/font-awesome/scss/font-awesome.scss +17 -0
- data/skeleton/vendor/google-code-prettify/.bower.json +26 -0
- data/skeleton/vendor/google-code-prettify/CHANGES.html +172 -0
- data/skeleton/vendor/google-code-prettify/COPYING +191 -0
- data/skeleton/vendor/google-code-prettify/README-zh-Hans.html +143 -0
- data/skeleton/vendor/google-code-prettify/README.html +233 -0
- data/skeleton/vendor/google-code-prettify/README.md +54 -0
- data/skeleton/vendor/google-code-prettify/bin/prettify.min.css +1 -0
- data/skeleton/vendor/google-code-prettify/bin/prettify.min.js +30 -0
- data/skeleton/vendor/google-code-prettify/bin/run_prettify.min.js +34 -0
- data/skeleton/vendor/google-code-prettify/bower.json +16 -0
- data/skeleton/vendor/google-code-prettify/examples/quine.html +55 -0
- data/skeleton/vendor/google-code-prettify/src/lang-apollo.js +51 -0
- data/skeleton/vendor/google-code-prettify/src/lang-basic.js +32 -0
- data/skeleton/vendor/google-code-prettify/src/lang-clj.js +64 -0
- data/skeleton/vendor/google-code-prettify/src/lang-css.js +159 -0
- data/skeleton/vendor/google-code-prettify/src/lang-dart.js +88 -0
- data/skeleton/vendor/google-code-prettify/src/lang-erlang.js +92 -0
- data/skeleton/vendor/google-code-prettify/src/lang-go.js +58 -0
- data/skeleton/vendor/google-code-prettify/src/lang-hs.js +101 -0
- data/skeleton/vendor/google-code-prettify/src/lang-lisp.js +94 -0
- data/skeleton/vendor/google-code-prettify/src/lang-llvm.js +61 -0
- data/skeleton/vendor/google-code-prettify/src/lang-lua.js +59 -0
- data/skeleton/vendor/google-code-prettify/src/lang-matlab.js +180 -0
- data/skeleton/vendor/google-code-prettify/src/lang-ml.js +56 -0
- data/skeleton/vendor/google-code-prettify/src/lang-mumps.js +139 -0
- data/skeleton/vendor/google-code-prettify/src/lang-n.js +65 -0
- data/skeleton/vendor/google-code-prettify/src/lang-pascal.js +32 -0
- data/skeleton/vendor/google-code-prettify/src/lang-proto.js +35 -0
- data/skeleton/vendor/google-code-prettify/src/lang-r.js +57 -0
- data/skeleton/vendor/google-code-prettify/src/lang-rd.js +47 -0
- data/skeleton/vendor/google-code-prettify/src/lang-scala.js +54 -0
- data/skeleton/vendor/google-code-prettify/src/lang-sql.js +58 -0
- data/skeleton/vendor/google-code-prettify/src/lang-tcl.js +62 -0
- data/skeleton/vendor/google-code-prettify/src/lang-tex.js +46 -0
- data/skeleton/vendor/google-code-prettify/src/lang-vb.js +66 -0
- data/skeleton/vendor/google-code-prettify/src/lang-vhdl.js +34 -0
- data/skeleton/vendor/google-code-prettify/src/lang-wiki.js +53 -0
- data/skeleton/vendor/google-code-prettify/src/lang-xq.js +67 -0
- data/skeleton/vendor/google-code-prettify/src/lang-yaml.js +27 -0
- data/skeleton/vendor/google-code-prettify/src/prettify.css +52 -0
- data/skeleton/vendor/google-code-prettify/src/prettify.js +1655 -0
- data/skeleton/vendor/google-code-prettify/src/run_prettify.js +1905 -0
- data/skeleton/vendor/google-code-prettify/styles/demo.html +61 -0
- data/skeleton/vendor/google-code-prettify/styles/desert.css +34 -0
- data/skeleton/vendor/google-code-prettify/styles/doxy.css +64 -0
- data/skeleton/vendor/google-code-prettify/styles/index.html +89 -0
- data/skeleton/vendor/google-code-prettify/styles/sons-of-obsidian.css +118 -0
- data/skeleton/vendor/google-code-prettify/styles/sunburst.css +51 -0
- data/skeleton/vendor/jquery/.bower.json +38 -0
- data/skeleton/vendor/jquery/MIT-LICENSE.txt +21 -0
- data/skeleton/vendor/jquery/bower.json +28 -0
- data/skeleton/vendor/jquery/dist/jquery.js +9210 -0
- data/skeleton/vendor/jquery/dist/jquery.min.js +5 -0
- data/skeleton/vendor/jquery/dist/jquery.min.map +1 -0
- data/skeleton/vendor/jquery/src/ajax/jsonp.js +89 -0
- data/skeleton/vendor/jquery/src/ajax/load.js +75 -0
- data/skeleton/vendor/jquery/src/ajax/parseJSON.js +13 -0
- data/skeleton/vendor/jquery/src/ajax/parseXML.js +28 -0
- data/skeleton/vendor/jquery/src/ajax/script.js +64 -0
- data/skeleton/vendor/jquery/src/ajax/var/nonce.js +5 -0
- data/skeleton/vendor/jquery/src/ajax/var/rquery.js +3 -0
- data/skeleton/vendor/jquery/src/ajax/xhr.js +136 -0
- data/skeleton/vendor/jquery/src/ajax.js +786 -0
- data/skeleton/vendor/jquery/src/attributes/attr.js +141 -0
- data/skeleton/vendor/jquery/src/attributes/classes.js +158 -0
- data/skeleton/vendor/jquery/src/attributes/prop.js +94 -0
- data/skeleton/vendor/jquery/src/attributes/support.js +35 -0
- data/skeleton/vendor/jquery/src/attributes/val.js +161 -0
- data/skeleton/vendor/jquery/src/attributes.js +11 -0
- data/skeleton/vendor/jquery/src/callbacks.js +205 -0
- data/skeleton/vendor/jquery/src/core/access.js +60 -0
- data/skeleton/vendor/jquery/src/core/init.js +123 -0
- data/skeleton/vendor/jquery/src/core/parseHTML.js +39 -0
- data/skeleton/vendor/jquery/src/core/ready.js +97 -0
- data/skeleton/vendor/jquery/src/core/var/rsingleTag.js +4 -0
- data/skeleton/vendor/jquery/src/core.js +502 -0
- data/skeleton/vendor/jquery/src/css/addGetHookIf.js +22 -0
- data/skeleton/vendor/jquery/src/css/curCSS.js +57 -0
- data/skeleton/vendor/jquery/src/css/defaultDisplay.js +70 -0
- data/skeleton/vendor/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/skeleton/vendor/jquery/src/css/support.js +96 -0
- data/skeleton/vendor/jquery/src/css/swap.js +28 -0
- data/skeleton/vendor/jquery/src/css/var/cssExpand.js +3 -0
- data/skeleton/vendor/jquery/src/css/var/getStyles.js +12 -0
- data/skeleton/vendor/jquery/src/css/var/isHidden.js +13 -0
- data/skeleton/vendor/jquery/src/css/var/rmargin.js +3 -0
- data/skeleton/vendor/jquery/src/css/var/rnumnonpx.js +5 -0
- data/skeleton/vendor/jquery/src/css.js +450 -0
- data/skeleton/vendor/jquery/src/data/Data.js +181 -0
- data/skeleton/vendor/jquery/src/data/accepts.js +20 -0
- data/skeleton/vendor/jquery/src/data/var/data_priv.js +5 -0
- data/skeleton/vendor/jquery/src/data/var/data_user.js +5 -0
- data/skeleton/vendor/jquery/src/data.js +178 -0
- data/skeleton/vendor/jquery/src/deferred.js +149 -0
- data/skeleton/vendor/jquery/src/deprecated.js +13 -0
- data/skeleton/vendor/jquery/src/dimensions.js +50 -0
- data/skeleton/vendor/jquery/src/effects/Tween.js +114 -0
- data/skeleton/vendor/jquery/src/effects/animatedSelector.js +13 -0
- data/skeleton/vendor/jquery/src/effects.js +648 -0
- data/skeleton/vendor/jquery/src/event/ajax.js +13 -0
- data/skeleton/vendor/jquery/src/event/alias.js +39 -0
- data/skeleton/vendor/jquery/src/event/support.js +9 -0
- data/skeleton/vendor/jquery/src/event.js +868 -0
- data/skeleton/vendor/jquery/src/exports/amd.js +24 -0
- data/skeleton/vendor/jquery/src/exports/global.js +32 -0
- data/skeleton/vendor/jquery/src/intro.js +44 -0
- data/skeleton/vendor/jquery/src/jquery.js +37 -0
- data/skeleton/vendor/jquery/src/manipulation/_evalUrl.js +18 -0
- data/skeleton/vendor/jquery/src/manipulation/support.js +32 -0
- data/skeleton/vendor/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/skeleton/vendor/jquery/src/manipulation.js +580 -0
- data/skeleton/vendor/jquery/src/offset.js +207 -0
- data/skeleton/vendor/jquery/src/outro.js +1 -0
- data/skeleton/vendor/jquery/src/queue/delay.js +22 -0
- data/skeleton/vendor/jquery/src/queue.js +142 -0
- data/skeleton/vendor/jquery/src/selector-native.js +172 -0
- data/skeleton/vendor/jquery/src/selector-sizzle.js +14 -0
- data/skeleton/vendor/jquery/src/selector.js +1 -0
- data/skeleton/vendor/jquery/src/serialize.js +111 -0
- data/skeleton/vendor/jquery/src/sizzle/dist/sizzle.js +2067 -0
- data/skeleton/vendor/jquery/src/sizzle/dist/sizzle.min.js +3 -0
- data/skeleton/vendor/jquery/src/sizzle/dist/sizzle.min.map +1 -0
- data/skeleton/vendor/jquery/src/traversing/findFilter.js +100 -0
- data/skeleton/vendor/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/skeleton/vendor/jquery/src/traversing.js +199 -0
- data/skeleton/vendor/jquery/src/var/arr.js +3 -0
- data/skeleton/vendor/jquery/src/var/class2type.js +4 -0
- data/skeleton/vendor/jquery/src/var/concat.js +5 -0
- data/skeleton/vendor/jquery/src/var/hasOwn.js +5 -0
- data/skeleton/vendor/jquery/src/var/indexOf.js +5 -0
- data/skeleton/vendor/jquery/src/var/pnum.js +3 -0
- data/skeleton/vendor/jquery/src/var/push.js +5 -0
- data/skeleton/vendor/jquery/src/var/rnotwhite.js +3 -0
- data/skeleton/vendor/jquery/src/var/slice.js +5 -0
- data/skeleton/vendor/jquery/src/var/strundefined.js +3 -0
- data/skeleton/vendor/jquery/src/var/support.js +4 -0
- data/skeleton/vendor/jquery/src/var/toString.js +5 -0
- data/skeleton/vendor/jquery/src/wrap.js +79 -0
- data/skeleton/vendor/vue/.bower.json +29 -0
- data/skeleton/vendor/vue/LICENSE +21 -0
- data/skeleton/vendor/vue/bower.json +16 -0
- data/skeleton/vendor/vue/build/banner.js +8 -0
- data/skeleton/vendor/vue/build/grunt-tasks/build.js +50 -0
- data/skeleton/vendor/vue/build/grunt-tasks/casper.js +26 -0
- data/skeleton/vendor/vue/build/grunt-tasks/codecov.js +18 -0
- data/skeleton/vendor/vue/build/grunt-tasks/open.js +11 -0
- data/skeleton/vendor/vue/build/grunt-tasks/release.js +84 -0
- data/skeleton/vendor/vue/build/saucelabs.config.js +79 -0
- data/skeleton/vendor/vue/build/webpack.build.dev.config.js +20 -0
- data/skeleton/vendor/vue/build/webpack.build.prod.config.js +25 -0
- data/skeleton/vendor/vue/build/webpack.dev.config.js +10 -0
- data/skeleton/vendor/vue/build/webpack.test.config.js +13 -0
- data/skeleton/vendor/vue/circle.yml +4 -0
- data/skeleton/vendor/vue/dist/vue.js +9863 -0
- data/skeleton/vendor/vue/dist/vue.min.js +8 -0
- data/skeleton/vendor/vue/perf/bench.html +2 -0
- data/skeleton/vendor/vue/perf/bench.js +87 -0
- data/skeleton/vendor/vue/src/api/child.js +49 -0
- data/skeleton/vendor/vue/src/api/data.js +154 -0
- data/skeleton/vendor/vue/src/api/dom.js +226 -0
- data/skeleton/vendor/vue/src/api/events.js +174 -0
- data/skeleton/vendor/vue/src/api/global.js +119 -0
- data/skeleton/vendor/vue/src/api/lifecycle.js +68 -0
- data/skeleton/vendor/vue/src/batcher.js +98 -0
- data/skeleton/vendor/vue/src/cache.js +112 -0
- data/skeleton/vendor/vue/src/compiler/compile-props.js +183 -0
- data/skeleton/vendor/vue/src/compiler/compile.js +631 -0
- data/skeleton/vendor/vue/src/compiler/index.js +4 -0
- data/skeleton/vendor/vue/src/compiler/transclude.js +144 -0
- data/skeleton/vendor/vue/src/config.js +124 -0
- data/skeleton/vendor/vue/src/directive.js +224 -0
- data/skeleton/vendor/vue/src/directives/attr.js +51 -0
- data/skeleton/vendor/vue/src/directives/class.js +70 -0
- data/skeleton/vendor/vue/src/directives/cloak.js +10 -0
- data/skeleton/vendor/vue/src/directives/component.js +300 -0
- data/skeleton/vendor/vue/src/directives/el.js +12 -0
- data/skeleton/vendor/vue/src/directives/html.js +40 -0
- data/skeleton/vendor/vue/src/directives/if.js +126 -0
- data/skeleton/vendor/vue/src/directives/index.js +24 -0
- data/skeleton/vendor/vue/src/directives/model/checkbox.js +24 -0
- data/skeleton/vendor/vue/src/directives/model/index.js +76 -0
- data/skeleton/vendor/vue/src/directives/model/radio.js +26 -0
- data/skeleton/vendor/vue/src/directives/model/select.js +199 -0
- data/skeleton/vendor/vue/src/directives/model/text.js +159 -0
- data/skeleton/vendor/vue/src/directives/on.js +60 -0
- data/skeleton/vendor/vue/src/directives/prop.js +62 -0
- data/skeleton/vendor/vue/src/directives/ref.js +22 -0
- data/skeleton/vendor/vue/src/directives/repeat.js +754 -0
- data/skeleton/vendor/vue/src/directives/show.js +8 -0
- data/skeleton/vendor/vue/src/directives/style.js +110 -0
- data/skeleton/vendor/vue/src/directives/text.js +14 -0
- data/skeleton/vendor/vue/src/directives/transition.js +26 -0
- data/skeleton/vendor/vue/src/element-directives/content.js +111 -0
- data/skeleton/vendor/vue/src/element-directives/index.js +2 -0
- data/skeleton/vendor/vue/src/element-directives/partial.js +73 -0
- data/skeleton/vendor/vue/src/filters/array-filters.js +85 -0
- data/skeleton/vendor/vue/src/filters/index.js +137 -0
- data/skeleton/vendor/vue/src/instance/compile.js +196 -0
- data/skeleton/vendor/vue/src/instance/events.js +139 -0
- data/skeleton/vendor/vue/src/instance/init.js +89 -0
- data/skeleton/vendor/vue/src/instance/misc.js +93 -0
- data/skeleton/vendor/vue/src/instance/scope.js +282 -0
- data/skeleton/vendor/vue/src/observer/array.js +92 -0
- data/skeleton/vendor/vue/src/observer/dep.js +61 -0
- data/skeleton/vendor/vue/src/observer/index.js +212 -0
- data/skeleton/vendor/vue/src/observer/object.js +82 -0
- data/skeleton/vendor/vue/src/parsers/directive.js +179 -0
- data/skeleton/vendor/vue/src/parsers/expression.js +264 -0
- data/skeleton/vendor/vue/src/parsers/path.js +348 -0
- data/skeleton/vendor/vue/src/parsers/template.js +264 -0
- data/skeleton/vendor/vue/src/parsers/text.js +176 -0
- data/skeleton/vendor/vue/src/transition/index.js +128 -0
- data/skeleton/vendor/vue/src/transition/queue.js +35 -0
- data/skeleton/vendor/vue/src/transition/transition.js +308 -0
- data/skeleton/vendor/vue/src/util/component.js +124 -0
- data/skeleton/vendor/vue/src/util/debug.js +64 -0
- data/skeleton/vendor/vue/src/util/dom.js +262 -0
- data/skeleton/vendor/vue/src/util/env.js +85 -0
- data/skeleton/vendor/vue/src/util/index.js +9 -0
- data/skeleton/vendor/vue/src/util/lang.js +289 -0
- data/skeleton/vendor/vue/src/util/options.js +353 -0
- data/skeleton/vendor/vue/src/vue.js +89 -0
- data/skeleton/vendor/vue/src/watcher.js +292 -0
- data/tmp/.keep +0 -0
- metadata +677 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "google-code-prettify",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"main": [
|
|
5
|
+
"./bin/prettify.min.css",
|
|
6
|
+
"./bin/prettify.min.js"
|
|
7
|
+
],
|
|
8
|
+
"dependencies": {},
|
|
9
|
+
"ignore": [
|
|
10
|
+
"closure-compiler",
|
|
11
|
+
"js-modules",
|
|
12
|
+
"tests",
|
|
13
|
+
"yui-compressor",
|
|
14
|
+
"Makefile"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://github.com/tcollard/google-code-prettify",
|
|
17
|
+
"_release": "1.0.4",
|
|
18
|
+
"_resolution": {
|
|
19
|
+
"type": "version",
|
|
20
|
+
"tag": "v1.0.4",
|
|
21
|
+
"commit": "80478ff92dec68d56498bad7451546d11c15e541"
|
|
22
|
+
},
|
|
23
|
+
"_source": "git://github.com/tcollard/google-code-prettify.git",
|
|
24
|
+
"_target": "~1.0.4",
|
|
25
|
+
"_originalSource": "google-code-prettify"
|
|
26
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
4
|
+
<title>Change Log</title>
|
|
5
|
+
</head>
|
|
6
|
+
<body bgcolor="white">
|
|
7
|
+
<a style="float:right" href="README.html">README</a>
|
|
8
|
+
|
|
9
|
+
<h1>Known Issues</h1>
|
|
10
|
+
<ul>
|
|
11
|
+
<li>Perl formatting is really crappy. Partly because the author is lazy and
|
|
12
|
+
partly because Perl is
|
|
13
|
+
<a href="http://www.perlmonks.org/?node_id=663393">hard</a> to parse.
|
|
14
|
+
<li>On some browsers, <code><code></code> elements with newlines in the text
|
|
15
|
+
which use CSS to specify <code>white-space:pre</code> will have the newlines
|
|
16
|
+
improperly stripped if the element is not attached to the document at the time
|
|
17
|
+
the stripping is done. Also, on IE 6, all newlines will be stripped from
|
|
18
|
+
<code><code></code> elements because of the way IE6 produces
|
|
19
|
+
<code>innerHTML</code>. Workaround: use <code><pre></code> for code with
|
|
20
|
+
newlines.
|
|
21
|
+
</ul>
|
|
22
|
+
|
|
23
|
+
<h1>Change Log</h1>
|
|
24
|
+
<h2>29 March 2007</h2>
|
|
25
|
+
<ul>
|
|
26
|
+
<li>Added <a href="tests/prettify_test.html#PHP">tests</a> for PHP support
|
|
27
|
+
to address
|
|
28
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=3"
|
|
29
|
+
>issue 3</a>.
|
|
30
|
+
<li>Fixed
|
|
31
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=6"
|
|
32
|
+
>bug</a>: <code>prettyPrintOne</code> was not halting. This was not
|
|
33
|
+
reachable through the normal entry point.
|
|
34
|
+
<li>Fixed
|
|
35
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4"
|
|
36
|
+
>bug</a>: recursing into a script block or PHP tag that was not properly
|
|
37
|
+
closed would not silently drop the content.
|
|
38
|
+
(<a href="tests/prettify_test.html#issue4">test</a>)
|
|
39
|
+
<li>Fixed
|
|
40
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=8"
|
|
41
|
+
>bug</a>: was eating tabs
|
|
42
|
+
(<a href="tests/prettify_test.html#issue8">test</a>)
|
|
43
|
+
<li>Fixed entity handling so that the caveat
|
|
44
|
+
<blockquote>
|
|
45
|
+
<p>Caveats: please properly escape less-thans. <tt>x&lt;y</tt>
|
|
46
|
+
instead of <tt>x<y</tt>, and use <tt>"</tt> instead of
|
|
47
|
+
<tt>&quot;</tt> for string delimiters.</p>
|
|
48
|
+
</blockquote>
|
|
49
|
+
is no longer applicable.
|
|
50
|
+
<li>Added noisefree's C#
|
|
51
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4"
|
|
52
|
+
>patch</a>
|
|
53
|
+
<li>Added a <a href="http://google-code-prettify.googlecode.com/files/prettify-small.zip">distribution</a> that has comments and
|
|
54
|
+
whitespace removed to reduce download size from 45.5kB to 12.8kB.
|
|
55
|
+
</ul>
|
|
56
|
+
<h2>4 Jul 2008</h2>
|
|
57
|
+
<ul>
|
|
58
|
+
<li>Added <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=17">language specific formatters</a> that are triggered by the presence
|
|
59
|
+
of a <code>lang-<language-file-extension></code></li>
|
|
60
|
+
<li>Fixed <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=29">bug</a>: python handling of <code>'''string'''</code>
|
|
61
|
+
<li>Fixed bug: <code>/</code> in regex <code>[charsets] should not end regex</code>
|
|
62
|
+
</ul>
|
|
63
|
+
<h2>5 Jul 2008</h2>
|
|
64
|
+
<ul>
|
|
65
|
+
<li>Defined language extensions for Lisp and Lua</code>
|
|
66
|
+
</ul>
|
|
67
|
+
<h2>14 Jul 2008</h2>
|
|
68
|
+
<ul>
|
|
69
|
+
<li>Language handlers for F#, OCAML, SQL</code>
|
|
70
|
+
<li>Support for <code>nocode</code> spans to allow embedding of line
|
|
71
|
+
numbers and code annotations which should not be styled or otherwise
|
|
72
|
+
affect the tokenization of prettified code.
|
|
73
|
+
See the issue 22
|
|
74
|
+
<a href="tests/prettify_test.html#issue22">testcase</a>.</code>
|
|
75
|
+
</ul>
|
|
76
|
+
<h2>6 Jan 2009</h2>
|
|
77
|
+
<ul>
|
|
78
|
+
<li>Language handlers for Visual Basic, Haskell, CSS, and WikiText</li>
|
|
79
|
+
<li>Added <tt>.mxml</tt> extension to the markup style handler for
|
|
80
|
+
Flex <a href="http://en.wikipedia.org/wiki/MXML">MXML files</a>. See
|
|
81
|
+
<a
|
|
82
|
+
href="http://code.google.com/p/google-code-prettify/issues/detail?id=37"
|
|
83
|
+
>issue 37</a>.
|
|
84
|
+
<li>Added <tt>.m</tt> extension to the C style handler so that Objective
|
|
85
|
+
C source files properly highlight. See
|
|
86
|
+
<a
|
|
87
|
+
href="http://code.google.com/p/google-code-prettify/issues/detail?id=58"
|
|
88
|
+
>issue 58</a>.
|
|
89
|
+
<li>Changed HTML lexer to use the same embedded source mechanism as the
|
|
90
|
+
wiki language handler, and changed to use the registered
|
|
91
|
+
CSS handler for STYLE element content.
|
|
92
|
+
</ul>
|
|
93
|
+
<h2>21 May 2009</h2>
|
|
94
|
+
<ul>
|
|
95
|
+
<li>Rewrote to improve performance on large files.
|
|
96
|
+
See <a href="http://mikesamuel.blogspot.com/2009/05/efficient-parsing-in-javascript.html">benchmarks</a>.</li>
|
|
97
|
+
<li>Fixed bugs with highlighting of Haskell line comments, Lisp
|
|
98
|
+
number literals, Lua strings, C preprocessor directives,
|
|
99
|
+
newlines in Wiki code on Windows, and newlines in IE6.</li>
|
|
100
|
+
</ul>
|
|
101
|
+
<h2>14 August 2009</h2>
|
|
102
|
+
<ul>
|
|
103
|
+
<li>Fixed prettifying of <code><code></code> blocks with embedded newlines.
|
|
104
|
+
</ul>
|
|
105
|
+
<h2>3 October 2009</h2>
|
|
106
|
+
<ul>
|
|
107
|
+
<li>Fixed prettifying of XML/HTML tags that contain uppercase letters.
|
|
108
|
+
</ul>
|
|
109
|
+
<h2>19 July 2010</h2>
|
|
110
|
+
<ul>
|
|
111
|
+
<li>Added support for line numbers. Bug
|
|
112
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=22"
|
|
113
|
+
>22</a></li>
|
|
114
|
+
<li>Added YAML support. Bug
|
|
115
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=123"
|
|
116
|
+
>123</a></li>
|
|
117
|
+
<li>Added VHDL support courtesy Le Poussin.</li>
|
|
118
|
+
<li>IE performance improvements. Bug
|
|
119
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=102"
|
|
120
|
+
>102</a> courtesy jacobly.</li>
|
|
121
|
+
<li>A variety of markup formatting fixes courtesy smain and thezbyg.</li>
|
|
122
|
+
<li>Fixed copy and paste in IE[678].
|
|
123
|
+
<li>Changed output to use <code>&#160;</code> instead of
|
|
124
|
+
<code>&nbsp;</code> so that the output works when embedded in XML.
|
|
125
|
+
Bug
|
|
126
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=108"
|
|
127
|
+
>108</a>.</li>
|
|
128
|
+
</ul>
|
|
129
|
+
<h2>7 September 2010</h2>
|
|
130
|
+
<ul>
|
|
131
|
+
<li>Added support for coffeescript courtesy Cezary Bartoszuk.</li>
|
|
132
|
+
</ul>
|
|
133
|
+
<h2>4 March 2011</h2>
|
|
134
|
+
<ul>
|
|
135
|
+
<li>Added a <a href="http://google-code-prettify.googlecode.com/svn/trunk/styles/index.html">themes
|
|
136
|
+
gallery</a> to showcase contributed styles.</li>
|
|
137
|
+
<li>Added support for XQuery courtesy Patrick Wied, Nemerle
|
|
138
|
+
courtesy Zimin A.V., and Latex support courtesy Martin S.</li>
|
|
139
|
+
</ul>
|
|
140
|
+
<h2>29 March 2011</h2>
|
|
141
|
+
<ul>
|
|
142
|
+
<li>Fixed IE newline issues, and copying/pasting of prettified
|
|
143
|
+
source code from IE. This required significant internal changes
|
|
144
|
+
but involves no API changes.
|
|
145
|
+
<b>Caveat:</b> <code>prettyPrintOne</code> injects the HTML
|
|
146
|
+
passed to it into a <code><pre></code> element.
|
|
147
|
+
If the HTML comes from a trusted source, this may allow XSS.
|
|
148
|
+
Do not do this. This should not be a problem for existing apps
|
|
149
|
+
since the standard usage is to rewrite the HTML and then inject
|
|
150
|
+
it, so anyone doing that with untrusted HTML already has an XSS
|
|
151
|
+
vulnerability. If you sanitize and prettify HTML from an
|
|
152
|
+
untrusted source, sanitize first.
|
|
153
|
+
</ul>
|
|
154
|
+
<h2>4 February 2013</h2>
|
|
155
|
+
<ul>
|
|
156
|
+
<li>Language handlers for Dart, Erlang, Mumps, TCL, R, S., and others</li>
|
|
157
|
+
<li>Bug fix: VB REM style comments.</li>
|
|
158
|
+
<li>Bug fix: CSS color literals / ID selector confusion.</li>
|
|
159
|
+
<li>Bug fix: IE8 line breaks.</li>
|
|
160
|
+
</ul>
|
|
161
|
+
<h2>24 February 2013</h2>
|
|
162
|
+
<ul>
|
|
163
|
+
<li>Added a one script autoload&run mechanism and a way to
|
|
164
|
+
embed hints in processing instructions/comments.
|
|
165
|
+
See <a href="examples/quine.html">example</a>.
|
|
166
|
+
</ul>
|
|
167
|
+
<h2>4 March 2013</h2>
|
|
168
|
+
<ul>
|
|
169
|
+
<li>Matlab language handler courtesy Amro³</li>
|
|
170
|
+
</ul>
|
|
171
|
+
</body>
|
|
172
|
+
</html>
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
Copyright 2011 Mike Samuel et al
|
|
180
|
+
|
|
181
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
you may not use this file except in compliance with the License.
|
|
183
|
+
You may obtain a copy of the License at
|
|
184
|
+
|
|
185
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
|
|
187
|
+
Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
See the License for the specific language governing permissions and
|
|
191
|
+
limitations under the License.
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
|
|
4
|
+
<html>
|
|
5
|
+
<head>
|
|
6
|
+
<meta http-equiv="content-type" value="text/html; charset=UTF-8" />
|
|
7
|
+
<title>Javascript code prettifier</title>
|
|
8
|
+
|
|
9
|
+
<link href="src/prettify.css" type="text/css" rel="stylesheet" />
|
|
10
|
+
|
|
11
|
+
<script src="src/prettify.js" type="text/javascript"></script>
|
|
12
|
+
|
|
13
|
+
<style type="text/css">
|
|
14
|
+
body { margin-left: .5in }
|
|
15
|
+
h1, h2, h3, h4, .footer { margin-left: -.4in; }
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body onload="prettyPrint()" bgcolor="white">
|
|
20
|
+
<h1>Javascript code prettifier</h1>
|
|
21
|
+
<h1>Javascript 代码美容师</h1>
|
|
22
|
+
<h2>安装使用</h2>
|
|
23
|
+
<ol>
|
|
24
|
+
<li><a href="http://google-code-prettify.googlecode.com/files/prettify-small-5-Jul-2008.zip">下载</a> 文件
|
|
25
|
+
<li>在你的文件中包含这儿的脚本和样式表(你要保证这儿的 css 和 js 文件按在你的服务器上, 并且调整在 <tt>script</tt> 和 <tt>link</tt>标签中的路径)
|
|
26
|
+
<pre class="prettyprint">
|
|
27
|
+
<link href="prettify.css" type="text/css" rel="stylesheet" />
|
|
28
|
+
<script type="text/javascript" src="prettify.js"></script></pre>
|
|
29
|
+
<li>添加<code class="prettyprint">onload="prettyPrint()"</code> 到你的文件的 body 标签中.
|
|
30
|
+
<li>修改样式表,使用你自己喜欢的颜色.</li>
|
|
31
|
+
</ol>
|
|
32
|
+
|
|
33
|
+
<h2>使用方法<br></h2>
|
|
34
|
+
<p>在
|
|
35
|
+
<tt><pre class="prettyprint">...</pre></tt> 或 <tt><code class="prettyprint">...</code></tt>
|
|
36
|
+
中间放上代码片段,它就会自动被美化了.
|
|
37
|
+
|
|
38
|
+
<table summary="code examples">
|
|
39
|
+
<tr>
|
|
40
|
+
<th>The original
|
|
41
|
+
<th>Prettier
|
|
42
|
+
<tr>
|
|
43
|
+
<td><pre style="border: 1px solid #888;padding: 2px"
|
|
44
|
+
><a name="voila1"></a>class Voila {
|
|
45
|
+
public:
|
|
46
|
+
// Voila
|
|
47
|
+
static const string VOILA = "Voila";
|
|
48
|
+
|
|
49
|
+
// will not interfere with embedded <a href="#voila1">tags</a>.
|
|
50
|
+
}</pre>
|
|
51
|
+
|
|
52
|
+
<td><pre class="prettyprint"><a name="voila2"></a>class Voila {
|
|
53
|
+
public:
|
|
54
|
+
// Voila
|
|
55
|
+
static const string VOILA = "Voila";
|
|
56
|
+
|
|
57
|
+
// will not interfere with embedded <a href="#voila2">tags</a>.
|
|
58
|
+
}</pre>
|
|
59
|
+
</table>
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
<h2>常见问题</h2>
|
|
63
|
+
<h3 id="langs">它是为什么语言工作的?</h3>
|
|
64
|
+
<p><tt>prettify.js中的注释是权威的,但是它的语法分析程序可以在很多语言中使用</tt>,包括 C ,
|
|
65
|
+
Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, 和 Makefiles.
|
|
66
|
+
它在 Ruby, PHP, VB, 和 Awk 中还算可以,而且也可以在 Perl 和 Ruby的合适子集中起作用,但是, 因为注释的约定,它对
|
|
67
|
+
Smalltalk, 或 CAML类似的语言起作用.<br></p>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
<p>LISP系列的语言可以使用一个拓展<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lisp.js"><code>lang-lisp.js</code></a>.</p><p>对于 <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-css"><code>CSS</code></a>,
|
|
71
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-hs"><code>Haskell</code></a>,
|
|
72
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lua.js"><code>Lua</code></a>,
|
|
73
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-ml.js"><code>OCAML, SML, F#</code></a>,
|
|
74
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-vb.js"><code>Visual Basic</code></a>,
|
|
75
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-sql.js"><code>SQL</code></a>,
|
|
76
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-proto.js"><code>Protocol Buffers</code></a>, 和
|
|
77
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-wiki.js"><code>WikiText</code></a>..也是类似的</p><p>如果你想给你喜欢的语言写个拓展版本, 请参阅<tt>src/lang-lisp.js</tt> ,并写一个包括你的语言的拓展的 <a href="http://code.google.com/p/google-code-prettify/issues/list"
|
|
78
|
+
>发布</a> 和一个测试用例.</p>
|
|
79
|
+
|
|
80
|
+
<h3>如何指定我的代码在哪种语言里?</h3>
|
|
81
|
+
<p>你不需要指定语言环境,因为 <code>prettyprint()</code>
|
|
82
|
+
会对此进行猜测. 你可以使用<code> prettyprint </code>这个类通过指定语言的拓展名来指定语言,就像这样:</p>
|
|
83
|
+
<pre class="prettyprint lang-html"
|
|
84
|
+
><pre class="prettyprint <b>lang-html</b>">
|
|
85
|
+
The lang-* class specifies the language file extensions.
|
|
86
|
+
File extensions supported by default include
|
|
87
|
+
"bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html",
|
|
88
|
+
"java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh",
|
|
89
|
+
"xhtml", "xml", "xsl".
|
|
90
|
+
</pre></pre>
|
|
91
|
+
|
|
92
|
+
<h3>它在混淆代码例子上不起作用吗?</h3>
|
|
93
|
+
<p>是的. 美化混淆代码就像给小猪涂口红,也就是不在这个工具的范围内. <br></p>
|
|
94
|
+
|
|
95
|
+
<h3>它可以在那些浏览器上工作?</h3>
|
|
96
|
+
<p>这个工具已经在 IE 6, Firefox 1.5 & 2, 和 Safari 2.0.4 上测试通过. 打开 <a href="tests/prettify_test.html">测试页面</a> ,看看它能不能在你的浏览器上起作用.</p>
|
|
97
|
+
|
|
98
|
+
<h3>有什么改变?</h3>
|
|
99
|
+
<p>查看 <a href="CHANGES.html">变化日志</a></p>
|
|
100
|
+
|
|
101
|
+
<h3> 为什么Prettyprinting 对WordPress中的字符串没用?</h3>
|
|
102
|
+
<p>很显然,wordpress 在 "smart quoting" 时会改变关闭符号.
|
|
103
|
+
这使得关闭符号跟开始符号不配套.
|
|
104
|
+
<p>这和复制粘贴代码一样,破坏了美化作用. 去
|
|
105
|
+
<a href="http://wordpress.org/support/topic/125038"
|
|
106
|
+
>WordPress's help center</a> 查看更多关于如何关闭插入代码段时的"smart quoting"的信息.</p>
|
|
107
|
+
|
|
108
|
+
<h3>如何在我的代码中加入行号? (Out of date -- see <a href="README.html">English version</a>)</h3>
|
|
109
|
+
<p>你可以使用 <code>nocode</code> 类来标记 span 标记不是代码.
|
|
110
|
+
<pre><pre class=prettyprint>
|
|
111
|
+
<span class="<b>nocode</b>">1:</span> /* This is line 1 of my code
|
|
112
|
+
<span class="<b>nocode</b>">2:</span> * and here's line 2 */
|
|
113
|
+
<span class="<b>nocode</b>">3:</span> print("I'm line number 3");
|
|
114
|
+
</pre></pre>得到
|
|
115
|
+
<pre class=prettyprint>
|
|
116
|
+
<span class="nocode">1:</span> /* This is line 1 of my code
|
|
117
|
+
<span class="nocode">2:</span> * and here's line 2 */
|
|
118
|
+
<span class="nocode">3:</span> print("I'm line number 3");
|
|
119
|
+
</pre>
|
|
120
|
+
|
|
121
|
+
<p>查看一个更完整的例子: issue22
|
|
122
|
+
<a href="tests/prettify_test.html#issue22">testcase</a>.</p>
|
|
123
|
+
|
|
124
|
+
<h3>我得到了这样一条错误信息 "a is not a function" 或 "opt_whenDone is not a function"</h3>
|
|
125
|
+
<p>如果你通过事件句柄条用 <code>prettyPrint</code> , 把它隐藏到一个函数中. <br></p><p>不要这么写
|
|
126
|
+
</p><blockquote>
|
|
127
|
+
<code class="prettyprint lang-js"
|
|
128
|
+
>addEventListener('load', prettyPrint, false);</code>
|
|
129
|
+
</blockquote>而要这么写
|
|
130
|
+
<blockquote>
|
|
131
|
+
<code class="prettyprint lang-js"
|
|
132
|
+
>addEventListener('load', function (event) { prettyPrint() }, false);</code>
|
|
133
|
+
</blockquote>这样的话,浏览器就不会把时间对象传递给 <code>prettyPrint</code> ,事件对象会让它困惑的.
|
|
134
|
+
|
|
135
|
+
<br><br><br>
|
|
136
|
+
|
|
137
|
+
<div class="footer">
|
|
138
|
+
<!-- Created: Tue Oct 3 17:51:56 PDT 2006 -->
|
|
139
|
+
<!-- hhmts start -->
|
|
140
|
+
Last modified: Wed Jan 7 13:25:42 PST 2009<br><!-- hhmts end -->
|
|
141
|
+
</div>
|
|
142
|
+
</body>
|
|
143
|
+
</html>
|