Template:Highlight: Difference between revisions

From Leo's Notes
This page was last edited on 20 June 2020, at 18:29.
mNo edit summary
m removed newline
Line 7: Line 7:
|enclose="div"
|enclose="div"
|{{#if: {{{line|}}}|line=line}}
|{{#if: {{{line|}}}|line=line}}
}}
}}<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{

Revision as of 18:29, 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
text
Example
text
Auto value
text
Stringsuggested
lineline

line to highlight

Numberoptional
stylestyle

custom CSS style

Auto value
Stringoptional
highlighthighlight 3

no description

Auto value
Unknownoptional