How to color diffs in a patch-mail?
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?
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?
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.