Commit: 6444024495fe6db2174d85764ccdf35d164a4c89

Author: Jon Adams | Date: 2010-03-01 22:24:21 -0800
Adding code highlight js and php class to code element for source.
diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php index 38a220e..86c944c 100644 --- a/views/layouts/default.html.php +++ b/views/layouts/default.html.php @@ -52,7 +52,8 @@ <?php echo $this->html->script(array( 'http://code.jquery.com/jquery-1.4.1.min.js', 'rad.cli', - 'showdown.min' + 'showdown.min', + 'highlight.pack' )); ?> <script type="text/javascript" charset="utf-8"> $(document).ready(function () { @@ -70,6 +71,7 @@ $(this).text((visible ? 'Show' : 'Hide') + ' source'); visible ? $('pre code').slideUp() : $('pre code').slideDown(); }); + hljs.initHighlightingOnLoad(); }); </script> </body>