Skip to content

Instantly share code, notes, and snippets.

@rayx32
Created September 2, 2012 05:25
Show Gist options
  • Save rayx32/3595068 to your computer and use it in GitHub Desktop.
Save rayx32/3595068 to your computer and use it in GitHub Desktop.
(function() {
try {
prettyPrint();
} catch(e) {
var scriptId = 'prettyPrinter';
if (document.getElementById(scriptId) === null) {
var elem = document.createElement('SCRIPT');
elem.id = scriptId;
elem.onload = function() {
prettyPrint();
}
elem.src = "https://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js";
var theBody = document.getElementsByTagName('body')[0];
theBody.appendChild(elem);
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment