As the newest generation of Stack Exchange sites are launched, one thing I'm envious of is the font style used for coding blocks.

Consider the following program here:

#include <stdio.h>

  printf("Hello World");

Compared to the same program on, say, DBA or Code Review:

Clean fonts for code

While we don't get a lot of code, the new code style is easier to read and would provide a bit of a contrast to the rest of the text.

  • 5
    Agreed - I don't think we need the syntax highlighting though, as that would only encourage people to post more code.
    – ChrisF Mod
    Commented Aug 16, 2011 at 22:52
  • 5
    I like the syntax highlighting though. It might not be necessary, but it makes the code look nicer.
    – BlackJack
    Commented Aug 17, 2011 at 0:30
  • 1
    @ChrisF: I like the syntax highlighting. Makes the code less visually bland.
    – Josh K
    Commented Aug 17, 2011 at 3:14
  • The font at Code Review is the same as Programmer's. Be honest: you can't tell the difference.
    – seriousdev
    Commented Aug 20, 2011 at 15:47
  • 2
    @sexyprout the font's the same, but the font size is 12px on DBA/Code Review and 14px here.
    – user8
    Commented Aug 20, 2011 at 18:17
  • I asked for this on SO but the idea was kicked into the long grass. Some of these Object-C code snippets we get there would benefit from a smaller fonts. :(
    – Kev
    Commented Aug 22, 2011 at 23:04
  • The difference between the 2 examples is the font size. On newer sites I decreased the code text size to 12px. Are you asking for a size change? The background colors are a bit different, but only slightly. #eeeeee vs #f3f3f3
    – Jin
    Commented Jan 26, 2012 at 15:52
  • @Jin Yeah, a change in size. The smaller size adds a bit of contrast to the surrounding text and helps mitigate some of the sideways scrolling found in larger code blocks. The shading seems fine (didn't even notice the difference).
    – user8
    Commented Jan 26, 2012 at 16:02

1 Answer 1


I have decreased the code block font size. This change will be deployed after our next production build.


You must log in to answer this question.