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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
langlang 2

language

Default
text
Example
text
Auto value
text
Stringsuggested
codecode 1

code to highlight

Unknownrequired
stylestyle

custom CSS style

Auto value
Stringoptional
highlighthighlight

no description

Unknownoptional
lineline

line to highlight

Numberoptional