<varname>
A variable name is a placeholder for content that might change based on how something is used, such as a variable supplied to a software application or a user-defined path in a command.
Rendering expectations
The content of the <varname>
element is typically rendered in an
italic font.
Specialization hierarchy
The <varname>
element is specialized from
<keyword>
. It is defined in the software domain module.
Attributes
The following attributes are
available on this element: universal
attributes and @keyref
.
Example
The following code sample shows how the
<varname>
element is used to identify
variables that represent the "installation directory," "project
directory," and "file name":
<filepath>
<varname>install-dir</varname>/projects/working/<varname>project-dir</varname>
/source/<varname>filename</varname>.java
</filepath>