highlight.js library added to highlight programming code examples in article view

This commit is contained in:
Maryana Rozhankivska
2014-07-22 20:17:15 +03:00
parent 5594d7d054
commit 9f8541ef2a
9 changed files with 448 additions and 0 deletions

4
themes/default/_highlight.twig Executable file
View File

@ -0,0 +1,4 @@
{# include excelent highlight.js library for code highligting, see http://highlightjs.org/ #}
<link rel="stylesheet" href="{{ poche_url }}themes/default/highlightjs/styles/github.css">
<script src="{{ poche_url }}themes/default/highlightjs/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>