Re: [viewvc-users] viewvc highlight with pygments
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
Sounds like a good idea, but maybe you could help me understand something. What about the current codebase stands in the way of a distro packager doing the right thing? I know nothing of how packager do what they do, but I assume that a distro-provided version of ViewVC doesn't run viewvc-install anyway -- that would be run by the package maintainer in order to build a static tree which is then packaged. Why couldn't the package maintainer preemptively modify the viewvc.conf file that their package provides to point to the mime.types file for their target platform? On 09/15/2011 06:32 AM, Alon Bar-Lev wrote: > 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 >>> >>> >> -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Distributed Development On Demand ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2839223 To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk5yBYYACgkQokEGqRcG/W4DugCghs/22gjPXA+aVnEPAoBUxzdK B6UAn1hikwnyB1TA0JmWyc6kPRgCv6uR =SIj/ -----END PGP SIGNATURE-----