Jump to content

Template:Sh$/doc

From Wikibooks, open books for an open world

This template formats a w:Bourne shell-style prompt and is intended to be used in “leading space” preformatted sections.

The prompt will use prompt and prompt-sh HTML/CSS classes, and also an explicit font-weight: bolder CSS style.

  • {{Sh$}}
  • {{Sh$|Prompt text }}
  • {{Sh$|1=Prompt text with a = inside }}

Examples

[edit source]
{{Sh$}}<kbd >hello </kbd>
<samp>Hello, world!</samp>
{{Sh$}}
$ hello 
Hello, world!
$ 
{{Sh$|# }}<kbd >apt-get install \
      -- ascii </kbd>
# apt-get install \
      -- ascii