Colored diff on the Command line

If you wanted your diff output to be colored you have three options

  1. Use a verison control program that outputs colored diff output

    git diff --color=always old-file new-file | less -R
    
    note:Mercurial does not allow you to run its hg diff outside of a repository
  2. Use a text editor …

more ...