Feb 4 2011 · Random
- UI tweaks
- Removal of block indent (where every line is indented) from pasted RTF text
- Tweaks for better HTML output (e.g. no more useless span tags containing only whitespace)
- Accurate preview using XULRunner (via GeckoFX); no longer using the stupid .NET WebBrowser control
- New logo/icon (I just really hated the old one I made and it was bugging the hell out of me)
(requires .NET Framework 2.0 or higher)
The app was designed around the goal of being able to quickly copy and paste snippets of code from Visual Studio (or Netbeans) and turning it into HTML that I could embed in these blog posts; this update stays true to that, and that’s why this app is still so sparse on features, such as conversion of font size or paragraph alignment attributes.
The block indentation removal that now occurs after text is pasted in may be a bit slow. Text in the RichTextBox is selected and altered within the text box itself (it’ll also freeze the UI – if you understand multithreading and WinForms, you know why it’s not simply a matter of spawning off a thread). The alternative is to deal with an RTF parser and edit the RTF input directly, but that’s way more work than I’d care to devote to this app at the moment.