MyBB Community Forums

Full Version: Increasing height of formatted [code][/code] block
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
my myBB version: 1.6.10
Problem: the preformatted code blocks
display only 10 lines of data with a vertical scrollbar.
The same is the case while using a plugin i installed for syntax highlighting (Coolcodes downloaded from here)
Screenshot: http://puu.sh/4E2Qt/5fc777105d.png

What I need is that these blocks should display all the codes inside them without the need to scroll. I couldn't find any such option in the admin control panel. Is there an easy solution for this?
global.css has this rule:

.codeblock code {
	overflow: auto;
	height: auto;
	max-height: 200px;
	display: block;
	font-family: Monaco, Consolas, Courier, monospace;
	font-size: 13px;
}

You can edit this CSS in the ACP and change the max-height value from 200px to something higher.
(2013-09-30, 01:20 PM)Matt. Wrote: [ -> ]global.css has this rule:

.codeblock code {
	overflow: auto;
	height: auto;
	max-height: 200px;
	display: block;
	font-family: Monaco, Consolas, Courier, monospace;
	font-size: 13px;
}

You can edit this CSS in the ACP and change the max-height value from 200px to something higher.

Mindblowing speed of reply. Impressed.
Will try it now, Thank you for your help!