I was catching up on my blog reading this morning and ran across a new blog I had subscribed to from Alex Barnett.  He was mentioning a new set of plugins had been released for Windows Live Writer.

So I'm thinking, "Hmm. Windows Live Writer. What the heck is that."  It is basically a Windows application that allows you to compose and publish weblog entries from your workstation.  And rather than create a totally Windows Live-centric package, they actually included support for other blog engines, like Wordpress, the one I use.

So, I thought I'd see what would happen if I used Live Writer to publish a test article.

Here is a test of one of the plug-ins mentioned above. It will automatically insert properly highlighted colored programming code:

 

//
//
//
FileStream liveStream = new FileStream(localfilename, FileMode.Open,
                                     FileAccess.Read);
byte[] buffer = new byte[(int)liveStream.Length];
liveStream.Read(buffer, 0, (int)liveStream.Length);
liveStream.Close();
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Length", buffer.Length.ToString());
Response.AddHeader("Content-Disposition", "attachment; filename=" +
                 originalFilename);
Response.BinaryWrite(buffer);
Response.End();