[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: color coded diff viewer

From: Matt Pounsett <matt.pounsett_at_cira.ca>
Date: 2004-10-30 04:36:24 CEST

On Oct 29, 2004, at 18:35, v4r4n wrote:

>> svn diff foo.c | vim -R -
>
> While I like those colors better than the emacs 'greys', keywords like
> 'int' 'static' 'if' 'else', function names, strings, and comments
> still aren't recognized and color coded as if I was viewing a plain .c
> file.

That's because you aren't viewing a C file.. you're viewing a diff.
The syntax highlighting is geared towards that. If you want to combine
them, you'd have to somehow write a syntax definition that can identify
when you're looking at a diff of C code, and highlight appropriately.
Probably not worth the effort, but that's up to you.

Matt Pounsett Canadian Internet Registration Authority
Technical Support Programmer 350 Sparks Street, Suite 1110
matt.pounsett@cira.ca Ottawa, Ontario, Canada
613.237.5335 ext. 231 http://www.cira.ca

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Oct 30 04:36:53 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.