Compare two Word Document files & Highlight duplicate sentences in .Net c#

Hi! I have two word file(FirstLection.doc and SecondLection.doc) . FirstLection has default address (D:\Documents\ FirstLection.doc). SecondLection.doc open by using button and open dialog in program. I want compare FirstLection and SecondLection files. After compare define equal sentence. If FirstLection sentence equal to SecondLection sentence then change color equal sentence SecondLection file. For example:

Input:

FirstLection text:

Technology is not only the light of the darkness way of our life but also the solution key of any problems and the improvement of our success. The touch of technology in the computer field is the surprising invention beyond our thinking. Today’s gift of the technology is amazing to us and it will be backdated tomorrow for the exponential improvement of technology. Computer technology is not only being improved by the year to year but also improving day to day and for that reason the real invention of present was limited in thinking in the yesterday and today’s imagination will also be real tomorrow. As computer is formed by the synchronized accumulation of its two fields like hardware and software, the technology is also keeping his contribution significantly in these two fields for also making the computer as the great performer.

SecondLection text:

The data storage capability of the computer is now limited to the megabyte and usually it extends to the gigabyte to terabyte and in this way modern computer is the world within a world. Hard disc, DVD discs and removal discs are such kinds of memory storage device those are now small in size and more capable than the before. Computer technology is not only being improved by the year to year but also improving day to day and for that reason the real invention of present was limited in thinking in the yesterday and today’s imagination will also be real tomorrow. With the advancement of computer technology the size of the computer is becoming smaller and more effective than the before. Technology is not only the light of the darkness way of our life but also the solution key of any problems and the improvement of our success.

Output result after compare two files:

The data storage capability of the computer is now limited to the megabyte and usually it extends to the gigabyte to terabyte and in this way modern computer is the world within a world. Hard disc, DVD discs and removal discs are such kinds of memory storage device those are now small in size and more capable than the before. Computer technology is not only being improved by the year to year but also improving day to day and for that reason the real invention of present was limited in thinking in the yesterday and today’s imagination will also be real tomorrow. With the advancement of computer technology the size of the computer is becoming smaller and more effective than the before. Technology is not only the light of the darkness way of our life but also the solution key of any problems and the improvement of our success.

@duongvinhlong064 I am afraid there is no built-in way to highlight similarities in the documents. The compare mechanism marks the differences using revisions. Please see our documentation to learn more about comparing documents:
https://docs.aspose.com/words/java/compare-documents/