search

Home  >  Q&A  >  body text

html5 - Why does Baidu Ueditor's code highlighting conflict with the code segment scroll bar?

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?

黄舟黄舟2748 days ago1061

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 13:44:16

    <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>

    reply
    0
  • Cancelreply