Skip to content

Instantly share code, notes, and snippets.

@ksauzz
Last active February 22, 2018 10:41
Show Gist options
  • Save ksauzz/5545499 to your computer and use it in GitHub Desktop.
Save ksauzz/5545499 to your computer and use it in GitHub Desktop.
<!-- For Syntax Highlighting -->
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css"></link>
<script src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"></script>
<script>
function styleCode() {
if (typeof disableStyleCode != 'undefined') { return; }
var a = false;
$('code').each(function() {
if (!$(this).hasClass('prettyprint')) {
$(this).addClass('prettyprint');
a = true;
}
});
if (a) { prettyPrint(); }
}
$(function() {styleCode();});
</script>
@emiliofmartin
Copy link

Broken links.

<script src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment