1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Improved code pasting experience. Fixes #6

This commit is contained in:
Dan Brown
2015-08-22 15:06:03 +01:00
parent 732f3a9986
commit 7b65ba49f6
5 changed files with 39 additions and 7 deletions

View File

@@ -6,4 +6,15 @@
@include('pages/page-display')
</div>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/styles/solarized_light.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/highlight.min.js"></script>
<script>
window.onload = function() {
var aCodes = document.getElementsByTagName('pre');
for (var i=0; i < aCodes.length; i++) {
hljs.highlightBlock(aCodes[i]);
}
};
</script>
@stop