Template:Highlight

From Leo's Notes
Revision as of 10:07, 2 January 2022 by Leo (talk | contribs) (change terminal to console lexer)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 2 January 2022, at 10:07.
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
terminal
Stringsuggested
lineline

line to highlight

Numberoptional
stylestyle

custom CSS style

Auto value
Stringoptional
highlighthighlight 3

no description

Auto value
Unknownoptional