Template:Highlight: Difference between revisions
From Leo's Notes
This page was last edited on 14 June 2020, at 21:07.
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
|{{#if: {{{line|}}}|line=line}} | |{{#if: {{{line|}}}|line=line}} | ||
}} | }} | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"lang": { | |||
"aliases": [ | |||
"2" | |||
], | |||
"label": "lang", | |||
"description": "language", | |||
"example": "text", | |||
"type": "string", | |||
"default": "text", | |||
"autovalue": "text", | |||
"suggested": true | |||
}, | |||
"code": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"label": "code", | |||
"description": "code to highlight", | |||
"required": true | |||
}, | |||
"style": { | |||
"label": "style", | |||
"description": "custom CSS style", | |||
"type": "string", | |||
"autovalue": "" | |||
}, | |||
"highlight": {}, | |||
"line": { | |||
"label": "line", | |||
"description": "line to highlight", | |||
"type": "number" | |||
} | |||
}, | |||
"description": "Syntax highlights a chunk of code or text" | |||
} | |||
</templatedata> | |||
</noinclude> | |||
Revision as of 21:07, 14 June 2020
No code provided.
Syntax highlights a chunk of code or text
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| lang | lang 2 | language
| String | suggested |
| code | code 1 | code to highlight | Unknown | required |
| style | style | custom CSS style
| String | optional |
| highlight | highlight | no description | Unknown | optional |
| line | line | line to highlight | Number | optional |