代码块自动换行(Prism.js)

问题:

Prism代码高亮插件,在代码超出时无法自动换行,影响代码的阅读。

解决方法:

在本主题中,修改Yumoe/assert/css/prism.css,
将white-space: pre;修改为:white-space: pre-wrap;
即可!

tag(s): prism
show comments · back · home
Edit with Markdown

已有 10 条评论

  1. xgdjgusbvc

    叼茂SEO.bfbikes.com

    xgdjgusbvc September 23rd, 2024 at 04:28 am回复
  2. vesjgsebch

    想想你的文章写的特别好

    vesjgsebch September 23rd, 2024 at 09:44 am回复
  3. ctyywpfdnv

    不错不错,我喜欢看 https://www.jiwenlaw.com/

    ctyywpfdnv September 23rd, 2024 at 09:44 am回复
  4. dsptgxfzmm

    不错不错,我喜欢看 https://www.ea55.com/

    dsptgxfzmm October 4th, 2024 at 09:57 pm回复
  5. otsbsquwqb

    兄弟写的非常好 https://www.cscnn.com/

    otsbsquwqb October 19th, 2024 at 05:30 pm回复
  6. omvxdwvayw

    文章的确不错啊https://www.cscnn.com/

    omvxdwvayw October 19th, 2024 at 05:30 pm回复
  7. zrrrjxvhnf

    《詹姆斯梅:人在印度第三季》记录片高清在线免费观看:https://www.jgz518.com/xingkong/25325.html

    zrrrjxvhnf November 13th, 2024 at 08:57 am回复
  8. tykypsbphp

    博主太厉害了!

    tykypsbphp November 14th, 2024 at 03:02 am回复
  9. zsnzrdcuew

    《Re:Follower》日本剧高清在线免费观看:https://www.jgz518.com/xingkong/140029.html

    zsnzrdcuew November 14th, 2024 at 11:40 pm回复
  10. wtkrqvalxf

    《吉姆与卢克司机》剧情片高清在线免费观看:https://www.jgz518.com/xingkong/6086.html

    wtkrqvalxf November 15th, 2024 at 12:18 pm回复