I installed pygments on my trac server. but the code is without colours on the ticket comments.
this is what i have on trac.ini :
[mimeviewer]
max_preview_size = 262144
mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb,text/x- java:java,application/x-python:py python sage
pygments_default_style = trac
pygments_modes = text/plain:java:7
silvercity_modes =
tab_width = 8
treat_as_binary = application/octet-stream,application/pdf,application/postscript,application/msword,application/rtf,
this is what i am writing in the comments:
{{{ #!java if(var=='true') { a ='hi'; } }}}
many thanks for your help