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:
@@ -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
|
||||
|
Reference in New Issue
Block a user