Add code highlighting

This commit is contained in:
Dmitriy Simushev 2015-04-11 15:33:54 +00:00
parent f79432ab82
commit 317f2673b0
2 changed files with 9 additions and 1 deletions

View File

@ -3,6 +3,7 @@
"private": true,
"dependencies": {
"bootstrap": "~3.3.4",
"jquery": "~1.11.2"
"jquery": "~1.11.2",
"highlightjs": "~8.5.0"
}
}

View File

@ -14,6 +14,9 @@
<!-- Bootstrap core CSS -->
<link href="{{baseUrl}}/assets/third-party/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Hightlight.js styles -->
<link href="{{ baseUrl }}/assets/third-party/highlightjs/styles/github.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="{{baseUrl}}/assets/theme.css" rel="stylesheet">
@ -64,5 +67,9 @@
<script src="{{baseUrl}}/assets/third-party/jquery/dist/jquery.min.js"></script>
<script src="{{baseUrl}}/assets/third-party/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Load and initialize Highlight.js -->
<script src="{{baseUrl}}/assets/third-party/highlightjs/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>