显示差异在一行中的差异 [英] showing differences within a line in diff output

查看:99
本文介绍了显示差异在一行中的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此StackOverflow答案有一个突出显示行内差异的KDiff3图像。有人知道在命令行上可以显示相同内容(例如,通过颜色显示)的工具吗?

This StackOverflow answer has an image of KDiff3 highlighting intra-line differences. Does someone know of a tool which can show the same (ex, via color) on the command line?

另一种想到这一点的方法是想区分每个差异

Another way to think of this is wanting to diff each difference in a patch file.

推荐答案

我不知道这是否足以满足您的需求,但是 vimdiff 可以做到这一点(即使是彩色也可以)。例如,请参见相关问题

I don't know if this is sufficiently command line for your purpose, but vimdiff can do this (even does colour). See for example the image in this related question.

这篇关于显示差异在一行中的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆