svn commit: r45211 - head/en_US.ISO8859-1/books/fdp-primer/docbook-markup
Warren Block
wblock at FreeBSD.org
Sun Jul 6 04:03:28 UTC 2014
Author: wblock
Date: Sun Jul 6 04:03:27 2014
New Revision: 45211
URL: http://svnweb.freebsd.org/changeset/doc/45211
Log:
Add an example showing the use of <example>.
Modified:
head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml
Modified: head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml Sat Jul 5 03:52:27 2014 (r45210)
+++ head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml Sun Jul 6 04:03:27 2014 (r45211)
@@ -838,6 +838,33 @@
</important>
</sect2>
+ <sect2 xml:id="docbook-markup-example">
+ <title>Examples</title>
+
+ <para>Examples can be shown with <tag>example</tag>.</para>
+
+ <example>
+ <title><tag>example</tag></title>
+
+ <para>Usage:</para>
+
+ <programlisting><tag class="starttag">example</tag>
+ <tag class="starttag">para</tag>Empty files can be created easily:<tag class="endtag">para</tag>
+
+ <tag class="starttag">screen</tag>&prompt.user; <tag class="starttag">userinput</tag>touch file1 file2 file3<tag class="endtag">userinput</tag><tag class="endtag">screen</tag>
+<tag class="endtag">example</tag></programlisting>
+ </example>
+
+ <!-- Need to do this outside of the example -->
+ <para>Appearance:</para>
+
+ <example>
+ <para>Empty files can be created easily:</para>
+
+ <screen>&prompt.user; <userinput>touch file1 file2 file3</userinput></screen>
+ </example>
+ </sect2>
+
<sect2 xml:id="docbook-markup-lists-and-procedures">
<title>Lists and Procedures</title>
More information about the svn-doc-head
mailing list