From fb8183660a522c49a0b4c5684b821bdf674b97b9 Mon Sep 17 00:00:00 2001 From: mikesamuel Date: Sat, 5 Jul 2008 05:04:24 +0000 Subject: [PATCH] cleanup source code and updated link to most recent distro. --- README.html | 2 +- src/prettify.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.html b/README.html index dfb4a496..2bac0b00 100644 --- a/README.html +++ b/README.html @@ -20,7 +20,7 @@

Javascript code prettifier

Setup

    -
  1. Download a distribution +
  2. Download a distribution
  3. Include the script and stylesheets in your document (you will need to make sure the css and js file are on your server, and adjust the paths in the script and link tag) diff --git a/src/prettify.js b/src/prettify.js index 81de4dd8..eef87d9a 100644 --- a/src/prettify.js +++ b/src/prettify.js @@ -893,7 +893,7 @@ function pr_isIE6() { * @param {string} sourceText plain text * @param {Array.} extractedTags chunks of raw html preceded * by their position in sourceText in order. - * @param {Array. decorations style classes preceded by their + * @param {Array.} decorations style classes preceded by their * position in sourceText in order. * @return {string} html * @private @@ -1172,8 +1172,8 @@ function pr_isIE6() { doWork(); } - this.PR_normalizedHtml = normalizedHtml; - this.prettyPrintOne = prettyPrintOne; - this.prettyPrint = prettyPrint; - this.PR_registerLangHandler = registerLangHandler; + window.PR_normalizedHtml = normalizedHtml; + window.prettyPrintOne = prettyPrintOne; + window.prettyPrint = prettyPrint; + window.PR_registerLangHandler = registerLangHandler; })();