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 | <4E70EACF.8010903__22162.1580575176$1316023004$gmane$org@collab.net> |
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=2838558 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) iEYEARECAAYFAk5w6s8ACgkQokEGqRcG/W7bUQCfYqwhcgtMJWiBSD5IxR4tsNVo K5AAnRvZZdaXyQia7PE9g3eoTD/HfUst =frOq -----END PGP SIGNATURE-----