Answer my own question:
Since I'm sure that the pygments components is installed corrected --
for I can see it in the Admin page's plugin section.
And as I note, every Java source code file has a message on top of the
source view page.

 
--------------------------------------------------------------------------------------------------------------------------
Revision 2, 10.2 KB  (checked in by user, ** hours ago)

  * Property svn:mime-type set to text/plain
---------------------------------------------------------------------------------------------------------------------------

I try to update configuration in trac.ini file:
-------------------------------------------------------------------------------------------------------------------------
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
---------------------------------------------------------------------------------------------------------------------------
change "text/x-java:java:7" to "text/plain:java:7", this told pygments
to render text/plain file using java render.
And I got the syntax highlight in the source view page.

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 ??  Or do anyone know how to set the svn:mime-type
property as I need?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to