Removing vertical scrollbar from SyntaxHighlighter 3

An annoying bug in the new version of SyntaxHighlighter 3 shows vertical scrollbar on every code snippet.

To fix this, SSH to your hosting and change the code under syntaxhighlighter/syntaxhighlighter3/styles/shCore.css and change:

.syntaxhighlighter {
  ...
  overflow: auto !important;
  ...
}

to:

.syntaxhighlighter {
  ...
  overflow: hidden !important;
  ...
}

Proof: Did you see vertical scrollbar on my snippet?

Leave a Reply

Your email address will not be published. Required fields are marked *