On Thursday, 21 May 2015 23:42:49 UTC-4, RjOllos wrote: > > On Thursday, May 21, 2015 at 2:27:15 PM UTC-7, Tim Tisdall wrote: >> >> I was hoping to add syntax highlighting to repository browsing with >> tracgit. I found this article ( >> http://nanosleep.org/proj/trac-git-plugin/wiki/TracSyntaxColoring) >> saying to add GNU Enscript or SilverCity, but both seem to be dead >> projects. Bloodhound already has Pygments installed, but it doesn't seem >> to be highlighting code already in TracGit. >> >> Does anyone know how (or if) to get Pygments to add syntax highlighting >> to the code browser in TracGit? >> >> I've tried adding "text/x-python:py" to "mime_map" and >> "text/x-python:py:7" to "pygment_modes" with no success. >> > > Enscript and SilverCity are deprecated and have been removed on the trunk > for the upcoming Trac 1.2 release. Pygments is the replacement for both of > those syntax highlighters. > > With "TracGit" are you referring to Trac 1.0 and later built-in support > for Git repositories (1)? You should get Syntax highlighting throughout > Trac after installing Pygments and enabling trac.mimeview.* (or > trac.mimeview.pygments.*). It may be a Bloodhound issue in which case you > should ask on the Bloodhound mailing list (2). > > (1) http://trac.edgewall.org/wiki/TracGit > (2) https://issues.apache.org/bloodhound/wiki/BloodhoundContactInfo >
I did manage to get it working, I think the issue was the exception occurring with the newer version of Pygments. (mentioned in the other thread) -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.