colordiff is a wrapper for diff and produces the same output as diff but with coloured syntax highlighting at the command line to improve readability.
The output is similar to how a diff-generated patch might appear in Vim or Emacs with the appropriate syntax highlighting options enabled.
The colour schemes can be read from a central configuration file or from a local user ~/.colordiffrc file.
colordiff makes use of ANSI colours and as such will only work when ANSI colours can be used – typical examples are xterms and Eterms, as well as console sessions. You can pipe the output to ‘less’, using the ‘-R’ option.
Use colordiff wherever you would normally use diff, or instead pipe output to colordiff. Diffs generated by Subversion are recognised, in addition to plain diffs and CVS diffs.
There’s support for side-by-side diffs, Wdiff colourising, and dark colours.
Website: www.colordiff.org
Support: Mailing List, GitHub Code Repository
Developer: Dave Ewart
License: GNU General Public License v2.0

colordiff is written in Perl. Learn Perl with our recommended free books and free tutorials.
Return to Console-Based Diff Tools Home Page
Popular series | |
---|---|
![]() | New to Linux? Read our Linux for Starters series. We start right at the basics and teach you everything you need to know to get started with Linux. |
![]() | The largest compilation of the best free and open source software in the universe. Each article is supplied with a legendary ratings chart helping you to make informed decisions. |
![]() | Hundreds of in-depth reviews offering our unbiased and expert opinion on software. We offer helpful and impartial information. |
![]() | Replace proprietary software with open source alternatives: Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle, Atlassian, Corel, Cisco, Intuit, and SAS. |
![]() | Getting Started with Docker helps you master Docker, a set of platform as a service products that delivers software in packages called containers. |
![]() | Essential Linux system tools focuses on small, indispensable utilities, useful for system administrators as well as regular users. |
![]() | Linux utilities to maximise your productivity. Small, indispensable tools, useful for anyone running a Linux machine. |
![]() | Home computers became commonplace in the 1980s. Emulate home computers including the Commodore 64, Amiga, Atari ST, ZX81, Amstrad CPC, and ZX Spectrum. |
![]() | Now and Then examines how promising open source software fared over the years. It can be a bumpy ride. |
![]() | Linux at Home looks at a range of home activities where Linux can play its part, making the most of our time at home, keeping active and engaged. |
![]() | Linux Candy reveals the lighter side of Linux. Have some fun and escape from the daily drudgery. |
![]() | Best Free Android Apps. We showcase free Android apps that are definitely worth downloading. There's a strict eligibility criteria for inclusion in this series. |
![]() | These best free books accelerate your learning of every programming language. Learn a new language today! |
![]() | These free tutorials offer the perfect tonic to our free programming books series. |
![]() | Stars and Stripes is an occasional series looking at the impact of Linux in the USA. |