1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 18:55:24 +02:00
tldr/pages/common/colordiff.md
Lena 0fddee2272
pages/*: reword descriptions to comply with the style guide (#11507)
* pages/*: reword descriptions to comply with the style guide

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-11-15 09:55:25 +05:30

527 B

colordiff

A wrapper around diff that produces the same output but with pretty syntax highlighting. Color schemes can be customized. More information: https://github.com/kimmel/colordiff.

  • Compare files:

colordiff {{file1}} {{file2}}

  • Output in two columns:

colordiff -y {{file1}} {{file2}}

  • Ignore case differences in file contents:

colordiff -i {{file1}} {{file2}}

  • Report when two files are the same:

colordiff -s {{file1}} {{file2}}

  • Ignore whitespace:

colordiff -w {{file1}} {{file2}}