code-type Type of Code

The type of this code, used to categorize or describe the code.
OPTIONAL on element: <code>
Value Meaning
Text, numbers, or special characters Typically a descriptive word such as “pseudo-code” or “scripting” that describes the type of language (not the name of the language) in which the code is written.
Restriction @code-type is an optional attribute; there is no default.
Tagged Samples
User interface in C++
...
<code   
  code-type="user interface control" 
  language="C++"
  language-version="11"
  xml:space="preserve" 
  orientation="portrait"
  position="anchor">
 #include &lt;conio.h>
 #include&lt;win_mous.cpp>
 // Needed for mouse &amp; win functions#define
 ...
</code>
...
XSLT template
...
<code code-type="xml" code-version="1.0"
  language="xslt" language-version="2.0"
  platforms="windows mac unix" executable="no"
  xml:space="preserve" orientation="portrait"
  position="anchor">
 &lt;xsl:template match="node()" mode="compare"&gt;
  &lt;xsl:copy copy-namespaces="no"&gt;
   &lt;xsl:copy-of select="@*"/&gt;
   &lt;xsl:apply-templates mode="compare"/&gt;
  &lt;/xsl:copy&gt;
 &lt;/xsl:template&gt;
</code>
...