The guys over at ASP.NETResources have a very nice online source code formatting tool that is designed to beautify code snippets that are destined to be displayed on a web site (like this one). You simply paste your code of choice into the textbox, and out comes nicely colored and formatted code, ready to be displayed on a web page or blog. They even include a css file for you.
Check it out here.