Template:CodeBlock: Difference between revisions
Jump to navigation
Jump to search
(reverted back to inline syntaxhighlight) |
(this way, lang doesnt need to be specified and therefore code blocks can have a language specified but no header) |
||
Line 36: | Line 36: | ||
--><div style="width:100%;background:rgba(255,128,0,0.1);margin-top:calc((1.6em * ({{{lightstart4|4}}} - 1)) + .45em);margin-bottom:.45em;height:calc(1.6em * {{{lightamount4|1}}});position:absolute;left:0;user-select:none;pointer-events:none"><!-- | --><div style="width:100%;background:rgba(255,128,0,0.1);margin-top:calc((1.6em * ({{{lightstart4|4}}} - 1)) + .45em);margin-bottom:.45em;height:calc(1.6em * {{{lightamount4|1}}});position:absolute;left:0;user-select:none;pointer-events:none"><!-- | ||
--></div><!-- | --></div><!-- | ||
--></div>}}<div style="padding:.45em .5em;position:relative">{{# | --></div>}}<div style="padding:.45em .5em;position:relative">{{#if:{{{highlight|}}}|{{#tag:syntaxhighlight|{{{1|}}}|lang={{{highlight}}}|inline=1|style="background-color:transparent;"}}|{{{1|}}}}}</div><!-- | ||
--></div><!-- | --></div><!-- | ||
--><!-- | --><!-- |
Revision as of 17:47, 14 August 2023
The above documentation is transcluded from Template:CodeBlock/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.