Login or e-mail Password   

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 availab...
Views: 1.192 Created 09/12/2007

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.

Similar articles


8
comments: 4 | views: 12603
6
comments: 1 | views: 4574
5
comments: 0 | views: 3326
4
comments: 6 | views: 3631
6
comments: 0 | views: 2014
2
comments: 0 | views: 3398
4
comments: 1 | views: 5810
2
comments: 1 | views: 1585
2
comments: 1 | views: 1954
 
Author
Article

Related topics






No messages


Add your opinion
You must be logged in to write a comment. If you're not a registered member, please register. It takes only few seconds, and you get an access to additional functions .
 


About EIOBA
Articles
Explore
Publish
Community
Statistics
Users online: 51
Registered: 59.581
Comments: 444
Articles: 66.448
© 2005-2014 EIOBA group.