Sunday, September 21, 2008
« Run time is design time for AGT[8] | Main | Run time is design time for AGT[9] »

This article and AGT[8] were written with Windows Live Writer, after Larry talked me into trying it.  So far, I really like the idea, but the implementation could be better.  I typically write my articles in Word 2007, since I may be working on one for days or weeks.  Cut 'n pasting out of Word into the DasBlog FreeTextBox just works.  Sure, it generates the ugliest HTML you've ever seen, but it looks like code in both IE7 and FF3.  Copy/pasting out of VS2008 into Live Writer looks like this:

ToolboxItem speakItem = new ToolboxItem("Tower speaker", "This is a generic 2-way tower speaker with horn-loaded mid & high range", typeof(HornSpeaker));
Toolbox.AddItem(speakItem, "Audio");

Copy/pasting out of MS Word 2007 into Live Writer looks like this, using the "keep formatting" option.

            ToolboxItem speakItem = new ToolboxItem("Tower speaker", "This is a generic 2-way tower speaker with horn-loaded mid & high range", typeof(HornSpeaker));

            Toolbox.AddItem(speakItem, "Audio");

It's not bad, but it insists on inserting some extra spaces between lines.  I've also been uploading a .zip file of the source code as it stands at the end of each article, and I find no way to do this from Live Writer - perhaps that's not supported by the blogger API.  I do like it inserting & uploading images for me.

For complex articles, I'll still be copy/pasting from Word, but for a free program I do rather like Live Writer.

Sunday, September 21, 2008 7:44:04 PM (Central Standard Time, UTC-06:00)
You might want to try paste special instead of paste to keep the formatting from Visual Studio when using Windows Live Writer. The shortcut key for paste special is Control+Shift+V.

Or you can try a plugin to help you. The following is a very popular plugin to help format code:
http://lvildosola.blogspot.com/2007/02/code-snippet-plugin-for-windows-live.html
Brandon Turner [MSFT]
Wednesday, September 24, 2008 10:01:56 PM (Central Standard Time, UTC-06:00)
Actually, even Paste Special probably won't work--Visual Studio only puts RTF on the clipboard, which WLW doesn't know how to parse (but obviously Word does). However, this plugin does.
http://gallery.live.com/liveItemDetail.aspx?li=d8835a5e-28da-4242-82eb-e1a006b083b9&l=8
Thursday, October 30, 2008 3:13:20 PM (Central Standard Time, UTC-06:00)
Finally got around to trying this, works great Joe, thanks.
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview