<code>

<code> contains literal code from some formal language such as a programming language.
Module tagdocs — 22 Documentation Elements
In addition to global attributes In 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 contain Character 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>