这里是普通文章模块栏目内容页
dedecms织梦升级ckeditor4.7.0 + 添加代码高亮插件





使用说明

【警告】使用前备份好这个文件,防止有二次开发过。

\include\inc\inc_fun_funAdmin.php

下载上面的压缩包,解压后选择程序对应的编码文件夹,对应的覆盖进去即可。

清空浏览器临时文件,刷新后台,使用ckeditor编辑器。

前台页面显示代码高亮,在内容模板里加入以下代码即可。

<link rel="stylesheet" href="/include/ckeditor/plugins/codesnippet/lib/highlight/styles/monokai_sublime.css">

<script src="/include/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script>

<style>

<!--解决代码换行+圆角-->

pre{font-size:inherit;line-height: inherit;font-family: inherit;white-space: pre-wrap;white-space: -moz-pre-wrap;white-space: -pre-wrap;white-space: -o-pre-wrap;word-wrap: break-word;word-break: break-all;border-radius: 4px;}

</style>

dedecms织梦升级ckeditor4.7.0 + 添加代码高亮插件