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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s