mozilla

Revision 48622 of Sandbox

  • Revision slug: User:Elchi3/Sandbox
  • Revision title: Sandbox
  • Revision id: 48622
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment another test with the syntax highlighter extension; 94 words added, 36 words removed

Revision Content

Syntax highlighting:

Turn line numbers off

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

Collapse a code sample

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

Define the starting line number

<pre function="syntax.javascript{code:$, first-line: 3}">

Turn line wrapping on/off

<pre function="syntax.javascript{code:$, wrap: true}">
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 }}

Revision Source

<h2 id="syntax">Syntax highlighting:</h2>
<h3>Turn line numbers off</h3>
<pre class="brush: js">&lt;pre function="syntax.javascript{code:$, gutter: false}"&gt;
</pre>
<h3>Collapse a code sample</h3>
<pre class="brush: js">&lt;pre function="syntax.javascript{code:$, collapse: true}"&gt;
</pre>
<h3>Define the starting line number</h3>
<pre class="brush: js">&lt;pre function="syntax.javascript{code:$, first-line: 3}"&gt;
</pre>
<h3>Turn line wrapping on/off</h3>
<pre class="brush: js">&lt;pre function="syntax.javascript{code:$, wrap: true}"&gt;
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>
Revert to this revision