# Document utilities

This page documents the four last functions of the HTML Utilities menu.

Last Modified...
Adds tags to the document which makes it possible to automatically update the date and time when the document is saved. Two tags inside HTML comments are inserted:

    <!-- #LASTMODIFIED TEXT="some text" FORM="date format" LANG="language"-->
    some text and date
    <!-- /#LASTMODIFIED -->

Whenever the document is saved the date is updated. Do not write anything between the comment tags. It will be removed when the document is saved.

Character translation is done automatically of the text and date.

When you use Last Modified... in the HTML Utilities menu a dialog box is opened where you can specify:

- the text before the date. (Default: Last modified) You can change the default text in the general preferences dialog box.
- the date format, relaxed ISO, strict ISO, long, abbreviated or short. Relaxed and strict ISO are universal while the other three formats are language dependent. (We here show the U.S. format.)
  - Relaxed ISO 2001-01-14 15:07
  - Strict ISO 2001-01-14T15:07:18+01:00
  - Long Sunday, January 14, 2001 3:07 PM
  - Abbreviated Sun, Jan 14, 2001 3:07 PM
  - Short 1/14/01 3:07 PM
- if the weekday should be included in the date. (Applies to the Long and Abbreviated formats.)
- if the time should be included in the date. (Applies to all except the Strict ISO format.)
- it the time should be given in seconds. (Applies to all except the Strict ISO format.)
- the language of the date format. (Applies to the Long, Abbreviated, and Short formats.) If no language is specified the format in the Date and Time control panel is used.

Note! The short time format can be confusing. For example 4/5/66 means 4 May 1966 in some parts of the world and April 5, 1966 in other parts.

Document Type...
Inserts a document type declaration at the top of the document. If there already is one, it is replaced.

Document size
Calculates the size of the current window including images etc. The following limitations apply:

- For documents with frames, the images etc. in the individual frames are not included.
- Images etc. loaded by external style sheets or scripts are excluded.
- Remote sources are excluded.

Document index...
Makes an index of the document with an item for each header H1-6. If there already exists an index in the document it is replaced, otherwise a new one is inserted at the current position.

The index can be done using either PRE or an UL list. When Alpha makes the index it goes through the window and looks for all headers. If there is an anchor <A NAME="..."> inside a header that anchor is used when building the index, otherwise an anchor is inserted inside the header. Alpha then inserts

    <!-- #DOCINDEX TYPE="PRE,3" DEPTH="6" -->
    the index
    <!-- /#DOCINDEX -->

The index consists of a list with links to the various headers.

Previous page Next page