CopyAsHTML is a VS.NET 2005 add-in that will take source code from VS.NET, and copy the pretty-printed version as compliant HTML code. It also works with things like XML.
The quote on their web site has proven to be true for me so far:
"If Visual Studio can highlight it, CSAH can copy it, and your source should look the same in your browser as it does in your editor."