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

http://plugins.live.com/writer/detail/insert-code-for-windows-live-writer

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='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/blitzer/jquery-ui.css' />
   7:  <link rel='stylesheet' type='text/css' href='/csshandler.ashx?skin=esdm-website&amp;s=1&amp;v=2.3.7.0' />

 

Paste from Visual Studio

http://plugins.live.com/writer/detail/paste-from-visual-studio

Here’s an example of pasting direct from VS2010:

protected override void OnPreRender(EventArgs e)
{
    base.OnPreRender(e);

    SetupColumnCss(forceShowLeft, forceShowRight);
   
}

Comments

Comments are closed on this post.
Find out more