Re: [viewvc-users] viewvc highlight with pygments
Alon Bar-Lev <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <CAOazyz1aUr=kO8+5dYp8fwQJ4nJw78fP8fPsRD2oeis47npSjA@mail.gmail.com> |
Thanks *A LOT*! It is not documented anywhere... invested much time in this... should asked earlier... I set the mime type in svn:mime-type property to text/x-csrc and it works! Ohhh!!! viewvc has its own mime type mappings!!! mime_types_files = /etc/mime.types Solved this issue. Thanks! Alon. On Wed, Sep 14, 2011 at 6:51 PM, C. Michael Pilato <[email protected]> wrote: > On 09/14/2011 10:14 AM, Alon Bar-Lev wrote: >> Hello, >> >> I am trying to use viewvc-1.1.11 with Pygments-1.4 and failing! >> >> To reduce the noise I am using viewvc as standalone server installed >> directly from the tarball. >> >> Using strace I can see that some files of pygments are accessed successfully. >> >> I don't see any log for viewvc so it is difficult for me to specify >> more information. >> >> Can anyone help, it should work out of the box, right? > > I suppose that depend on which box you're pulling from. :-) > > Are you running a ViewVC installed from the source distribution, or > something pulled in via your server's package management system? Our > Pygments integration uses MIME types to determine what kind of syntax to > expect in the given file -- are you making use of a MIME types mapping file > (the 'mime_types_files' configuration option) or have Subversion's > svn:mime-type property set on the files in question? > > -- > C. Michael Pilato <[email protected]> > CollabNet <> www.collab.net <> Distributed Development On Demand > > ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2838528 To unsubscribe from this discussion, e-mail: [[email protected]].