Re: [viewvc-users] Support for 'highlight' in ViewVC 1.1.12?
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <4EB92788.1050806__2265.47430870614$1320757169$gmane$org@collab.net> |
John,
'highlight' integration remains (and will remain) in all the ViewVC 1.0.x
versions.
I can't claim any particular knowledge about how to amend Pygments' lexer
collection. Reading the page you mentioned, I'm not convinced that it's as
easy as dropping in a new Python module in a particular directory. At a
minimum, there's a recommendation to run the _mapping.py script found in the
pygments lexers directory. That script's comments seem to confirm as much:
$ head /var/lib/python-support/python2.6/pygments/lexers/_mapping.py
# -*- coding: utf-8 -*-
"""
pygments.lexers._mapping
~~~~~~~~~~~~~~~~~~~~~~~~
Lexer mapping defintions. This file is generated by itself. Everytime
you change something on a builtin lexer defintion, run this script from
the lexers folder to update it.
Do not alter the LEXERS dictionary by hand.
$
That said, I would strongly suggest that you work to improve the existing
lexer rather than replace it. And then, donate your improvements back to
the Pygment open source community so others can benefit, too!
On 11/07/2011 06:03 PM, John Pye wrote:
> Hi Michael
>
> Thanks for the reply. I found that Pygments doesn't do so well with
> Fortran code, and also I have some custom language code in my code
> repository that will require me to write a new syntax file. I'll have a
> look at how I can do this.
>
> Do you know if it's possible to 'drop in' new syntax definitions as
> files in a folder in Pygments, or do I have to rebuild/reinstall in
> order for the new syntax to be recognised. Seems to be some question
> about how that's done in their documentation.
>
> http://pygments.org/docs/lexerdevelopment/
>
> Just for the record, what was the last version of ViewVC that included
> the 'highlight' integration, can you recall?
>
> Thanks for all the hard work on continuing to support ViewVC!
>
> Cheers
> JP
>
> On 08/11/11 00:19, C. Michael Pilato wrote:
>> While developing ViewVC 1.1.0, I grew disillusioned by the sheer number of
>> markup-providing integrations ViewVC had, and the fact that not a one of
>> them had the same capabilities as any other one.
>>
>> So I started from scratch, tossing all the old integrations and introducing
>> a single markup integration with the Pygments Python-based syntax
>> highlighting engine. The resulting code simplicity has since allow me to
>> more easily unify the markup and annotate views, with an eye on providing
>> syntax coloration for diff view in the future, too.
>>
>> So, if you're looking specifically for 'highlight' integration, you won't
>> find it anymore. If you're looking for syntax coloration in general,
>> though, I can assure you it is there.
>>
>>
>> On 11/06/2011 06:27 PM, John Pye wrote:
>>> Hi all
>>>
>>> Reading through the viewvc.conf file with ViewVC 1.1.12, I can't see any
>>> mention of how to use the 'highlight' program (http://andre-simon.de/)
>>> with ViewVC any more. It used to be possible, but apparently not any more.
>>>
>>> Is there some way that someone knows to get this support back again?
>>>
>>> Cheers
>>> JP
>>>
>>> ------------------------------------------------------
>>> http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2874987
>>>
>>> To unsubscribe from this discussion, e-mail: [[email protected]].
>>
>
--
C. Michael Pilato <[email protected]>
CollabNet <> www.collab.net <> Distributed Development On Demand
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2876264
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) iEYEARECAAYFAk65J5AACgkQokEGqRcG/W5rYgCcDX2wP7y/b6fRErINSsGWNgYZ 7VwAn3IETF0XyQsZr4X3OGAx+qN9rJg8 =+ydB -----END PGP SIGNATURE-----