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 to enable line breaks. Instad i get a horizontal scrollbar, which is good sometimes but not in my scenario.
In example
Anyone out there who know the way around this?
I don't actually use SyntaxHighlight, but it seems to be possible to attach an
white-space: pre-wrap
CSS style to the<pre>
or<script>
tag that SyntaxHighlight uses.HTML (using
<pre>
):HTML (using
<script>
):CSS:
The wrap is no longer an option but you can add the functionality easily.
Add this to the css to break the lines
To fix the line numbering use the script below.