Generate formatted diff output in Java

后端 未结 5 852
无人共我
无人共我 2020-12-09 09:53

Are there any libraries out there for Java that will accept two strings, and return a string with formatted output as per the *nix diff command?

e.g. feed in

<
5条回答
  •  孤城傲影
    2020-12-09 10:09

    Busybox has a diff implementation that is very lean, should not be hard to convert to java, but you would have to add the two-column functionality.

提交回复
热议问题