Add an example showing the use of <example>.
This commit is contained in:
parent
8e43778a75
commit
362aae352f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=45211
1 changed files with 27 additions and 0 deletions
|
@ -838,6 +838,33 @@
|
||||||
</important>
|
</important>
|
||||||
</sect2>
|
</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">
|
<sect2 xml:id="docbook-markup-lists-and-procedures">
|
||||||
<title>Lists and Procedures</title>
|
<title>Lists and Procedures</title>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue