Updated:  Version 1.0.0.4 now available for the release version of Windows Live Writer

 This plug-in formats and highlights code and also does the following:

  • The ability to format the code 'live'
  • The ability to wrap lines
  • The ability to change the background color
  • The ability to just quickly paste what's in the clipboard as code
  • The ability to change the font, including the font name, size, weight, and style.
  • NEW! More languages have been added thanks to the fabulous ActiPro control.  These languages include PowerShell, MSIL, Pascal and XAML

When installed, there'll be two more options in the tool window:

When inserting code, the plugin tool window will allow various properties of the code to be changed:

 

Here you can see that the content editor on the right can change the tab width, background color, language, line numbers and various other things.

Below are some samples of code that was output with the plugin:

Here's some C# code:

public int TabWidth
{
get
{
return _content.Properties.GetInt( @"TabWidth", 4 );
}
set
{
_content.Properties.SetInt(
@"TabWidth", value );
}
}

and some XML markup...

 

<Triggers>
<KeyPressTrigger Key="PropertyListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="PropertyState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
<KeyPressTrigger Key="ValueListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="ValueState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
</Triggers>

 

Version 1.0.0.4 (released 12th December 2007) is now available.  The source can be found here and the binaries can be found here.  

To use it, extract the binaries to Program Files\Windows Live\Writer\Plugins and run WLW.  If you're using a version of WLW prior to Beta 3, then change the directory to \Program Files\Windows Live Writer\Plugins (but preferably, download the released version!)

The source is in C# 2.0 and comes with a Visual Studio 2008 Beta 2 solution.

Thanks to all those that left feedback. 


Note that the .NET 2.0 Framework must be installed before this plugin will work.