A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.
6 added 464 characters in body
source | link

Alternative forms that work

You can use diff to do the generation of differences and then pipe the output to colordiff afterwards.

$ echo "123" | diff -u <(echo "123") - | colordiff

I found this in daveewart's fork/branch of colordiff, available here on github. There are a fairly large number of other forms that you can call colordiff, perhaps one of those would suit your needs.

Alternative forms that work

You can use diff to do the generation of differences and then pipe the output to colordiff afterwards.

$ echo "123" | diff -u <(echo "123") - | colordiff

I found this in daveewart's fork/branch of colordiff, available here on github. There are a fairly large number of other forms that you can call colordiff, perhaps one of those would suit your needs.

5 added 248 characters in body
source | link

Development branch of colordiff

I found this on github, kimmel/colordiff. Looks to be a newer version which handles STDIN better, in my cursory glance at the source.

Development branch of colordiff

I found this on github, kimmel/colordiff. Looks to be a newer version which handles STDIN better, in my cursory glance at the source.

4 added 142 characters in body
source | link

I think the bottom line here is that colordiff is not equipped to take input via STDIN (-), it's only designed to take input from files.

Searching there are several bugs filed regarding the lack of this feature:

I think the bottom line here is that colordiff is not equipped to take input via STDIN (-), it's only designed to take input from files.

Searching there are several bugs filed regarding the lack of this feature:

3 added 1251 characters in body
source | link
2 added 151 characters in body
source | link
1
source | link