博客升级后一切正常,继续支持emlog!
----------------------------------------------------------------------------------------------
升级后不能使用代码高亮插件
解决方法:【请勿删除代码高亮插件】修改header.php或footer.php,加入以下代码:
<script type="text/javascript" src="<?php echo BLOG_URL; ?>content/plugins/syntaxHighlighter/brush/brush.js"></script> <script type="text/javascript">SyntaxHighlighter.config.clipboardSwf = "<?php echo BLOG_URL; ?>content/plugins/syntaxHighlighter/brush/clipboard.swf"; SyntaxHighlighter.all(); </script> <link rel="stylesheet" type="text/css" href ="h<?php echo BLOG_URL; ?>content/plugins/syntaxHighlighter/brush/shCore.css" /> <link rel="stylesheet" type="text/css" href ="<?php echo BLOG_URL; ?>content/plugins/syntaxHighlighter/brush/shThemeDefault.css" />
对编辑器进行了升级优化,增加了插入代码高亮显示功能,不再需要插件。如果模板不支持此功能,需要在头部引入相应的css文件和js文件:
修改header.php,加入以下代码:
<link href="<?php echo BLOG_URL; ?>admin/editor/plugins/code/prettify.css" rel="stylesheet" type="text/css"/> <script src="<?php echo BLOG_URL; ?>admin/editor/plugins/code/prettify.js" type="text/javascript"></script>
footer.php的</body>前加入:
<script>prettyPrint();</script>
相关阅读
留言咨询