Hi,

There is no way currently to customize macro colors.

But there is already code to be able to put classes names instead of
hard coded colors in the spans and it just need to add to way to
configure it.

Can you create an issue for it on http://jira.xwiki.org ?

On Wed, May 20, 2009 at 09:15, Reto Hotz <[email protected]> wrote:
> 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
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to