Jeff Atwood has created a great macro for Visual Studio 2005 that allows you to cut and paste code like it should be done. It even removes unnecessary white space! The Visual Studio plugin to copy source code as html has more features but it requires you to install the plugin.
Get the latest versions of both alternatives and give them a try, especially if you post a lot of code:
Via Coding Horror
Feel free to drop a few cents in the
tip jar if this post saved you time and money