Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Render HTML into a StyledText
Render HTML into a StyledText [message #503301] Fri, 11 December 2009 12:32 Go to next message
Eclipse UserFriend
Originally posted by:

Hi guys!

Do you know if it's possible to render HTML into a StyledText? I want to use
the HTMLTransfer to be able to drag and drop HTML into a styled text so the
user can modify it.

Re: Render HTML into a StyledText [message #503527 is a reply to message #503301] Mon, 14 December 2009 15:17 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member

StyledText cannot currently be fed HTML, the existing request for this is .

If the HTML markup is basic then it should not be difficult to write
something that creates StyleRanges based on parsed HTML. However if the
HTML is using more advanced [sic] tags like tables, etc., then creating
equivalents in StyledText would be more work, if possible at all. I think
it's cases like this that make it difficult to provide StyledText API that
can accept arbitrary HTML content, without first spending the effort to
evolve StyledText into an almost-web-browser.


Previous Topic:How to highlight items with ListViewer when mouse moves?
Next Topic:Table lines
Goto Forum:

Current Time: Fri Jul 10 14:04:29 GMT 2020

Powered by FUDForum. Page generated in 0.01391 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top