svn commit: r45211 - head/en_US.ISO8859-1/books/fdp-primer/docbook-markup

Warren Block <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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>&amp;prompt.user&semi; <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>
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.