Template:Highlight: Difference between revisions

From Leo's Notes
This page was last edited on 20 June 2020, at 19:57.
m removed newline
m lang set to terminal by default
Line 17: Line 17:
"label": "lang",
"label": "lang",
"description": "language of the code to highlight",
"description": "language of the code to highlight",
"example": "text",
"example": "terminal",
"type": "string",
"type": "string",
"default": "text",
"default": "terminal",
"autovalue": "text",
"autovalue": "text",
"suggested": true
"suggested": true

Revision as of 19:57, 20 June 2020

No code provided.

Syntax highlights a chunk of code or text

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
codecode 1

code to highlight

Auto value
Stringrequired
langlang 2

language of the code to highlight

Default
terminal
Example
terminal
Auto value
text
Stringsuggested
lineline

line to highlight

Numberoptional
stylestyle

custom CSS style

Auto value
Stringoptional
highlighthighlight 3

no description

Auto value
Unknownoptional