Template:Syntaxhighlight
Jump to navigation
Jump to search
This template will add syntaxhighlight
tag to the provided text.
Syntax
{{Syntaxhighlight|text|lang}}
Required Arguments
- text: text you want to surround syntaxhighlight with.
Optional Arguments
- lang: codeblock language (e.g. c++, lua, python)
Example
Click to collapse [-]
{{Syntaxhighlight|print('Hello, World!')|lua}}The above code will result in this block:
print('Hello, World!')