Hi, I have a problem of using pygments to make syntax highlight in trac. I am using trac 0.11.2.1, pygments 0.11.1 I install pygments this way: --------------------------------------------------------------------------------------------------------------------------------- tar zxvf Pygments-0.11.1.tar.gz.gz cd Pygments-0.11.1 python setup.py build python setup.py install ---------------------------------------------------------------------------------------------------------------------------------
And I make a global configuration of trac to use pygments, here is some sections of my trac.ini file in my project trac sub directory: ------------------------------------------------------------------------------------------------------------------------------- [inherit] file = /usr/local/share/trac/conf/trac.ini plugins_dir = /usr/local/share/trac/plugins templates_dir = /usr/local/share/trac/templates [mimeviewer] enscript_modes = text/x-dylan:dylan:4 enscript_path = enscript max_preview_size = 262144 mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb, text/ x-java:java, text/x-chdr:h, text/x-csrc:c, text/x-c++hdrh:h, text/x-c+ +src:cpp, text/x-csharp:cs, text/x-python:py php_path = php silvercity_modes = pygments_default_type = trac pygments_modes = text/x-java:java:7, text/x-chdr:h:7, text/x-csrc:c:7, text/x-c++hdrh:h:7, text/x-c++src:cpp:7, text/x-csharp:cs:7, text/x- python:py:7 tab_width = 8 ---------------------------------------------------------------------------------------------------------------------------------- and in the file /usr/local/share/trac/conf/trac.ini, I add components section like this: ---------------------------------------------------------------------------------------------------------------------------------- [components] tracpygments.* = enabled ---------------------------------------------------------------------------------------------------------------------------------- I restart apache server, and browse source in trac, but here is no syntax colour at all. On top of the source code trac show, there is a message like this: -------------------------------------------------------------------------------------------------------------------------- Revision 2, 10.2 KB (checked in by user, ** hours ago) * Property svn:mime-type set to text/plain --------------------------------------------------------------------------------------------------------------------------- I use Eclipse as my IDE and Subversion to add source code to the svn server. It seems that Subversion plugin of Eclipse had set the snv:mime-type ?? Any one could give me some help of this problem? Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
