On 21 нояб, 04:47, Link <[email protected]> wrote:
> Answer my own question:
> Since I'm sure that thepygmentscomponents 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 toldpygments
> 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?
Hi, had the same problem
But i found decision.
In Eclipse go to the Window->Prefences->Team->SVN -> Properties
configuration
and change the following settings:
File name template: *.java
svn:mime-type=text/x-java
In this part you can add any svn options for the specific file types.
This is works for me.
(But it's work only when file is added)
P.S. Sorry for my bad english
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---