1: <div class="programlisting">
2: <pre><tt>
3: <TMPL_VAR text>
4: </tt></pre>
5: </div>
6: <TMPL_UNLESS NAME="text">
7:
8: ## Description
9:
10: Use this template to display a program listing, or a succession of commands (together with their output).
11:
12: Remember that shell commands may be prefixed by:
13: * *$* when the command should be run as a normal user
14: * *#* when the command should be run as root
15:
16: * *text* - text to display as program listing.
17:
18: ## Examples
19:
20: [[!template id=programlisting text="""
21: $ uname
22: NetBSD
23: $ cd /bin
24: $ ls
25: [ cpio domainname kill mt rcmd sleep
26: cat csh echo ksh mv rcp stty
27: chio date ed ln pax rm sync
28: chmod dd expr ls ps rmdir tar
29: cp df hostname mkdir pwd sh test
30: """]]
31:
32: is obtained with:
33:
34: \[[!template id=programlisting text="""
35: $ uname
36: NetBSD
37: $ cd /bin
38: $ ls
39: [ cpio domainname kill mt rcmd sleep
40: cat csh echo ksh mv rcp stty
41: chio date ed ln pax rm sync
42: chmod dd expr ls ps rmdir tar
43: cp df hostname mkdir pwd sh test
44: """]]
45:
46: </TMPL_UNLESS>
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb