Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
The size of the code format window is much too small.
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.
3 answers
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 comment threads
The following users marked this post as Works for me:
User | Comment | Date |
---|---|---|
Lundin | (no comment) | Nov 25, 2022 at 10:35 |
I apologize for the long delay in getting such a small change made and deployed.
Someday I would like the blocks to be resizable, but in the meantime, a code block now shows 40 lines before the scrollbar kicks in:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
the answer to life, the universe, and everything
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.
2 comment threads