Template:Syntaxhighlight: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#tag:syntaxhighlight|{{{1}}}|lang="{{#if:{{{2|}}}|{{{2}}}|c++}}"}}</includeonly> <noinclude> This template will add <code>syntaxhighlight</code> tag to the provided text. == Syntax == <syntaxhighlight lang="pcre"> {{Syntaxhighlight|text|lang}} </syntaxhighlight> === Required Arguments === * '''text:''' text you want to surround syntaxhighlight with. === Optional Arguments === * '''lang:''' codeblock language (e.g. c++, lua, python)...")
 
No edit summary
 
Line 1: Line 1:
<includeonly>{{#tag:syntaxhighlight|{{{1}}}|lang="{{#if:{{{2|}}}|{{{2}}}|c++}}"}}</includeonly>
<includeonly></includeonly>
<noinclude>
<noinclude>
This template will add <code>syntaxhighlight</code> tag to the provided text.
{{Delete|Useless template}}
 
== Syntax ==
<syntaxhighlight lang="pcre">
&#123;&#123;Syntaxhighlight|text|lang&#125;&#125;
</syntaxhighlight>
 
=== Required Arguments ===
* '''text:''' text you want to surround syntaxhighlight with.
 
=== Optional Arguments ===
* '''lang:''' codeblock language (e.g. c++, lua, python)
 
== Example ==
<section name="&#123;&#123;Syntaxhighlight|print('Hello, World!')|lua&#125;&#125;" class="server" show="true">
The above code will result in this block:
{{Syntaxhighlight|print('Hello, World!')|lua}}
</section>
</noinclude>
</noinclude>

Latest revision as of 19:52, 28 March 2024


Edit-delete.png This page is marked for deletion.

Reason: Useless template
Actions: Delete (Administrators) - Discuss - What links here - Category