Consolas for MSDN Code Samples

For some reason, Microsoft recently decided to use their ancient Courier font for code sample on MSDN. Besides being plain ugly, it doesn’t play well with anti-aliasing technologies like ClearType:

msdn-code-before

If you use Firefox, however, it is possible to apply personal style sheets to web sites. The easiest way to accomplish this is through the Stylish extension. After installing Stylish, visit msdn.microsoft.com and create a new style as shown below:

new-style

Give your new style a descriptive name and paste the following style sheet:

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("msdn.microsoft.com") 
{
  pre
  {
    font-family: Consolas !important;
  }
}

The result, in my opinion, is much easier on the eyes:

msdn-code-after