I want to compare two txt files line by line. I also want to show the differences with colored lines. Finally, I want to bold the letters or words that are different on each line.
Is this possible? Can you give me an idea to start somewhere?
I want to compare two txt files line by line. I also want to show the differences with colored lines. Finally, I want to bold the letters or words that are different on each line.
Is this possible? Can you give me an idea to start somewhere?
we are using http://jlibdiff.sourceforge.net for file diff indentifications, maybe it can help you as well
<dependency>
<groupId>jlibdiff</groupId>
<artifactId>jlibdiff</artifactId>
<version>1.01</version>
</dependency>
You needed a start, well here is one:
class) that represents one line with differences. It should hold the old and new line (to start with).JFrame and two JTextPane, which is made uneditable. Use Google to find out how to do the text formatting in a JTextPane.