A WYSIWYG SWT editor component for standard HTML content. Implemented as a subclass of the standard StyledText component.
Currently in use as the main editing component for JDocEditor. Handles a fairly wide range of HTML.
For presentation, just use the standard StyledText attributes.
StyledHtml#setHtml used to insert text. The given text will be treated as parseable HTML if the given text starts with "<!--", "<html>", or "<body>". If not, the given text is treated as plain text and wrapped in <body> tags to create parseable content. Regardless, any embedded, properly formed HTML tags will be parsed for presentation.
StyledHtml#getHtml used to get the full HTML content of the held by the control.
StyledHtml#setText same as StyledHtml#setHtml.
StyledHtml#getText used to retrieve the plain text equivalent of the content held by the control. All HTML tags will be ommitted.
StyledHtmlMain a standalone SWT test program is included in the jar.
Available only under these terms:
Version 0.5.0 for Eclipse 3.5.x (In development):
Version 0.2.0 for Eclipse 3.4+ (09.09.2008):