Posting Formatted Code using Windows Live Writer
It took me a while to find a decent free blog I can use. My main issue was finding a blog that allowed me to easily post formatted c# code I copy from Visual Studio. Every free blog I checked out seemed to crap the code up.
Finally, I've found the following solution:
- Open a blog using Microsoft's Windows Live Spaces.
- Download the Windows Live Writer. A free desktop software which allows youto edit your posts offline and then publish them to your Windows Live Spaces blog or any other blog (although I haven't tried it with other blogs, but they claim it should work). Note that it's still a beta, and has quite a few bugs...
- Download a plugin for Windows Live Writer that allows you to format code in several languages, including C#, html and many more.
Here's the result:
public DataTable[] Identify(Geometry geom)
{
//... Do some stuff ...
if (!(geom is Point))
throw new NotSupportedException();
//... Do some more stuff ...
}
And now everything is ready for my next posts...