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

0 comments suggest edit

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: Windows Live Writer, WLW, Plugins

Found a typo or error? Suggest an edit! If accepted, your contribution is listed automatically here.

Comments

avatar

4 responses

  1. Avatar for Kurbli
    Kurbli August 12th, 2007

    A haacked blogban olvastam Joe Cheng Dynamic Template pluginj&#225;r&#243;l. Ez az eszk&#246;z tetszőleges C# &#233;s HTML

  2. Avatar for Clarks
    Clarks August 19th, 2007

    Thanks for the detailed tutorial. I think I can now write plugins :D

  3. Avatar for Adi
    Adi August 15th, 2008

    I thougt i can never write plugin ... but now i am expert

  4. Avatar for Clarks
    Clarks October 14th, 2008

    Is there any easier way than this to write plugin for WL writer?