Re: [viewvc-users] Objective-C Syntax Highlighting w/Pygments not Working

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <4A15613D.7010000__15478.1232391999$1242915188$gmane$org@collab.net>
[email protected] wrote:
> I just upgraded to ViewVC 1.1.0, and installed the latest version of
> Pygments as a requirement.  However, I've found that the view/annotate of
> an Objective-C ".m" source code file does not result in syntax
> highlighting (or at least not anywhere near an acceptable/correct
> highlighting).  The Pygments website indicates Objective-C is supported,
> so I'm wondering if I need to do something special with the ViewVC and/or
> Pygments configuration to get this to work?

Looks like Pygments is looking for files that have the "text/x-objective-c"
mime-type.  If no mime-type is set or calculated (or if the mime-type
doesn't map to a Pygments lexer engine), it falls back to looking for
filenames that match "*.m".  Are you able to determine what mime type is
being used for your files?

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2349995

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoVYUQACgkQokEGqRcG/W4wQACgwMO6akTuSsLkPfPm45ARd/HV
sH8An1HYiZ8uQN5eBtcaAKwBdKEhKI0d
=l1I2
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.