This blog has moved to http://mode13h.azurewebsites.net.
So far in this blog I've experimented with several different ways of writing code snippets. My favorite way was to use XtractPro's syntax highlighter. Unfortunately, the latest version of Telligent seems to resist my efforts by removing all the newlines from my <pre> blocks. That's why I started using Github Gists. But the problem with that is people using Google Reader cannot see the code snippets.
I'm curious what other people use to write code snippets. I'd be glad to hear any suggestions.
I copy the code snipped from the Visual Studio C# editor and use a small program to format the RTF clipboard format to HTML.
You can find the C# code in my blog post steffenzeidler.blogspot.ch/.../c-syntax-colorizing-in-html.html
@Steffen Zeidler - Thanks, this is really useful. I have the unfortunate problem where Telligent keeps removing the whitespace from my pre tags. But I think it's easy to overcome by modifying the code to put br and nbsp in.
windows update it allows only 98% then haung kindly helping out from this prob pl.