Automatic line break in js SyntaxHighlighter

前端 未结 2 1612
失恋的感觉
失恋的感觉 2020-12-31 05:38

Im using the js SyntaxHighlighter 3.0.83 from http://alexgorbatchev.com/SyntaxHighlighter/

I\'ve been googling the entire world now it seem but cant really find how

2条回答
  •  有刺的猬
    2020-12-31 05:50

    I don't actually use SyntaxHighlight, but it seems to be possible to attach an white-space: pre-wrap CSS style to the

     or 
    

    CSS:

    .syntaxhighlight {
        white-space: pre-wrap;
    }
    

提交回复
热议问题