summaryrefslogtreecommitdiff
path: root/js/hilight.js
diff options
context:
space:
mode:
authorMichael Walker <mike@barrucadu.co.uk>2014-09-28 22:39:20 +0000
committerMichael Walker <mike@barrucadu.co.uk>2014-09-28 23:06:18 +0000
commit7c7a465966ea66d2b5ebbcf6567e7b04cbd3f9f2 (patch)
treecb082c23cb916c50eadc8f8052c5dc8c6b3c7bf9 /js/hilight.js
parentd60fd4abf3ad5f6686713f19cf106b8ba9080609 (diff)
Implement syntax highlighting
Diffstat (limited to 'js/hilight.js')
-rw-r--r--js/hilight.js12
1 files changed, 12 insertions, 0 deletions
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();});
+