Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Syntaxhighlight tab size/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

mw:Extension:SyntaxHighlight by default uses 4 spaces for tab characters inside <syntaxhighlight>...</syntaxhighlight>. This template can set it to 2, 4, 6 or 8 spaces by wrapping syntaxhighlight in a div with a given class.

{{Syntaxhighlight tab size}}
<div class="syntaxhighlight-tab-size-8">
... code with syntaxhighlight ...
</div>

The above sets 8 spaces with syntaxhighlight-tab-size-8. It can be changed to syntaxhighlight-tab-size-2, syntaxhighlight-tab-size-4 or syntaxhighlight-tab-size-6.