Plugin name: Syntaxhighlighter Evolved
This is a great plugin to show code on your WordPress blog. It supports many languages and is easy to use and modify.
However, if a line of code is too long, it will go to the next line instead of adding a horizontal scrollbar. The current situation is not pretty and if you have a lot of lines of code, the line numbering is messed up too.
Here is an example of what I mean:
To solve this, a single line of CSS code is required. Go to the plugin directory and find the styles folder /wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/
and edit the shCore.css
file.
At the bottom, just add:
code { white-space: nowrap !important; }
Empty your cache if necessary and you have a much prettier Syntaxhighlighter without messed up line numbering.