The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Source Formatting for Windows Live Writer

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Maruis Marais

Posts: 290
Nickname: maruis
Registered: Aug, 2005

Ruby rocks, what else can I say...
Source Formatting for Windows Live Writer Posted: Aug 25, 2006 6:33 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Maruis Marais.
Original Post: Source Formatting for Windows Live Writer
Feed Title: exceptionz
Feed URL: http://feeds.feedburner.com/Exceptionz
Feed Description: I am an XP, TDD, OO and .NET enthusiast. Things like Design Patterns makes my pulse race, I love learning exciting new things and to share my thoughts and techniques with the world. So join me and together we can explore the awesome world of software development
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Maruis Marais
Latest Posts From exceptionz

Advertisement

Everyone know what a pain it is to post source code to a blog and having the source code formatted correctly. Wel, Norbert Eder at dotnet-blog created a source formatter plug-in for Windows live writer. It works great and all you need to do is download the plugin and copy it to the plugins-directory of your Windows Live Writer installation.

The plugin supports the following languages:

  • C#
  • Java
  • JavaScript
  • MSH
  • Perl
  • T-SQL
  • Visual Basic

This is how some code appears on my blog:

[ Initialize() ]
public void Setup()
{
    mock = new Mockery();
    persist = mock.NewMock( typeof( IPersistance ) ) as IPersistance;
    customer = new Customer( 123 );
}
[Cleanup()]
public void Cleanup()
{
    mock.VerifyAllExpectationsHaveBeenMet();
}

[ Specification() ]
public void ShouldLoadCustomer()
{
    object[] param = new object[] { 123 };
    Expect.Once.On( persist ).Method( "Load" ).WithAnyArguments().Will( Return.Value( customer ) );
    Customer expectedCustomer = persist.Load( 123 ) as Customer;
    Specify.That(expectedCustomer.Id).Must.Not.Be.Null("The Customer Id must not be null.");
    Specify.That(expectedCustomer.Id).Must.Equal(123, "The customer id's aren't equal");
}

You can find the download for the formatter here.

Read: Source Formatting for Windows Live Writer

Topic: Enterprise Library: Take Exception To Critical Errors With Custom Application Blocks Previous Topic   Next Topic Topic: Smart Clients: New Guidance And Tools For Building Integrated Desktop Applications

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use