NetBSD Wiki/templates/
filecontent
Description
Use this template to display the content of a file, while making a clear distinction with the programlisting template.
Remember that shell commands may be prefixed by:
- name - the name (or path) of the file
- text - text to display as file's content
Examples
is obtained with:
[[!template id=filecontent name="/etc/fstab" text="""
/dev/wd0a / ffs rw,log 1 1
/dev/wd0b none swap sw 0 0
kernfs /kern kernfs rw
ptyfs /dev/pts ptyfs rw
procfs /proc procfs rw
/dev/cd0a /cdrom cd9660 ro,noauto
"""]]
Add a comment