# Sunday, July 29, 2007
« Windows Live Writer | Main | MSBuild - Build Automation Series »

So I tried out the Windows Live Writer code formatting plugin available on CodePlex, and at first sight it seemed to work well, that was until I read my feed through Google Reader.  For some reason within Google Reader there was a bunch of extra white space between lines of code, which as a result made it completely unreadable.  So here I am again trying out yet another Live Writer plugin, Insert Code for Windows Live Writer.  Hopefully this one works.

/// <summary>
/// Recursively gets the innermost exception, i.e. the first exception
/// that was thrown.
/// </summary>
/// <param name="ex">The exception to unwind.</param>
/// <returns>The inner most InnerException.</returns>
public static Exception GetInnerMostException(Exception ex)
{
    Exception inner = ex;
    while (inner.InnerException != null)
        inner = inner.InnerException;

    return inner;
}

I'm using the instructions from Phil Haack.

Sunday, July 29, 2007 4:31:38 AM (GMT Standard Time, UTC+00:00)
Well that worked in FireFox once I copied the csharp.css to the current dasBlog theme directory and added the following to my hometemplate.blogtemplate:

<%styleSheet("csharp.css")%>
Comments are closed.