html5 - Why does Baidu Ueditor's code highlighting conflict with the code segment scroll bar?
黄舟
黄舟 2017-05-16 13:42:16
0
1
1006

This is normal code display (from the database), highlighting is not turned on at this time

Enable highlighting as follows in the document:

<script type="text/javascript" charset="utf-8" src="./ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="./ueditor/lang/zh-cn/zh-cn.js"></script>
  <script>
    SyntaxHighlighter.all();
  </script>

Afterwards, the code displayed on the web page does show the highlight, but the scroll bar is lost

How can I have both highlighting and scroll bars?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
滿天的星座

<script type="text/javascript" charset="utf-8" src="./ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="./ueditor/lang/zh-cn/zh-cn.js"></script>
<script>

SyntaxHighlighter.all();

</script>

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!