Teapot: Optional Configurations

Associating Filename Extentions with XML

WinEdit2000 can invoke different "compilers" on different filetypes. WinEdit2000 does this by examining the filename's extention. For example, "junk.html" has "html" as its filename extention. If you want to edit documents as XML, you have to tell WinEdit2000 which extentions indicate that a file is an XML documents.

The Teapot installation program configures WinEdit2000 such that it treats files with the extention "xml" and "smil" as XML documents when it comes time to compile/parse. If you want to have WinEdit2000 treat other documents as XML i.e. parse them using teapot.exe then you need to manually configure WinEdit2000. Here's how you do that.

  1. Pull down the View menu
  2. Select the Options... menu item
  3. Go to the File types tab
  4. Click the Edit... button
  5. In the Edit File Types dialog, select the "XML Files" entry in the File types: list
  6. Add a new extention in the Extentions: text field (Note that the entries are comma seperated; do not put dots in there)
  7. Close the dialogs, click on the OK buttons

Editing HTML with Teapot

You can edit HTML files as XML files by associating the "*.html" and "*.htm" extentions with XML. This can be handy if you are working with XHTML. Just follow the steps in the last section in order to identify HTML files as XML files.

Explicitly, that would be as follows: pull down the View menu and select the Options... menu item. Focus on the "File Types" tab and select Edit. In that dialog, hi-lite the XML item and add ",html,htm" to the end of its value. Now files with either extention will be parsed as XML documents. This is not very elegant. You will quickly get annoyed with "undefined" entities such as  .

Configuring WinEdit2000 to work with WebCommander

WebCommander is a software utility from the W3C. It's essentially just a File Open dialog and a File Save dialog which both work with the Web (HTTP) and with the local file system.

  1. Go to "Project" and then "Customize Tools". This will bring up the "Tools" dialog box.

  2. Click on "Add" to bring up the "Add Tools" dialog box.

  3. Type in "Web Commander" and hit OK.
  4. Return to the "Tools" dialog box, select "Web Commander".
  5. Type in the path to "WinCom.exe" in the "Command" textbox.

    Then, close the window.

To Load a Document into Web Commander from within Teapot

  1. Go to "Project" and then "Web Commander" to launch the Web Commander application.

  2. From within Web Commander, go to "File" and then "Load Document" to bring up the "Load Document" dialog box.

  3. Type in the address of the URL you wish to download and click "Load".

  4. Name the file you are going to download and click "save" to download the URL on to your hard drive.

  5. Go to the "File" menu and then "Open" to open the file you just downloaded into the Teapot environment.

This document was last edited on 1999-11-13.