3
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4
<title>Change Log</title>
7
<a style="float:right" href="README.html">README</a>
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
24
<h2>29 March 2007</h2>
26
<li>Added <a href="tests/prettify_test.html#PHP">tests</a> for PHP support
28
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=3"
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.
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>)
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
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>
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"
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.
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>
65
<li>Defined language extensions for Lisp and Lua</code>
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.
74
<a href="tests/prettify_test.html#issue22">testcase</a>.</code>
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
82
href="http://code.google.com/p/google-code-prettify/issues/detail?id=37"
84
<li>Added <tt>.m</tt> extension to the C style handler so that Objective
85
C source files properly highlight. See
87
href="http://code.google.com/p/google-code-prettify/issues/detail?id=58"
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.
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>
101
<h2>14 August 2009</h2>
103
<li>Fixed prettifying of <code><code></code> blocks with embedded newlines.
105
<h2>3 October 2009</h2>
107
<li>Fixed prettifying of XML/HTML tags that contain uppercase letters.
109
<h2>19 July 2010</h2>
111
<li>Added support for line numbers. Bug
112
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=22"
114
<li>Added YAML support. Bug
115
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=123"
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.
126
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=108"
129
<h2>7 September 2010</h2>
131
<li>Added support for coffeescript courtesy Cezary Bartoszuk.</li>
133
<h2>4 March 2011</h2>
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>
140
<h2>29 March 2011</h2>
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.