Thursday, 2 August 2007

Formatting your code for blogging

In my previous post, I was trying to insert XML into my blog entry. Blogger isn't very helpful and makes a mess of XML and any C# or VB code entrys.

However, there is a formatting tool which outputs 4.01 compliant HTML which you can paste directly into your blog! It parses c# vb, xml, t-sql and others and does it very nicely.

Here is a sample of c# output:


using System.Windows.Forms;

namespace Vulcan.Borat.WinApp.UserControls
{
public partial class ProductPanel : UserControl
{
public ProductPanel()
{
InitializeComponent();
}
}
}

No comments: