Inline elements are used to mark words or phrases within a paragraph of text. These elements affect the font used to format particular items.
Use the <emph> element (emphasis) as shown:
<emph> text <\emph>
!! text !!
Emphasized text is displayed using an italic font.
Here's how you might emphasize an important word:
A thousand times <emph>no<\emph>
Or, using the shorthand form:
A thousand times !!no!!
In both cases, the word "no" is displayed in italics.
Use the <book> element as shown:
<book> title <\book>
Or, use the short form:
book| title |
Book titles are displayed using an italic font.
Here's how you would enter the title of this guide:
<book|The Help System Author's and Programmer's Guide|
Use the <term> element as shown:
<term nogloss> bold text <\term>
Or, use the shorthand form:
<term nogloss |bold text |
The <term> element is used to create a glossary entry. However, by adding the nogloss parameter, the text is displayed in a bold font without being added to the glossary.
Use the <computer> element as shown:
<computer> text <\computer>
`` text ''
Computer text is useful for identifying a file name. Here the helptag.opt file name is tagged using shorthand markup. The file name will be displayed in computer text.
This markup:
Add the search path to your "helptag.opt" file.
produces this output:
Add the search path to your helptag.opt file.
Use the <var> element (variable) as shown:
<var> text <\var>
Or, use the short form:
<var |text |
%% text %%
Variables are displayed using an italic font.
This command-line syntax uses a variable to show that the user supplies a file name.
dtpad %%filename%%
It produces this output:
dtpad filename
Variables can appear within computer text or computer example listings. This example specifies volume as a variable part of a file name:
The HelpTag software takes your "%%volume%%.htg" file as input.
It produces:
The HelpTag software takes your volume.htg file as input.
In both of these examples, the %% pairs could have been entered with the long form (<var>...<\var>) or the short form (<var|...|).