Template:Highlight

From RCSWiki
Revision as of 17:45, 5 February 2021 by Lleung (talk | contribs) (Created page with "{{#tag:syntaxhighlight |{{{code|{{{1|No code provided.}}}}}} |lang="{{{lang|{{{2|text}}}}}}" |class="mw-highlight-{{{lang|{{{2|text}}}}}}" |style="{{#if:{{{style|}}}| {{{style...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
No code provided.

<templatedata> { "params": { "lang": { "aliases": [ "2" ], "label": "lang", "description": "language of the code to highlight", "example": "terminal", "type": "string", "default": "terminal", "autovalue": "terminal", "suggested": true }, "code": { "aliases": [ "1" ], "label": "code", "description": "code to highlight", "required": true, "type": "string", "autovalue": "" }, "style": { "label": "style", "description": "custom CSS style", "type": "string", "autovalue": "" }, "highlight": { "aliases": [ "3" ], "autovalue": "" }, "line": { "label": "line", "description": "line to highlight", "type": "number" } }, "description": "Syntax highlights a chunk of code or text", "paramOrder": [ "code", "lang", "line", "style", "highlight" ], "format": "block" } </templatedata>