Project

General

Profile

Code snippets with coderay but without line numbers ?

Added by Frank Helk over 12 years ago

Hi there ...

I've got a question about the coderay formatting of source sequences in Redmine texts.

Reading the detailled formatting guide (i.e. here) there's a part describing how to create syntax highlighted code display in wiki and issue texts. That way i.e.
<pre><code class="xml">
<Tag1>
<SubTag1 value="1"/>
<SubTag2 value="2"/>
<SubTag3 value="3"/>
<SubTag4 value="4"/>
</Tag1>
</code></pre>

would be displayed as

<Tag1>
      <SubTag1 value="1"/> 
      <SubTag2 value="2"/> 
      <SubTag3 value="3"/> 
      <SubTag4 value="4"/> 
</Tag1>

Is there any way to control the display of the line numers (precisely how to get rid of them, if needed) ?

If there is a way (I supect there is ...), are there more options like that, and is there some doc of them ?