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.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a29bed75db48eee6

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.