diff options
| author | Michael Walker <mike@barrucadu.co.uk> | 2014-09-28 22:39:20 +0000 |
|---|---|---|
| committer | Michael Walker <mike@barrucadu.co.uk> | 2014-09-28 23:06:18 +0000 |
| commit | 7c7a465966ea66d2b5ebbcf6567e7b04cbd3f9f2 (patch) | |
| tree | cb082c23cb916c50eadc8f8052c5dc8c6b3c7bf9 /js/hilight.js | |
| parent | d60fd4abf3ad5f6686713f19cf106b8ba9080609 (diff) | |
Implement syntax highlighting
Diffstat (limited to 'js/hilight.js')
| -rw-r--r-- | js/hilight.js | 12 |
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();}); + |
