Template:Cmd: Difference between revisions
imported>Rmarko m (Fix) |
imported>Rmarko m (Fixed) |
||
Line 2: | Line 2: | ||
Helper template for rendering command line commands. | Helper template for rendering command line commands. | ||
Usage: <nowiki>{{ | Usage: <nowiki>{{cmd|git clone test.repo}}</nowiki> (defaults to bash). Different lang: <nowiki>{{cmd|lang=cpp|code=x ^= 1337</nowiki>. | ||
* [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages supported lang(s)] | |||
</noinclude> | </noinclude> | ||
<div class="b48mw_cmd"> | <div class="b48mw_cmd"> | ||
{{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang="{{{lang|{{{2|bash}}}}}}"}} | {{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang="{{{lang|{{{2|bash}}}}}}"}} | ||
</div> | </div> |
Revision as of 00:34, 15 July 2015
Helper template for rendering command line commands.
Usage: {{cmd|git clone test.repo}} (defaults to bash). Different lang: {{cmd|lang=cpp|code=x ^= 1337.
<syntaxhighlight lang="bash">{{{1}}}</syntaxhighlight>