Skip to content Skip to sidebar Skip to footer

How To I Set The Max Height Of A Syntaxhighlighter Code Block Both Website-wide And For A Single Block Of Code?

I'd like to both locally and globally set the max height of SyntaxHighlighter code blocks. Here's an example of a global implementation that sort of works: Once you get SyntaxHigh

Solution 1:

use css style

max-height

.syntaxhighlighter {
    overflow-y: auto !important;
    overflow-x: auto !important;
    max-height: 1024px;
}

Post a Comment for "How To I Set The Max Height Of A Syntaxhighlighter Code Block Both Website-wide And For A Single Block Of Code?"