<code>

<code> contains literal code from some formal language such as a programming language.
Moduletagdocs — 22 Documentation Elements
AttributesIn addition to global attributes
lang(formal language) a name identifying the formal language in which the code is expressed
Status Optional
Datatype

<rng:ref name="data.word"/>
data.word
Used by
May containCharacter data only
Declaration

<rng:element name="code">
<rng:ref name="att.global.attributes"/>
<rng:optional>
 <rng:attribute name="lang">
  <rng:ref name="data.word"/>
 </rng:attribute>
</rng:optional>
<rng:text/>
</rng:element>
element code { att.global.attributes, attribute lang { data.word }?, text }
Example
<code lang="JAVA"> Size fCheckbox1Size = new Size();
fCheckbox1Size.Height = 500;
fCheckbox1Size.Width = 500;
xCheckbox1.setSize(fCheckbox1Size);
</code>