Alternatives for red/green in diff output

时间:2017-08-04 13:14:37

标签: colors diff

I once read an article arguing that red and green are bad choices for diff, because

  • some people have red-green color blindness
  • red implies "bad" and green implies "good", but deleted code is often not bad and new code is also not always good.

However, I cannot remember where I found that article and which alternative colors were suggested.

What would be sensible alternative colors for red/green?

1 个答案:

答案 0 :(得分:0)

因为它还在这里 - 我会选择蓝色和红色。蓝色更中性,红色至少具有“删除”的含义。

相关问题