Implement syntax highlighting

This commit is contained in:
Michael Walker 2014-09-28 22:39:20 +00:00
parent d60fd4abf3
commit 7c7a465966
7 changed files with 1980 additions and 3 deletions

12
js/hilight.js Normal file
View file

@ -0,0 +1,12 @@
function styleCode() {
$('pre').each(function() {
if (!$(this).hasClass('prettyprint')) {
$(this).addClass('prettyprint');
}
});
prettyPrint();
}
$(function() {styleCode();});