Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit fb81836

Browse files
author
mikesamuel
committed
cleanup source code and updated link to most recent distro.
1 parent e351373 commit fb81836

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1>Javascript code prettifier</h1>
2020

2121
<h2>Setup</h2>
2222
<ol>
23-
<li><a href="http://google-code-prettify.googlecode.com/files/prettify-small.zip">Download</a> a distribution
23+
<li><a href="http://google-code-prettify.googlecode.com/files/prettify-small-4-Jul-2008.zip">Download</a> a distribution
2424
<li>Include the script and stylesheets in your document
2525
(you will need to make sure the css and js file are on your server, and
2626
adjust the paths in the <tt>script</tt> and <tt>link</tt> tag)

src/prettify.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ function pr_isIE6() {
893893
* @param {string} sourceText plain text
894894
* @param {Array.<number|string>} extractedTags chunks of raw html preceded
895895
* by their position in sourceText in order.
896-
* @param {Array.<number|string> decorations style classes preceded by their
896+
* @param {Array.<number|string>} decorations style classes preceded by their
897897
* position in sourceText in order.
898898
* @return {string} html
899899
* @private
@@ -1172,8 +1172,8 @@ function pr_isIE6() {
11721172
doWork();
11731173
}
11741174

1175-
this.PR_normalizedHtml = normalizedHtml;
1176-
this.prettyPrintOne = prettyPrintOne;
1177-
this.prettyPrint = prettyPrint;
1178-
this.PR_registerLangHandler = registerLangHandler;
1175+
window.PR_normalizedHtml = normalizedHtml;
1176+
window.prettyPrintOne = prettyPrintOne;
1177+
window.prettyPrint = prettyPrint;
1178+
window.PR_registerLangHandler = registerLangHandler;
11791179
})();

0 commit comments

Comments
 (0)