◇◆
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 <conio.h>
#include<win_mous.cpp>
// Needed for mouse & 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">
<xsl:template match="node()" mode="compare">
<xsl:copy copy-namespaces="no">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="compare"/>
</xsl:copy>
</xsl:template>
</code>
...