Template:Codeblock
Jump to navigation
Jump to search
| Template:Codeblock | {{Codeblock
|lang=
|text=
}} |
|
Produce a highlighted <pre> block using the <syntaxhighlight> extension tag. The .meta-doctable table class will remove margins when used within a cell.
- Parameters
string $lang Name of coding language - langattr. valuestring $text Raw inner block text.
- Returns
- string
<pre>element wrapped in the.mw-highlight(+ language-specific) classes