Hi,
I'd like to customize the colors of the code macro (1.8.3 / xwiki 2.0)
In the code macro documentation
(
http://code.xwiki.org/xwiki/bin/view/Macros/CodeMacro20) I see that
there is an cssClass attribute for that purpose.
Unfortunately the available css keywords are not documented.
Firebug also didn't help me, because the color seems to be hard coded in
some way (see example at the end).
Can you provide me with an example of customizing the color of the code
macro?
e.g. my code macro:
{{code language=java}}
public void do() {
System.out.println("bla");
}
{{/code}}
produces this rendered html:
<div class="box code">
<span style="font-weight: bold; color: rgb(0, 128,
0);">public</span>
<span style="color: rgb(176, 0, 64);">void</span> <span
style="color:
rgb(0, 0, 255);">do</span><span style="color: rgb(102, 102,
102);">()</span> <span style="color: rgb(102, 102,
102);">{</span><br/>
System<span style="color: rgb(102, 102, 102);">.</span><span
style="color: rgb(125, 144, 41);">out</span><span style="color:
rgb(102,
102, 102);">.</span><span style="color: rgb(125, 144,
41);">println</span><span style="color: rgb(102, 102,
102);">(</span><span style="color: rgb(186, 33,
33);">"bla"</span><span
style="color: rgb(102, 102, 102);">);</span><br/><span
style="color:
rgb(102, 102, 102);">}</span><br/>
</div>
Thanks a lot.
Reto