CHANGES.html 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. <h1>Known Issues</h1>
  9. <ul>
  10. <li>Perl formatting is really crappy. Partly because the author is lazy and
  11. partly because Perl is
  12. <a href="http://www.perlmonks.org/?node_id=663393">hard</a> to parse.
  13. <li>On some browsers, <code>&lt;code&gt;</code> elements with newlines in the text
  14. which use CSS to specify <code>white-space:pre</code> will have the newlines
  15. improperly stripped if the element is not attached to the document at the time
  16. the stripping is done. Also, on IE 6, all newlines will be stripped from
  17. <code>&lt;code&gt;</code> elements because of the way IE6 produces
  18. <code>innerHTML</code>. Workaround: use <code>&lt;pre&gt;</code> for code with
  19. newlines.
  20. </ul>
  21. <h1>Change Log</h1>
  22. <h2>29 March 2007</h2>
  23. <ul>
  24. <li>Added <a href="tests/prettify_test.html#PHP">tests</a> for PHP support
  25. to address
  26. <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=3"
  27. >issue 3</a>.
  28. <li>Fixed
  29. <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=6"
  30. >bug</a>: <code>prettyPrintOne</code> was not halting. This was not
  31. reachable through the normal entry point.
  32. <li>Fixed
  33. <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4"
  34. >bug</a>: recursing into a script block or PHP tag that was not properly
  35. closed would not silently drop the content.
  36. (<a href="tests/prettify_test.html#issue4">test</a>)
  37. <li>Fixed
  38. <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=8"
  39. >bug</a>: was eating tabs
  40. (<a href="tests/prettify_test.html#issue8">test</a>)
  41. <li>Fixed entity handling so that the caveat
  42. <blockquote>
  43. <p>Caveats: please properly escape less-thans. <tt>x&amp;lt;y</tt>
  44. instead of <tt>x&lt;y</tt>, and use <tt>&quot;</tt> instead of
  45. <tt>&amp;quot;</tt> for string delimiters.</p>
  46. </blockquote>
  47. is no longer applicable.
  48. <li>Added noisefree's C#
  49. <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4"
  50. >patch</a>
  51. <li>Added a <a href="http://google-code-prettify.googlecode.com/files/prettify-small.zip">distribution</a> that has comments and
  52. whitespace removed to reduce download size from 45.5kB to 12.8kB.
  53. </ul>
  54. <h2>4 Jul 2008</h2>
  55. <ul>
  56. <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
  57. of a <code>lang-&lt;language-file-extension&gt;</code></li>
  58. <li>Fixed <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=29">bug</a>: python handling of <code>'''string'''</code>
  59. <li>Fixed bug: <code>/</code> in regex <code>[charsets] should not end regex</code>
  60. </ul>
  61. <h2>5 Jul 2008</h2>
  62. <ul>
  63. <li>Defined language extensions for Lisp and Lua</code>
  64. </ul>
  65. <h2>14 Jul 2008</h2>
  66. <ul>
  67. <li>Language handlers for F#, OCAML, SQL</code>
  68. <li>Support for <code>nocode</code> spans to allow embedding of line
  69. numbers and code annotations which should not be styled or otherwise
  70. affect the tokenization of prettified code.
  71. See the issue 22
  72. <a href="tests/prettify_test.html#issue22">testcase</a>.</code>
  73. </ul>
  74. <h2>6 Jan 2009</h2>
  75. <ul>
  76. <li>Language handlers for Visual Basic, Haskell, CSS, and WikiText</li>
  77. <li>Added <tt>.mxml</tt> extension to the markup style handler for
  78. Flex <a href="http://en.wikipedia.org/wiki/MXML">MXML files</a>. See
  79. <a
  80. href="http://code.google.com/p/google-code-prettify/issues/detail?id=37"
  81. >issue 37</a>.
  82. <li>Added <tt>.m</tt> extension to the C style handler so that Objective
  83. C source files properly highlight. See
  84. <a
  85. href="http://code.google.com/p/google-code-prettify/issues/detail?id=58"
  86. >issue 58</a>.
  87. <li>Changed HTML lexer to use the same embedded source mechanism as the
  88. wiki language handler, and changed to use the registered
  89. CSS handler for STYLE element content.
  90. </ul>
  91. <h2>21 May 2009</h2>
  92. <ul>
  93. <li>Rewrote to improve performance on large files.
  94. See <a href="http://mikesamuel.blogspot.com/2009/05/efficient-parsing-in-javascript.html">benchmarks</a>.</li>
  95. <li>Fixed bugs with highlighting of Haskell line comments, Lisp
  96. number literals, Lua strings, C preprocessor directives,
  97. newlines in Wiki code on Windows, and newlines in IE6.</li>
  98. </ul>
  99. <h2>14 August 2009</h2>
  100. <ul>
  101. <li>Fixed prettifying of <code>&lt;code&gt;</code> blocks with embedded newlines.
  102. </ul>
  103. <h2>3 October 2009</h2>
  104. <ul>
  105. <li>Fixed prettifying of XML/HTML tags that contain uppercase letters.
  106. </ul>
  107. <h2>19 July 2010</h2>
  108. <ul>
  109. <li>Added support for line numbers. Bug
  110. <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=22"
  111. >22</a></li>
  112. <li>Added YAML support. Bug
  113. <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=123"
  114. >123</a></li>
  115. <li>Added VHDL support courtesy Le Poussin.</li>
  116. <li>IE performance improvements. Bug
  117. <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=102"
  118. >102</a> courtesy jacobly.</li>
  119. <li>A variety of markup formatting fixes courtesy smain and thezbyg.</li>
  120. <li>Fixed copy and paste in IE[678].
  121. <li>Changed output to use <code>&amp;#160;</code> instead of
  122. <code>&amp;nbsp;</code> so that the output works when embedded in XML.
  123. Bug
  124. <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=108"
  125. >108</a>.</li>
  126. </ul>
  127. <h2>7 September 2010</h2>
  128. <ul>
  129. <li>Added support for coffeescript courtesy Cezary Bartoszuk.</li>
  130. </ul>
  131. <h2>4 March 2011</h2>
  132. <ul>
  133. <li>Added a <a href="http://google-code-prettify.googlecode.com/svn/trunk/styles/index.html">themes
  134. gallery</a> to showcase contributed styles.</li>
  135. <li>Added support for XQuery courtesy Patrick Wied, Nemerle
  136. courtesy Zimin A.V., and Latex support courtesy Martin S.</li>
  137. </ul>
  138. <h2>29 March 2011</h2>
  139. <ul>
  140. <li>Fixed IE newline issues, and copying/pasting of prettified
  141. source code from IE. This required significant internal changes
  142. but involves no API changes.
  143. <b>Caveat:</b> <code>prettyPrintOne</code> injects the HTML
  144. passed to it into a <code>&lt;pre&gt;</code> element.
  145. If the HTML comes from a trusted source, this may allow XSS.
  146. Do not do this. This should not be a problem for existing apps
  147. since the standard usage is to rewrite the HTML and then inject
  148. it, so anyone doing that with untrusted HTML already has an XSS
  149. vulnerability. If you sanitize and prettify HTML from an
  150. untrusted source, sanitize first.
  151. </ul>
  152. <h2>4 February 2013</h2>
  153. <ul>
  154. <li>Language handlers for Dart, Erlang, Mumps, TCL, R, S., and others</li>
  155. <li>Bug fix: VB REM style comments.</li>
  156. <li>Bug fix: CSS color literals / ID selector confusion.</li>
  157. <li>Bug fix: IE8 line breaks.</li>
  158. </ul>
  159. <h2>24 February 2013</h2>
  160. <ul>
  161. <li>Added a one script autoload&amp;run mechanism and a way to
  162. embed hints in processing instructions/comments.
  163. See <a href="examples/quine.html">example</a>.
  164. </ul>
  165. <h2>4 March 2013</h2>
  166. <ul>
  167. <li>Matlab language handler courtesy Amro&#xb3;</li>
  168. </ul>
  169. </body>
  170. </html>