destoon6.0在编辑器kindedtior添加code代码高亮插件,本站对destoon改造了一下,有很多代码教程类文章,官方阉割了code功能,现在告诉大家destoon如何添加代码高亮。
在/member/editor/kindeditor/init.inc.php的39行加上code,如下
else {
$editor .= "items : [".(defined('DT_ADMIN') ? "'source', '|', " : "")."'undo', 'redo', '|', 'preview', 'print', 'template', 'cut', 'copy', 'paste', 'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', '|', 'removeformat', 'clearhtml', 'quickformat', '|', 'fullscreen', '/', 'link', 'unlink', 'anchor','formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough', 'lineheight', 'table', 'hr', 'emoticons', '|', 'image', 'multiimage', 'media', 'insertfile', 'code'],";
}