优化代码高亮

This commit is contained in:
Minho
2018-01-27 13:56:45 +08:00
parent 55c0854be1
commit 538f9c4c19
5 changed files with 46 additions and 4 deletions

View File

@@ -300,6 +300,16 @@ function uploadImage($id,$callback) {
});
}
/**
* 初始化代码高亮
*/
function initHighlighting() {
$('pre code,pre.ql-syntax').each(function (i, block) {
hljs.highlightBlock(block);
});
hljs.initLineNumbersOnLoad();
}
$(function () {
window.vueApp = new Vue({
el : "#attachList",