User's Guide to the HTML Viewer

The HTML viewer in Tycho provides a top-level window that displays formatted HTML. It is based on 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, although this might come in the future. A sample document illustrates the HTML tags that are supported.

The HTML viewer is derived from the File class, and therefore inherits all of its features. In addition, it provide a pull-down menu for adjusting the sizes of the fonts in the display plus a toolbar at the top for invoking commonly invoked functions. The "File" menu provides the following commands:

C-x C-f
open a file
C-x C-v
switch to viewing another HTML file
C-x s
open HTML source using the HTML editor
C-x p
print the contents (not yet implemented)
none
reload the file from disk
C-x k
close the window
C-x C-c
exit the program

The "Special" Menu includes an Appletviewer choice that will bring up a Exec Dialog with the command to run the appletviewer on the current file. The appletviewer is a windowized application that displays Java applets. Note that not all tcl ports support the Exec Dialog, so the Appletviewer choice might be greyed out.

The Tycho documentation policy explains Tycho-specific HTML extensions and how to write HTML so that an index can be generated automatically by the index generator. Note that hypertext links can be to any type of file, and based on the file name extension, Tycho will open a context-specific editor. Thus, you can have hypertext links to source code, or to graphical editors.

Tycho Home Page


Copyright © 1996, The Regents of the University of California. All rights reserved.
Last updated: 96/12/15, comments to: eal@eecs.berkeley.edu