HTML_HIGHLIGHT Function
Allows the use of all the basic textual highlighting elements in HTML.
Usage
html_text = HTML_HIGHLIGHT(str, tag)
Input Parameters
str—The string or array of strings to be highlighted.
tag—The highlighting tag or array of tags. If tag is scalar but str is a list of strings, then tag is applied around each of the items in str. If tag is an array, it must be the same length as str. This parameter is the string inside the HTML angle brackets: e.g., B elicits <B>...</B> (for boldfacing).
Keywords
Safe—Handles HTML special characters (see HTML_SAFE).
Returned Value
html_text—String (array) of HTML text tagged with highlighting tags.
Discussion
HTML_HIGHTLIGHT supports both physical (e.g., ‘U’, ‘B’, etc.) and logical (e.g., ‘CITE’, ‘CODE’, etc.) text highlighting. The flexibility of the function also allows you to take advantage of any extension to standard formatting used by a particular browser.
Example
HTML_OPEN
HTML_PARAGRAPH, $
HTML_HIGHLIGHT('Example citation text.', 'CITE', /Safe)
HTML_CLOSE
See Also
For a complete listing of HTML text highlighting elements, see HTML Sourcebook, Second Edition, by Ian S. Graham, John Wiley & Sons, Inc., 1996, New York, p. 251.