Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read
Meta

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

+15
−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 does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

Sorry for the long delay! (2 comments)
General comments (1 comment)

3 answers

+8
−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.

Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+3
−0

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
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

Awesome :) (2 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.

Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »