Sandbox

  • Revision slug: User:Elchi3/Sandbox
  • Revision title: Sandbox
  • Revision id: 48628
  • Created:
  • Creator: Wesgarland
  • Is current revision? No
  • Comment 6 words added

Revision Content

Syntax highlighting

Turn line numbers off

<pre function="syntax.html{code:$, gutter: false}">

Collapse a code sample

<pre function="syntax.html{code:$, collapse: true}">

Turn line wrapping on/off

<pre function="syntax.html{code:$, wrap:true}">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam

wiki.contributors()

{{ contributors(nil, 15) }}

page.viewcount

{{ page.viewcount }}

Template tests

  • {{ jsapixref("JS_SetOperationCallback") }}
  • {{ jsapixref("JS_SetFunctionCallback()") }}

{{ jsapixref("JS_TriggerOperationCallback") }}

Revision Source

<h2 id="syntax">Syntax highlighting</h2>
<h3>Turn line numbers off</h3>
<pre class="brush: html">&lt;pre function="syntax.html{code:$, gutter: false}"&gt;
</pre>
<h3>Collapse a code sample</h3>
<pre class="brush: html">&lt;pre function="syntax.html{code:$, collapse: true}"&gt;
</pre>
<h3>Turn line wrapping on/off</h3>
<pre class="brush: html">&lt;pre function="syntax.html{code:$, wrap:true}"&gt;
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
</pre>
<h2 id="wiki">wiki.contributors()</h2>
<p>{{ contributors(nil, 15) }}</p>
<h2 id="counter">page.viewcount</h2>
<p>{{ page.viewcount }}</p>
<h2>Template tests</h2>
<ul> <li>{{ jsapixref("JS_SetOperationCallback") }}</li> <li>{{ jsapixref("JS_SetFunctionCallback()") }}</li>
</ul>
<p>{{ jsapixref("JS_TriggerOperationCallback") }}</p>
Revert to this revision