Is there an easy way to take the contents of an SWT StyledText widget and save it as HTML, and then conversely take back the saved HTML to load it into the StyledText?
Asked
Active
Viewed 878 times
5
-
I don't think this is included in SWT, nor is it a trivial task. You will probably need to run through all the styles and add tags manually. I like this idea though; if you find some free time, you might want to start a project. I'd be interested to join in. – Paul Lammertsma Dec 30 '10 at 17:26
1 Answers
1
It looks like this SWT RichTextEditor does it. Source code is not available, however; it also does not seem to support multiple fonts in the same StyleText widget.

Jean-Philippe Pellet
- 59,296
- 21
- 173
- 234
-
The link is dead, but could this be the same thing? https://marketplace.eclipse.org/content/rich-text-editor – M_M Jul 31 '18 at 11:59
-
I don't know, it was too long ago for me to remember what the original link featured. – Jean-Philippe Pellet Jul 31 '18 at 16:35