<code>

<code> 包含一個正式語言的字母代碼,像是一個程式語言。
組件tagdocs — 22 Documentation Elements
屬性
lang (formal language) 表示該代碼的正式語言名稱
狀態 非必備的
資料類型

<rng:ref name="data.word"/>
data.word
屬於
可包含僅文字符號資料
宣告

<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 }
例子
<code lang="JAVA"> Size fCheckbox1Size = new Size();
fCheckbox1Size.Height = 500;
fCheckbox1Size.Width = 500;
xCheckbox1.setSize(fCheckbox1Size);
</code>