Home | About | Search | RikReader
RTF to HTML or Getting pretty code samples onto my blog

I'm certainly not the first person to get on the RTF to HTML bandwagon. But that didn't stop me. The goal was to get syntax hilighted code from Visual Studio to my blog in the fewest possible steps.

The result: A hosted Windows Forms Control that processes RTF and emits HTML. Like my other hosted controls, you can try it out right here on my blog! I even hacked together some dodgy Javascript so that you get a live preview of the HTML result as you type. CLR 2.0 required.

Update: There seems to be some issue with the colours on this page, however over here it seems to work fine.

Update 2: The problem seems to be in the JScript/HTML rendering, for some reason newly output CSS classes are not overriding the previous versions.

  • Blogging