Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

This is a suggestion for Stack Overflow Code Block.

The style of the code blocks on Code Review is much more decent as compared to that is being using in Stack Overflow.

Is there any good reason for not changing Stack Overflow's code style?

share|improve this question
Stack Overflow uses Google Prettify... I feel that it works great! Is there any specific thing you don't like about it? Perhaps it is just confusion about a certain feature... What exactly do you not like about it? – Lix Jul 5 '12 at 9:59
@Lix I take the OP is referring to the CSS styles used for the highlighted code, but maybe he doesn't effectively know Stack Exchange is using the same software for all the sites. – kiamlaluno Jul 5 '12 at 10:00
@cod - Saying that you don't like it is not really a good enough reason to change something. Perhaps you can be more specific? – Lix Jul 5 '12 at 10:02
Actually I meant to say the CSS used in Code Review is neat and compact, whereas in StackOveflow it consumes more space and is not neat also. – Code1008 Jul 5 '12 at 10:04
@Lix I know it very well that it won't change on my choice. – Code1008 Jul 5 '12 at 10:05
Here's my guess: Most CR posts have large hunks of code. This can easily drown out the text, so the style is more muted. On the other hand, SO usually doesn't have large hunks of code, but the code is pretty important--hence it is more prominent. – Manishearth Jul 5 '12 at 10:19
up vote 2 down vote accepted

For me, Code Review looks better than SO too.

Inline code on Code Review

Also, I like the inline code better, with the whitespace between lines, unlike Stack Overflow,
where lines blend into each other.

share|improve this answer

It's funny that you'd say this. For me (Chrome on OS X) the style on Code Review is more spread out and harder to read compared to what's used on SO. Here's codereview:

codereview screenshot

and here's SO:

stackoverflow screenshot

(Images might be scaled when viewing on the mobile site.)

As you (hopefully) see, the lines on codereview are farther apart, yet the type is smaller. This means more scrolling, and more eyestrain. I can't see how either of these aspects are better, frankly.

share|improve this answer
Where did you view this? Your images were 770 pixels wide (and on the regular site than shown scaled to 640), where the main content area on these sites is 650 pixels. On my OS X on a MacBook Air, I like Code Review's rendering better than that on SO. – Arjan Jul 5 '12 at 15:40
SO's code window looks ugly to me. – Code1008 Jul 9 '12 at 5:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .