How to color diffs in a patch-mail?

2016-06-20 Thread Matthias Beyer
Hi,

can someone tell me how to color diffs in a PATCH mail when viewing 
the mail contents with mutt?

Is it even possible?

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.


signature.asc
Description: PGP signature


Re: How to color diffs in a patch-mail?

2016-06-20 Thread Erik Christiansen
On 20.06.16 14:01, Matthias Beyer wrote:
> can someone tell me how to color diffs in a PATCH mail when viewing 
> the mail contents with mutt?
> 
> Is it even possible?

Dunno. Once a patch has been delivered, I figure we've left the email
world. But you could:

set editor=vim

hit 'e' on the email, and then use vim's syntax highlighting do go to
town. A google for "vim syntax diff" seems to throw up all sorts of
stuff, including mimicking the colours of a git diff.

Erik


Re: How to color diffs in a patch-mail?

2016-06-20 Thread Eric Wong
Matthias Beyer  wrote:
> can someone tell me how to color diffs in a PATCH mail when viewing 
> the mail contents with mutt?

I use the following:

color body  cyan black   ^[+].*$
color body  magenta black  ^-.*$

It's not perfect and highlights some things unnecessarily,
but it's enough for me.