Write Plugins Easily Using The Dynamic Template Plugin For Windows Live Writer

Joe Cheng, member of the Windows Live Writer team, just unveiled his first publicly available Windows Live Writer plugin...

I’ve just released my first (publicly available) Windows Live Writer plugin: Dynamic Template. It lets you write mini-plugins from snippets of C# and HTML, and reuse them within Windows Live Writer.

It’s sort of a meta-plugin plugin. He has a screencast on how to use it, but I’ll post a few screenshots of it in action here.

The plugin adds a new Insert Template option in the sidebar.

Insert Template Option

Clicking on this brings up a dialog with a list of templates.

Insert Template

Click New to bring up the template editor. I’m going to create one for wrapping sections of html with the <code></code> tags.

First, I’ll name the template.

Naming the New Template

Then I’ll edit the template. Since this template just adds HTML around a selection and doesn’t require that I ask for user input, I don’t need to create a variable.

Editing the Template

And now I can just select some text, click on Insert Template... and double click Code. Nice!

Another useful template is one that Joe calls Htmlize.

Edit Template Htmlize

As you can see, you can call some functions from within a template. This one is useful for converting something like <sup>blah</sup> into blah while in the Web Layout or Normal mode.

Watch Joe’s Screencast for a demo of a template that takes in user input as part of the template. There’s also some documentation located here. This is a pretty handy plugin that’ll be great for automating a variety of html snippets I use often.

Technorati tags: , ,

What others have said

Requesting Gravatar... Kurbli Aug 12, 2007 8:02 PM
# Windows Live Writer eszk&#246;z&#246;k
A haacked blogban olvastam Joe Cheng Dynamic Template pluginj&#225;r&#243;l. Ez az eszk&#246;z tetszőleges C# &#233;s HTML
Requesting Gravatar... Jason Haley Aug 13, 2007 7:13 AM
# Interesting Finds: August 13, 2007
Requesting Gravatar... Clarks Aug 19, 2007 12:14 PM
# re: Write Plugins Easily Using The Dynamic Template Plugin For Windows Live Writer
Thanks for the detailed tutorial. I think I can now write plugins :D
Requesting Gravatar... Adi Aug 16, 2008 2:01 AM
# re: Write Plugins Easily Using The Dynamic Template Plugin For Windows Live Writer
I thougt i can never write plugin ... but now i am expert
Requesting Gravatar... Clarks Oct 14, 2008 11:52 PM
# re: Write Plugins Easily Using The Dynamic Template Plugin For Windows Live Writer
Is there any easier way than this to write plugin for WL writer?

What do you have to say?

(will show your gravatar)
Please add 5 and 8 and type the answer here: