Template:Sh$

From Wikibooks, open books for an open world
Jump to navigation Jump to search

$

Template documentation[edit] [history] [purge]

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.

Usage[edit]

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

Examples[edit]

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