Darrell Norton's Blog [MVP]

Sponsors

The Lounge

News

  • Darrell Norton pic

    MVP logo

    View Darrell Norton's profile on LinkedIn

    Currently Reading:

    weewar.com

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Viewing MSDN code samples in Firefox or Mozilla browsers

The MSDN facelift (not MSDN2) hosed the formatting of code samples in Firefox and Mozilla browsers. To fix it, add this to your userContent.css file (chromEdit is the easiest way to modify this file):

/* Microsoft MSDN code stylesheet */
pre
{
 white-space: pre !important;
}


Posted 09-30-2004 7:49 AM by Darrell Norton

[Advertisement]

Comments

Scott Galloway wrote re: Viewing MSDN code samples in Firefox or Mozilla browsers
on 09-30-2004 3:54 AM
Excellent tip, that's always really annoyed me!
Darrell wrote re: Viewing MSDN code samples in Firefox or Mozilla browsers
on 09-30-2004 4:27 AM
Glad you like!
Jason Row wrote re: Viewing MSDN code samples in Firefox or Mozilla browsers
on 09-30-2004 6:44 AM
Finally .. thank you so freakin' much for that tip Darrell. You're going to have to start a new category of blog postings just for FireFox tips.
Darrell wrote re: Viewing MSDN code samples in Firefox or Mozilla browsers
on 09-30-2004 6:55 AM
I just might do that.
Alain Tésio wrote re: Viewing MSDN code samples in Firefox or Mozilla browsers
on 09-30-2004 7:36 AM
Thanks, just to say it works with MSDN2 too
http://msdn2.microsoft.com/library/6fawty39.aspx
Darrell wrote re: Viewing MSDN code samples in Firefox or Mozilla browsers
on 09-30-2004 7:54 AM
Awesome! I had hoped that Microsoft would have fixed the CSS for MSDN2. They still have time to change their ways though!
ben wrote re: Viewing MSDN code samples in Firefox or Mozilla browsers
on 10-01-2004 3:59 AM
you are my hero, that was one of the last things i had to use ie for, this is awesome!!
Darrell wrote re: Viewing MSDN code samples in Firefox or Mozilla browsers
on 10-01-2004 5:24 AM
Enjoy!
JonGalloway.ToString() wrote Viewing MSDN code samples in Firefox or Mozilla browsers
on 10-23-2004 10:01 AM