changwei
V2EX  ›  问与答

chrome 中 pre 里面的代码无法高亮显示是为什么

  •  
  •   changwei · Jun 5, 2017 · 1720 views
    This topic created in 3350 days ago, the information mentioned may be changed or developed.

    RT 如图,IE EDGE 也能高亮显示,就是 chrome 不可以,这是为什么?

    问题传送门 https://segmentfault.com/q/1010000009654946

    3 replies    2017-06-05 17:43:47 +08:00
    mokeyjay
        1
    mokeyjay  
       Jun 5, 2017   ❤️ 1
    pre 本来就不支持代码高亮,高亮需要自己加前端组件

    而且你两个浏览器分别打开两个不同的页面,然后证明 Chrome 下 pre 无法高亮??
    jugelizi
        2
    jugelizi  
       Jun 5, 2017
    ...这个 chrome 表示很为难啊
    imherer
        3
    imherer  
       Jun 5, 2017
    chrome: 这锅我不背😒
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2737 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 13:56 · PVG 21:56 · LAX 06:56 · JFK 09:56
    ♥ Do have faith in what you're doing.