1<link rel="stylesheet"
2 href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.0.3/build/styles/default.min.css">
3<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.0.3/build/highlight.min.js"></script>
4
1<link rel="stylesheet"
2 href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/styles/default.min.css">
3<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/highlight.min.js"></script>
4
1<link rel="stylesheet" href="/path/to/styles/default.css">
2<script src="/path/to/highlight.min.js"></script>
3<script>hljs.highlightAll();</script>
1<link rel="stylesheet"
2 href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/default.min.css">
3<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script>
4// FÖr att länka highlightjs till HTML för extra funktioner
1$('body').children().mouseover(function(e){
2 $(".hova").removeClass("hova");
3 $(e.target).addClass("hova");
4 return false;
5}).mouseout(function(e) {
6 $(this).removeClass("hova");
7});
8