Notifications
Mark all as read
Meta

The size of the code format window is much too small.

+9
−1

When posting a lot of code on the site, the "code format window" is much too small:

1   I'm talking about this thing
2
3
4
5
6
7
8
9
10
11
12
13
14
15

The scroll bar appears after only 13 lines for me, so I can only view 13 lines at a time without scrolling. That's much too small. Back in the days of MS DOS we were stuck with 25 lines on the screen, which was a pittance. Any reason why Codidact caps out at half of that?

Modern IDEs on high resolution monitors show at least 40-50 lines simultaneously. Stack Overflow shows 33 lines simultaneously (and is not responsive to zooming).

Now this might very well be some responsive design hiccup I'm not aware of - if so I'd appreciate advise for how to fix it. I can't get zooming or font size settings on Firefox to affect the 13 line limit anyhow. I view the site in 1920x1200 resolution on a 28 inch monitor, so it is quite capable of showing more than 13 readable lines at once.

Can we increase this limit to some >30 lines? As it stands, it is painful to read code posted on the site, code reviews in particular.

Why should this post be closed?

1 comment

Use $('pre').css('max-height', 2000); while it's broken. .                                                .‭ 27 days ago

2 answers

+5
−0

I agree. Something that might be more useful is to allow the text boxes to be resizeable by the user. In most places, there's a small tab on the lower-right corner of a text box that allows the user to arbitrarily change the size of the box.

That would be very useful not only for the main text box used to write questions and this very answer, but also for the smaller comment boxes.

0 comments

+3
−1

Seconded.

This looks accidental, since the height is set to 20em, but the line-height is set to 1.5em, resulting in 20/1.5 = 13 lines being displayed.

I wonder what that line-height is for? I know of no code editor that uses an increased line height?

I'd therefore consider both increasing the height a bit, and using a standard line height to use available space more effectively.

0 comments

Sign up to answer this question »