百度编辑器UEditor插入代码块解决方案

发布时间:2021-03-15 16:34:50    发布者:文昌文城莱奥网络技术工作室    浏览次数:33

在对应的模板<head></head>之间插入如下代码:

<link rel="stylesheet" href="/include/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css" type="text/css" />
<script type="text/javascript" src="/include/ueditor/third-party/SyntaxHighlighter/shCore.js"></script>
<script type="text/javascript"> SyntaxHighlighter.all(); </script>