WPInfo
WPInfo copied to clipboard
Use HTML for templating
Something I've been thinking about for a long time but never really got to. A quick search indicates it may be easier than I thought: https://htmlrenderer.codeplex.com/wikipage?title=Image%20generation&referringTitle=Home
This would open many interesting scenarios
We also need edit capability - the HTML renderer seems to be on GitHub now, and would seem to support rendering better than GDI+ does rich text. HTML editors seem to be a bit thin on the ground, though this one looks vaguely promising and I think from a quick read the license is compatible. Comments on that page also suggest https://netrix.codeplex.com/ is usable free for FOSS (despite otherwise being commercial).
Well the edit bit is done in a new branch - it uses MSHTML, and since we're running on Windows that's pretty much a given (despite the whining of the "I don't want IE" crowd). Need to implement rendering of the HTML now.
Right, it's done in the new branch. Testing is needed!
I took a look, it seems to be working but using a WYSIWYG style editor diminishes the benefit of using HTML in my opinion. I'm going to experiment with Avalon Edit as a code editor component.