Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / man / mdoc.5
index 9690445ce583ca1f5fb9265c43eeb8c9200e70b2..3cd4bbea5558369f244d1873b7f220ec20c73074 100644 (file)
@@ -401,6 +401,31 @@ The \fIexception\fR element can contain the following elements:
 \fIsee\fR, and
 \fItypeparamref\fR.
 .TP
+.I <format type="TYPE">XML_TEXT</format>
+The \fI<format/>\fR element is an "escape hatch," for including (possibly XML)
+content that is not valid \fBmdoc\fR(5) content.  It's the moral equivalent of
+\fBperlpod\fR(1) \fI=begin format\fR blocks.
+
+\fITYPE\fR is the mime type of \fIXML_TEXT\fR.  \fBmdoc\fR(5) processors may
+skip \fIformat/>\fR blocks of they use a type that isn't supported.
+
+For example:
+
+.nf
+    <format type="text/html">
+      <table width="100%">
+        <tr><td style="color:red">Hello, world!</td></tr>
+      </table>
+    </format>
+.fi
+
+would cause the embedded HTML \fI<table/>\fR element to be inserted inline
+into the resulting HTML document when \fBmdoc-export-html\fR(1) processes the
+file.  (Likewise, it may be skipped if processed by another program.)
+
+\fIformat/>\fR is intended to simplify importing documentation from existing
+documentation sources.  It should not be relied upon, if at all possible.
+.TP
 .I <list>XML</list>
 Create a list or table of items.  
 .I <list/>
@@ -578,6 +603,8 @@ Describes the return value of a method:
 .fi
 
 The \fIreturns\fR element can contain the following elements:
+\fIc\fR,
+\fIformat\fR,
 \fIlist\fR,
 \fIpara\fR,
 \fIparamref\fR,
@@ -738,7 +765,7 @@ Refers to a namespace, e.g. \fIN:System\fR.
 .I "P:"
 Refers to a property.  If the property is an indexer or takes parameters, 
 the parameter types are appended to the property name and enclosed with
-paranthesis:
+parenthesis:
 \fIP:System.String.Length\fR,
 \fIP:System.String.Chars(System.Int32)\fR.
 .TP