WPInfo icon indicating copy to clipboard operation
WPInfo copied to clipboard

Use HTML for templating

Open Ventajou opened this issue 9 years ago • 4 comments

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

Ventajou avatar Apr 09 '15 18:04 Ventajou

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).

DavidRawling avatar Apr 11 '15 09:04 DavidRawling

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.

DavidRawling avatar Apr 13 '15 12:04 DavidRawling

Right, it's done in the new branch. Testing is needed!

DavidRawling avatar Apr 14 '15 13:04 DavidRawling

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.

Ventajou avatar Apr 25 '15 16:04 Ventajou