简体   繁体   中英

visually show diff output in a java program

I am currently developing a java program where I need to show the difference between two text. Is there any library available for visually show the difference, that is the diff output in my java program or how can I do so. Any suggestion will be very helpful for me.

I would go for netbeans diff api.

From the later url:

在此输入图像描述

Although not a visual implementation, you also have a translation of gnu diff in java .

JMeld is a library http://keeskuip.home.xs4all.nl/jmeld/ we have used successfully in our smartGENERATOR product.

The latest version 2.1 is available via * http://sourceforge.net/projects/jmeld/

JMeld 2.1 is available on the central maven repository http://search.maven.org/#artifactdetails|org.jmeld|jmeld|2.1|jar

<dependency>
    <groupId>org.jmeld</groupId>
    <artifactId>jmeld</artifactId>
    <version>2.1</version>
</dependency>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM