Add an example showing the use of <example>.

This commit is contained in:
Warren Block 2014-07-06 04:03:27 +00:00
parent 8e43778a75
commit 362aae352f
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=45211

View file

@ -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>