Re: [viewvc-users] viewvc highlight with pygments
Alon Bar-Lev <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <CAOazyz2oXMQKiig5zjQVbF9WmkpdDifCdrwpA6Q9OioDguoLFw@mail.gmail.com> |
Hello, When I looked as some more closely on the installation, I see you already modify some of the files during installation. So a minor suggestion: Add a parameter to viewvc-install allowing to specify system mime file, and set this as default in mime_types_files parameter. This way distro packagers may be able to specify their own system wide repository as default. Thanks! On Wed, Sep 14, 2011 at 9:51 PM, Alon Bar-Lev <[email protected]> wrote: > 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=2839189 To unsubscribe from this discussion, e-mail: [[email protected]].