[pmwiki-users] HightlightJs using Precode markup

V.Krishn vkrishn4 at gmail.com
Mon Jul 9 20:46:40 CDT 2012


HighlightJs is able to use Precode general code block markup,
alongwith, its features like, line-number, etc.
Please have look at:
http://insteps.net/pr/a/pmwiki/Test/HighlightJs3

Its can be installed by:
 1. Install Precode - http://insteps.net/pr/a/pmwiki/Cookbook/Precode
 2. Add the following in template directly or via php.

<script src="http://yandex.st/highlightjs/7.0/highlight.min.js"></script>
  <script type="text/javascript">
    hljs.tabReplace = '    ';
    hljs.initHighlightingOnLoad();
</script>
<link rel="stylesheet" 
href="http://yandex.st/highlightjs/7.0/styles/default.min.css">

Sample: http://insteps.net/pr/a/pmwiki/Test/HighlightJs3

-- 
Regards.
V.Krishn



More information about the pmwiki-users mailing list