Saturday, November 19, 2005

The best Visual Studio.NET blogging companion

Check this out, all I did was in VS 2003, right-click, select "Copy as HTML...", click OK, and CTRL-V in blogger. All of a sudden you get this stylish code colorization in a blog:

    public class Bootstrap : IDisposable
    {
        private IMutablePicoContainer picoContainer;
 
        [STAThread]
        public static void Main()
        {
            try
            {
                using (Bootstrap bootstrap = new Bootstrap())
                {
                    IMainForm mainForm = bootstrap.BuildMainForm();
                    Application.Run((Form) mainForm);
                }
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
            }
        }


Awesome VS.NET Add-in! CopyAsHTMLSource

1 comment:

Anonymous said...

Very cool!

I'm on blogger as well and have avoided posting code snippets because formatting them was painful.