特效介绍
dedecms kindeditor编辑器和SyntaxHighlighter代码高亮整合版下载。适用于dedecms utf-8 V5.6和V5.7两个版本
使用方法
1 解压压缩包,放到系统目录include文件夹下2 系统后台中设置[系统]-[核心设置],在“Html编辑器(ckeditor,需要fck的用户可以去官网下载)”中设置:kindeditor
3 如果要插入“运行代码”,在文章页头部添加如下代码:
<link href="/include/kindeditor/plugins/runCode/runCode.css" rel="stylesheet" media="screen" type="text/css" /> <script language="javascript" type="text/javascript" src="/include/kindeditor/plugins/runCode/zztuku_runCode.js"></script>
4.1 如果要高亮显示代码快,在文章页头部添加如下代码:
<script type="text/javascript" src="/include/kindeditor/plugins/code/syntaxhighlighter.js" charset="UTF-8"></script> <link type="text/css" rel="stylesheet" href="/include/kindeditor/plugins/code/shCore.css"/> <link type="text/css" rel="stylesheet" href="/include/kindeditor/plugins/code/shThemeDefault.css"/>
4.2 在文章尾部添加如下代码:
<script type="text/javascript"> SyntaxHighlighter.config.clipboardSwf = '/include/kindeditor/plugins/code/clipboard.swf';SyntaxHighlighter.config.strings={expandSource:'展开代码',viewSource:'查看代码',copyToClipboard:'复制代码',copyToClipboardConfirmation:'复制代码成功',print:'打印',help:'?',alert:'<a href="http://www.5imoban.net/" target="_blank"><u>我爱模版</u></a>提示:\n\n', noBrush: '不能找到刷子: ',brushNotHtmlScript: '刷子没有配置html-script选项',aboutDialog: '<div></div>'}; SyntaxHighlighter.all();</script>