Template:Cmd

From base48
Revision as of 01:07, 15 July 2015 by imported>Rmarko (code note)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Helper template for rendering command line commands.

Usage: {{cmd|git clone test.repo}} (defaults to bash). Different lang: {{cmd|lang=cpp|code=x ^= 1337.

If using special characters and not getting any result code= is required: {{cmd|code=a=2*b&c}}

<syntaxhighlight lang="bash">{{{1}}}</syntaxhighlight>