Permalink
Browse files

adds syntax highlighting to code snipets

  • Loading branch information...
andresgalante authored and rhamilto committed Jan 28, 2015
1 parent 55ec968 commit 33bafaab0950847893d3b784dbcd40eec0bd453f
Showing with 7,044 additions and 10 deletions.
  1. +1 −0 bower.json
  2. +27 −0 components/google-code-prettify/.bower.json
  3. +172 −0 components/google-code-prettify/CHANGES.html
  4. +191 −0 components/google-code-prettify/COPYING
  5. +143 −0 components/google-code-prettify/README-zh-Hans.html
  6. +233 −0 components/google-code-prettify/README.html
  7. +54 −0 components/google-code-prettify/README.md
  8. +1 −0 components/google-code-prettify/bin/prettify.min.css
  9. +30 −0 components/google-code-prettify/bin/prettify.min.js
  10. +34 −0 components/google-code-prettify/bin/run_prettify.min.js
  11. +16 −0 components/google-code-prettify/bower.json
  12. +55 −0 components/google-code-prettify/examples/quine.html
  13. +51 −0 components/google-code-prettify/src/lang-apollo.js
  14. +32 −0 components/google-code-prettify/src/lang-basic.js
  15. +64 −0 components/google-code-prettify/src/lang-clj.js
  16. +159 −0 components/google-code-prettify/src/lang-css.js
  17. +88 −0 components/google-code-prettify/src/lang-dart.js
  18. +92 −0 components/google-code-prettify/src/lang-erlang.js
  19. +58 −0 components/google-code-prettify/src/lang-go.js
  20. +101 −0 components/google-code-prettify/src/lang-hs.js
  21. +94 −0 components/google-code-prettify/src/lang-lisp.js
  22. +61 −0 components/google-code-prettify/src/lang-llvm.js
  23. +59 −0 components/google-code-prettify/src/lang-lua.js
  24. +180 −0 components/google-code-prettify/src/lang-matlab.js
  25. +56 −0 components/google-code-prettify/src/lang-ml.js
  26. +139 −0 components/google-code-prettify/src/lang-mumps.js
  27. +65 −0 components/google-code-prettify/src/lang-n.js
  28. +32 −0 components/google-code-prettify/src/lang-pascal.js
  29. +35 −0 components/google-code-prettify/src/lang-proto.js
  30. +57 −0 components/google-code-prettify/src/lang-r.js
  31. +47 −0 components/google-code-prettify/src/lang-rd.js
  32. +54 −0 components/google-code-prettify/src/lang-scala.js
  33. +58 −0 components/google-code-prettify/src/lang-sql.js
  34. +62 −0 components/google-code-prettify/src/lang-tcl.js
  35. +46 −0 components/google-code-prettify/src/lang-tex.js
  36. +66 −0 components/google-code-prettify/src/lang-vb.js
  37. +34 −0 components/google-code-prettify/src/lang-vhdl.js
  38. +53 −0 components/google-code-prettify/src/lang-wiki.js
  39. +67 −0 components/google-code-prettify/src/lang-xq.js
  40. +27 −0 components/google-code-prettify/src/lang-yaml.js
  41. +52 −0 components/google-code-prettify/src/prettify.css
  42. +1,655 −0 components/google-code-prettify/src/prettify.js
  43. +1,905 −0 components/google-code-prettify/src/run_prettify.js
  44. +61 −0 components/google-code-prettify/styles/demo.html
  45. +34 −0 components/google-code-prettify/styles/desert.css
  46. +64 −0 components/google-code-prettify/styles/doxy.css
  47. +89 −0 components/google-code-prettify/styles/index.html
  48. +118 −0 components/google-code-prettify/styles/sons-of-obsidian.css
  49. +51 −0 components/google-code-prettify/styles/sunburst.css
  50. +28 −1 dist/css/patternfly.css
  51. +2 −2 dist/css/patternfly.min.css
  52. +1 −0 less/patternfly.less
  53. +26 −0 less/syntax-highlighting.less
  54. +9 −4 less/variables.less
  55. +28 −2 tests-src/code.html
  56. +27 −1 tests/code.html
View
@@ -28,6 +28,7 @@
"datatables-colreorder": "~1.1.2",
"datatables-colvis": "~1.1.1",
"font-awesome": "~4.2.0",
+ "google-code-prettify": "~1.0.3",
"html5shiv": "~3.7.2",
"respond": "~1.4.2"
}
@@ -0,0 +1,27 @@
+{
+ "name": "google-code-prettify",
+ "version": "1.0.3",
+ "main": [
+ "./bin/prettify.min.css",
+ "./bin/prettify.min.js"
+ ],
+ "dependencies": {},
+ "ignore": [
+ "closure-compiler",
+ "js-modules",
+ "tests",
+ "yui-compressor",
+ "Makefile"
+ ],
+ "homepage": "https://github.com/tcollard/google-code-prettify",
+ "_release": "1.0.3",
+ "_resolution": {
+ "type": "version",
+ "tag": "v1.0.3",
+ "commit": "0b242858d7f704d9cba6db4c37d5eba00e2c718f"
+ },
+ "_source": "git://github.com/tcollard/google-code-prettify.git",
+ "_target": "~1.0.3",
+ "_originalSource": "google-code-prettify",
+ "_direct": true
+}
@@ -0,0 +1,172 @@
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Change Log</title>
+ </head>
+ <body bgcolor="white">
+ <a style="float:right" href="README.html">README</a>
+
+ <h1>Known Issues</h1>
+ <ul>
+ <li>Perl formatting is really crappy. Partly because the author is lazy and
+ partly because Perl is
+ <a href="http://www.perlmonks.org/?node_id=663393">hard</a> to parse.
+ <li>On some browsers, <code>&lt;code&gt;</code> elements with newlines in the text
+ which use CSS to specify <code>white-space:pre</code> will have the newlines
+ improperly stripped if the element is not attached to the document at the time
+ the stripping is done. Also, on IE 6, all newlines will be stripped from
+ <code>&lt;code&gt;</code> elements because of the way IE6 produces
+ <code>innerHTML</code>. Workaround: use <code>&lt;pre&gt;</code> for code with
+ newlines.
+ </ul>
+
+ <h1>Change Log</h1>
+ <h2>29 March 2007</h2>
+ <ul>
+ <li>Added <a href="tests/prettify_test.html#PHP">tests</a> for PHP support
+ to address
+ <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=3"
+ >issue 3</a>.
+ <li>Fixed
+ <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=6"
+ >bug</a>: <code>prettyPrintOne</code> was not halting. This was not
+ reachable through the normal entry point.
+ <li>Fixed
+ <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4"
+ >bug</a>: recursing into a script block or PHP tag that was not properly
+ closed would not silently drop the content.
+ (<a href="tests/prettify_test.html#issue4">test</a>)
+ <li>Fixed
+ <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=8"
+ >bug</a>: was eating tabs
+ (<a href="tests/prettify_test.html#issue8">test</a>)
+ <li>Fixed entity handling so that the caveat
+ <blockquote>
+ <p>Caveats: please properly escape less-thans. <tt>x&amp;lt;y</tt>
+ instead of <tt>x&lt;y</tt>, and use <tt>&quot;</tt> instead of
+ <tt>&amp;quot;</tt> for string delimiters.</p>
+ </blockquote>
+ is no longer applicable.
+ <li>Added noisefree's C#
+ <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4"
+ >patch</a>
+ <li>Added a <a href="http://google-code-prettify.googlecode.com/files/prettify-small.zip">distribution</a> that has comments and
+ whitespace removed to reduce download size from 45.5kB to 12.8kB.
+ </ul>
+ <h2>4 Jul 2008</h2>
+ <ul>
+ <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
+ of a <code>lang-&lt;language-file-extension&gt;</code></li>
+ <li>Fixed <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=29">bug</a>: python handling of <code>'''string'''</code>
+ <li>Fixed bug: <code>/</code> in regex <code>[charsets] should not end regex</code>
+ </ul>
+ <h2>5 Jul 2008</h2>
+ <ul>
+ <li>Defined language extensions for Lisp and Lua</code>
+ </ul>
+ <h2>14 Jul 2008</h2>
+ <ul>
+ <li>Language handlers for F#, OCAML, SQL</code>
+ <li>Support for <code>nocode</code> spans to allow embedding of line
+ numbers and code annotations which should not be styled or otherwise
+ affect the tokenization of prettified code.
+ See the issue 22
+ <a href="tests/prettify_test.html#issue22">testcase</a>.</code>
+ </ul>
+ <h2>6 Jan 2009</h2>
+ <ul>
+ <li>Language handlers for Visual Basic, Haskell, CSS, and WikiText</li>
+ <li>Added <tt>.mxml</tt> extension to the markup style handler for
+ Flex <a href="http://en.wikipedia.org/wiki/MXML">MXML files</a>. See
+ <a
+ href="http://code.google.com/p/google-code-prettify/issues/detail?id=37"
+ >issue 37</a>.
+ <li>Added <tt>.m</tt> extension to the C style handler so that Objective
+ C source files properly highlight. See
+ <a
+ href="http://code.google.com/p/google-code-prettify/issues/detail?id=58"
+ >issue 58</a>.
+ <li>Changed HTML lexer to use the same embedded source mechanism as the
+ wiki language handler, and changed to use the registered
+ CSS handler for STYLE element content.
+ </ul>
+ <h2>21 May 2009</h2>
+ <ul>
+ <li>Rewrote to improve performance on large files.
+ See <a href="http://mikesamuel.blogspot.com/2009/05/efficient-parsing-in-javascript.html">benchmarks</a>.</li>
+ <li>Fixed bugs with highlighting of Haskell line comments, Lisp
+ number literals, Lua strings, C preprocessor directives,
+ newlines in Wiki code on Windows, and newlines in IE6.</li>
+ </ul>
+ <h2>14 August 2009</h2>
+ <ul>
+ <li>Fixed prettifying of <code>&lt;code&gt;</code> blocks with embedded newlines.
+ </ul>
+ <h2>3 October 2009</h2>
+ <ul>
+ <li>Fixed prettifying of XML/HTML tags that contain uppercase letters.
+ </ul>
+ <h2>19 July 2010</h2>
+ <ul>
+ <li>Added support for line numbers. Bug
+ <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=22"
+ >22</a></li>
+ <li>Added YAML support. Bug
+ <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=123"
+ >123</a></li>
+ <li>Added VHDL support courtesy Le Poussin.</li>
+ <li>IE performance improvements. Bug
+ <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=102"
+ >102</a> courtesy jacobly.</li>
+ <li>A variety of markup formatting fixes courtesy smain and thezbyg.</li>
+ <li>Fixed copy and paste in IE[678].
+ <li>Changed output to use <code>&amp;#160;</code> instead of
+ <code>&amp;nbsp;</code> so that the output works when embedded in XML.
+ Bug
+ <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=108"
+ >108</a>.</li>
+ </ul>
+ <h2>7 September 2010</h2>
+ <ul>
+ <li>Added support for coffeescript courtesy Cezary Bartoszuk.</li>
+ </ul>
+ <h2>4 March 2011</h2>
+ <ul>
+ <li>Added a <a href="http://google-code-prettify.googlecode.com/svn/trunk/styles/index.html">themes
+ gallery</a> to showcase contributed styles.</li>
+ <li>Added support for XQuery courtesy Patrick Wied, Nemerle
+ courtesy Zimin A.V., and Latex support courtesy Martin S.</li>
+ </ul>
+ <h2>29 March 2011</h2>
+ <ul>
+ <li>Fixed IE newline issues, and copying/pasting of prettified
+ source code from IE. This required significant internal changes
+ but involves no API changes.
+ <b>Caveat:</b> <code>prettyPrintOne</code> injects the HTML
+ passed to it into a <code>&lt;pre&gt;</code> element.
+ If the HTML comes from a trusted source, this may allow XSS.
+ Do not do this. This should not be a problem for existing apps
+ since the standard usage is to rewrite the HTML and then inject
+ it, so anyone doing that with untrusted HTML already has an XSS
+ vulnerability. If you sanitize and prettify HTML from an
+ untrusted source, sanitize first.
+ </ul>
+ <h2>4 February 2013</h2>
+ <ul>
+ <li>Language handlers for Dart, Erlang, Mumps, TCL, R, S., and others</li>
+ <li>Bug fix: VB REM style comments.</li>
+ <li>Bug fix: CSS color literals / ID selector confusion.</li>
+ <li>Bug fix: IE8 line breaks.</li>
+ </ul>
+ <h2>24 February 2013</h2>
+ <ul>
+ <li>Added a one script autoload&amp;run mechanism and a way to
+ embed hints in processing instructions/comments.
+ See <a href="examples/quine.html">example</a>.
+ </ul>
+ <h2>4 March 2013</h2>
+ <ul>
+ <li>Matlab language handler courtesy Amro&#xb3;</li>
+ </ul>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit 33bafaa

Please sign in to comment.