From 7c7a465966ea66d2b5ebbcf6567e7b04cbd3f9f2 Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Sun, 28 Sep 2014 22:39:20 +0000 Subject: Implement syntax highlighting --- js/hilight.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 js/hilight.js (limited to 'js/hilight.js') diff --git a/js/hilight.js b/js/hilight.js new file mode 100644 index 00000000..0e1612bf --- /dev/null +++ b/js/hilight.js @@ -0,0 +1,12 @@ +function styleCode() { + $('pre').each(function() { + if (!$(this).hasClass('prettyprint')) { + $(this).addClass('prettyprint'); + } + }); + + prettyPrint(); +} + +$(function() {styleCode();}); + -- cgit v1.3