Re: [viewvc-users] viewvc highlight with pygments
Alon Bar-Lev <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <CAOazyz2_FGQxvaiRKrF0nQwKFhhEv9hTMeaK4rFg7iYTQZyLsg@mail.gmail.com> |
Thank you! On Wed, Sep 14, 2011 at 8:56 PM, C. Michael Pilato <[email protected]> wrote: > On 09/14/2011 12:22 PM, Alon Bar-Lev wrote: >> Thanks *A LOT*! >> It is not documented anywhere... invested much time in this... should >> asked earlier... > > It was only as I was replying to your original mail that it occurred to me > how ill-documented the MIME-type dependency of the Pygments integration is. > I've tweaked the viewvc.conf template to hopefully make this a little more > clear now: > > ## enable_syntax_coloration: Should we colorize known file content > ## syntaxes? > ## > ## NOTE: This feature requires the Pygments Python module > ## (http://pygments.org) and works only when ViewVC can determine the > ## MIME content type of the file whose contents it wishes to colorize. > ## Use the 'mime_types_files' configuration option to specify MIME > ## type mapping files useful for making that determination. > ## > #enable_syntax_coloration = 1 > > Sorry that you had a bit of a run-around trying to figure this out yourself. > > -- > C. Michael Pilato <[email protected]> > CollabNet <> www.collab.net <> Distributed Development On Demand > > ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2838569 To unsubscribe from this discussion, e-mail: [[email protected]].