HTML_BLOCK Procedure

Writes out a specifically formatted block of HTML text.

Usage

    HTML_BLOCK, text

Input Parameters

text—An array of strings.

Keywords

BlockQuote—Creates a <BLOCKQUOTE> text block (indented on both sides).

Pre—Creates a <PRE> block (pre-formatted).

Safe—Handles HTML special characters (see HTML_SAFE).

Tag—Accepts a string indicating which HTML tag to use, allowing you to use any formatting tags (e.g., tag=”address”). If Tag is set, it overrides the predefined keywords Pre and BlockQuote.

Discussion

This procedure allows you to format blocks of text with specific HMTL opening and closing tags. You may use the preset tag keywords (BlockQuote and Pre) or identify others using the Tag keyword. HTML_BLOCK is particularly useful if your target browser uses nonstandard extensions.

Example

This example creates a paragraph that will be indented on both sides when viewed.

HTML_OPEN
HTML_BLOCK, 'This paragraph will be ' + $
   'indented on both sides of the ' + $
   'viewer window. Use HTML_BLOCK ' + $
   'whenever you want to control ' + $
   'the appearance of a paragraph.', /Blockquote
HTML_CLOSE

See Also

HTML_HEADING, HTML_HIGHLIGHT, HTML_LIST, HTML_OPEN, HTML_PARAGRAPH, HTML_SAFE, HTML_TABLE

For a complete listing of HTML tag elements, see HTML Sourcebook, Second Edition, by Ian S. Graham, John Wiley & Sons, Inc., 1996, New York.