Template:Highlight: Difference between revisions
From Leo's Notes
This page was last edited on 14 June 2020, at 21:08.
mNo edit summary |
mNo edit summary |
||
| Line 40: | Line 40: | ||
"autovalue": "" | "autovalue": "" | ||
}, | }, | ||
"highlight": {}, | "highlight": { | ||
"aliases": [ | |||
"3" | |||
], | |||
"autovalue": "" | |||
}, | |||
"line": { | "line": { | ||
"label": "line", | "label": "line", | ||
| Line 47: | Line 52: | ||
} | } | ||
}, | }, | ||
"description": "Syntax highlights a chunk of code or text" | "description": "Syntax highlights a chunk of code or text", | ||
"paramOrder": [ | |||
"code", | |||
"lang", | |||
"line", | |||
"style", | |||
"highlight" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 21:08, 14 June 2020
No code provided.
Syntax highlights a chunk of code or text
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| code | code 1 | code to highlight
| String | required |
| lang | lang 2 | language of the code to highlight
| String | suggested |
| line | line | line to highlight | Number | optional |
| style | style | custom CSS style
| String | optional |
| highlight | highlight 3 | no description
| Unknown | optional |