Template:Highlight: Difference between revisions
From Leo's Notes
This page was last edited on 14 June 2020, at 21:07.
No edit summary |
mNo edit summary |
||
| Line 17: | Line 17: | ||
], | ], | ||
"label": "lang", | "label": "lang", | ||
"description": "language", | "description": "language of the code to highlight", | ||
"example": "text", | "example": "text", | ||
"type": "string", | "type": "string", | ||
| Line 30: | Line 30: | ||
"label": "code", | "label": "code", | ||
"description": "code to highlight", | "description": "code to highlight", | ||
"required": true | "required": true, | ||
"type": "string", | |||
"autovalue": "" | |||
}, | }, | ||
"style": { | "style": { | ||
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 of the code to highlight
| String | suggested |
| code | code 1 | code to highlight
| String | required |
| style | style | custom CSS style
| String | optional |
| highlight | highlight | no description | Unknown | optional |
| line | line | line to highlight | Number | optional |