Jonas Stawski

Everything .NET and More

I can't get enough of Windows Live Writer

My previous post I wrote a test post to test Windows Live Writer (WLW). I heard it was good and although I have absolutely no other experience with other Blog Writers I must say that I love it! It has everything one can ask and if it doesn't have it by default it most likely was extended by someone else. One of the things it was missing was the ability to add code snippets. Through a simple search I found this open source project which extends WLW utilizing the SDK. In the Code Plex home page of this project there are 2 links to download both the Code Snippet Plugin and Digg This Plugin. So here we go let's try it out:

Here's some HTML with ASP.NET

<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
        <td class="Title" colspan="2">Hours [<asp:Label ID="lbl" runat="server"></asp:Label>]</td>
    </tr>
</table>

 

Maybe some C#

#region Members
private long id;
#endregion Members
 
#region Constructors
#endregion Constructors
 
#region Properties
protected long Id
{
    get 
    {
        return Id; 
    }
    set
    {
        Id = value;
    }
}
#endregion Properties
 
#region Methods
#endregion Methods
 
#region Events
protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
        //Do something and demo the comments    
}
#endregion Events

 

And some VB.NET

Imports Microsoft.VisualBasic
 
Public Class ClaimType
    ''' <summary>
    ''' Some information about this function
    ''' </summary>
    ''' <returns>A Something object</returns>
    ''' <remarks></remarks>
    Public Function ReturnSomething() As Something
        Return New Something()
    End Function
End Class

 

While in here let's try some T-SQL

SELECT Code
FROM [dbo].[SNIPPET]
where COOL = true

 

Add comment

biuquote
Loading