s.syntax.variable

Table of Contents

Syntax #

s.syntax.variable

Purpose #

The s.syntax.variable annotation is used to tag a span element as being a variable in a syntax diagram. This content will be included within a syntax diagram.

Example #

The following is an example of a time when you might want to use the annotation

 

The following is an example of a rule that will apply the annotation

The following is the DITA XML output for the rule:

>>-<kwd>2</kwd>–<oper>*</oper>–<var>user_input</var>–<delim>=</delim>