User's Guide to the HTML Editor

This class provides a text editor specialized for editing HTML source. The EditHTML class is derived from the Edit class, and therefore inherits all of its features. It colors HTML commands and supports hypertext links. That is, hypertext references in the HTML file are live. Note that after entering hypertext links, you will need to invoke the Recolorize command in the Format menu for the hypertext links to become live.

A special feature is the check links command, available under the Edit menu. This command identifies all the hypertext links in the file and checks to see whether they are valid. It is currently limited to links of the forms:

    <a href="filename">
    <a href="#point">
    <a href="filename#point">
The "point" is a name within the file identified by a name attribute. The quotation marks are optional, unless there are spaces in either the filename or the point. An invalid link is one where the referenced file does not exist or is not readable, or the named point within the file does not exist. When an invalid link is found, the user is queried for a substitute.

The Tycho HTML browser support some Tycho-specific HTML extensions. Moreover, there is an automatic index generator.

EditHTML chars, fonts and blocks menus

The Special menu contains three cascade submenus that will generate common HTML strings. The submenus are: Chars, Fonts and Blocks. For each menu item, we list the HTML that is produced.

Chars submenu

  • ampersand &
  • greaterthan >
  • lessthan <
  • backslash \
  • Fonts submenu

  • bold <b></b>
  • code <code></code>
  • italic <i></i>
  • sample <samp></samp>
  • cite <cite></cite>
  • emphasis <em></em>
  • fixed <tt></tt>
  • keyboard <kbd></kbd>
  • strong <strong></strong>
  • variable <var></var>
  • Blocks submenu

  • address <address></address>
  • blockquote <blockquote></blockquote>
  • displaylist <dl> <dt> <dd> </dl>
  • displayitem <dt> <dd>
  • image <img src="">
  • header1 <h1></h1>
  • header2 <h2></h2>
  • header3 <h3></h3>
  • header4 <h4></h4>
  • hyperlink <a href=""></a>
  • menu <menu> <li> </menu>
  • numberedlist <ol> <li> </ol>
  • unumberedlist <ul> <li> </ul>
  • listitem <li>
  • paragraph <p>
  • reference <a name=""></a>
  • preformatted <pre> </pre>
  • title <title></title>
  • plaintext <xmp> </xmp>
  • Tycho Home Page


    Copyright © 1996-1998, The Regents of the University of California. All rights reserved.
    Last updated: 05/19/98, comments to: eal@eecs.berkeley.edu