The HTML class, derived from File, is a top-level window that renders HTML in a text widget. It uses the HTML library written by Stephen Uhler of Sun Microsystems, which supports all the features of HTML 2.0. There is currently no support in Tycho for HTTP hyperlink references, so you cannot within Tycho directly read documents on the internet. A sample document illustrates the HTML tags that are supported.
The HTML class is used for all Tycho documentation. It supports an extension of HTML with embedded Tcl scripts. If the user double clicks on a script, the Tcl script is executed in the global namespace.
You may create an instance of the HTML class as follows:
::tycho::view HTML [list -file $TYCHO/doc/introduction.html]
HTML has a number of options. For example:
set h [::tycho::view HTML \
[list \
-data "<h1>Initial header in the HTML widget</h1>" \
-textwidth 60 \
-scrollbar 0 \
-textheight 20]]
$h configure -readonly no
$h insertData " Some <b>More</b> html"
delete object [$h displayer windowName]