Template:Cmd: Difference between revisions
imported>Rmarko m (Fixed) |
imported>Rmarko m (fix class) |
||
Line 6: | Line 6: | ||
* [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages supported lang(s)] | * [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages supported lang(s)] | ||
</noinclude> | </noinclude> | ||
<div class=" | <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:45, 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>