Created
February 12, 2013 14:47
-
-
Save luckyshot/4770332 to your computer and use it in GitHub Desktop.
Load PrettyPrint plugin only if needed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load Prettyprint only if needed | |
if ($('.content pre').length > 0) { | |
$('.content pre').addClass('prettyprint'); | |
$('head').append('<link href="/prettify.css" type="text/css" rel="stylesheet" /><script type="text/javascript" src="prettify.js"></script>'); | |
prettyPrint(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment