Wednesday, December 12, 2007

Code Formatter Plug-in for Windows Live Writer

Version 1.0.0.4 of my plug-in for Windows Live Writer (WLW) is now available.  This version is for the released version of WLW.   As with the previous version, the following languages are supported:

  • Assembly
  • BatchFile
  • CSharp
  • CSS
  • HTML
  • INIFile
  • Java
  • JScript
  • Lua (pronounced LOO-ah)
  • MSIL
  • Pascal
  • Perl
  • PHP
  • PowerShell
  • Python
  • SQL
  • VBDotNet
  • VBScript
  • XAML
  • XML

Download it now from my tools page.

 

Thanks to everyone who left comments and feedback;  this addressed two issues reported - 1 with inserting pictures and then editing a block of code, and the other was with duplicate scroll-bar options.

8 comments:

Timothy Parez said...

Hi,
You should put something on the codeplex page telling people you moved to Google Code. I just spent some time debugging issues with the source version from codeplex.

Anonymous said...

Error when I test it:

System.ArgumentNullException: Value cannot be null.
Parameter name: path1
at System.IO.Path.Combine(String path1, String path2)
at DunnHQ.Wlw.CodeFormatter.SettingsAdapter.tryToLoadLanguage(SyntaxLanguageConfiguration langConfig) in C:\DEV\Windows Live Writer Plugins\DunnHQ.Wlw.CodeFormatter\SettingsAdapter.cs:line 137
at DunnHQ.Wlw.CodeFormatter.SettingsAdapter.getSource() in C:\DEV\Windows Live Writer Plugins\DunnHQ.Wlw.CodeFormatter\SettingsAdapter.cs:line 89
at DunnHQ.Wlw.CodeFormatter.SettingsAdapter.get_Source() in C:\DEV\Windows Live Writer Plugins\DunnHQ.Wlw.CodeFormatter\SettingsAdapter.cs:line 76
at DunnHQ.Wlw.CodeFormatter.Plugin.CreateContent(IWin32Window dialogOwner, ISmartContent newContent) in C:\DEV\Windows Live Writer Plugins\DunnHQ.Wlw.CodeFormatter\Plugin.cs:line 56
at WindowsLive.Writer.PostEditor.ContentSources.ContentSourceManager.PerformInsertion(IContentSourceSite sourceSite, ContentSourceInfo contentSource)

Thomas Lee said...

I have used this for a while, but having installed the latest version of Windows Live Writer, the formatter errors out whenever I try to add code. :-(

Any chance of a fix???

Thomas Lee said...

Thanks for the response that this is now fixed - can't wait for the update.

One other thing - is there an easy way to define the colours used by default? I have a slightly lighter version of grey that I use as a background. I'd like to define this, so that it apepars on the colour list or the custom colour list by default. Any clues?

Anonymous said...

hello Steve,

I am one of the deveolpers of WIndows Live Writer. I heard our new version of WLW might have broken your plugin. If you find that to be true, please send me an email at bturner@microsoft.com We didn't think we broke any plugins.

Thomas Lee said...

Follow up to Brandon's comment.

First - THANKS for the prompt reply. WLW is an awesome product and the dev team rock.

Second - since upgrading yesterday to the latest WLW version, Steve's plug-in does break. In email, he says he's found the issue and should have an updated plug-in available soon.

FWIW: I'm using Steve's plug-in (or was) on my PowerShell scripts blog (http://pshscripts.blogspot.com). I try to post to this blog daily.

Dan G. Switzer, II said...

Just wondering if you've updated this plug-in for Windows Live Writer 2009 yet?

I really prefer your plug-in over all the others because you allow easy editing of the source code.

Steve Dunn said...

Hi, please note that a new version is now available that works with the latest WLW and also has a few improvements and new features.

http://stevedunns.blogspot.com/2009/03/new-version-of-code-formatter-plugin.html

Cheers,

Steve