MyBB Community Forums
Increasing height of formatted [code][/code] block - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Increasing height of formatted [code][/code] block (/thread-146094.html)



Increasing height of formatted [code][/code] block - varun113 - 2013-09-30

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?


RE: Increasing height of formatted [code][/code] block - Matt - 2013-09-30

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.


RE: Increasing height of formatted [code][/code] block - varun113 - 2013-09-30

(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!