Useful Windows Live Writer plugins

Windows Live Writer is a great blog authoring tool that we use with this knowledgebase (a mojoPortal blog + pages).  Since we are often posting code snippets, here are a couple of useful plugins. They take very different approaches, the first using CSS classes designed for each language, then analysing the code you paste in and assigning the classes accordingly; the second simple preserves the cosmetics of the incoming text with in-line styling.

Insert Code

Here’s an example of inserted HTML, with line numbers switched on:

   1:  <!DOCTYPE html>
   2:  <html>
   3:  <head id="ctl01_Head1"><title>
   4:      Authoring with Windows Live Writer or Word - exeGesIS SDM Ltd
   5:  </title>
   6:  <link rel='stylesheet' type='text/css' href='' />
   7:  <link rel='stylesheet' type='text/css' href='/csshandler.ashx?skin=esdm-website&amp;s=1&amp;v=' />


Paste from Visual Studio

Here’s an example of pasting direct from VS2010:

protected override void OnPreRender(EventArgs e)

    SetupColumnCss(forceShowLeft, forceShowRight);


Comments are closed on this post.
Find out more