Click here to Skip to main content
15,936,709 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi all,
I want compare two word or two txt documents and want to show the changes in textarea how to implement this? thanks in advance
Jameel VM 19-Aug-13 1:47am    
did you try anything?Please provide more information.
Member 9762654 19-Aug-13 2:05am    
yes i tried by using csdiff which compares two files and show differences its working fine in localhost but from remote its not working
Sergey Alexandrovich Kryukov 19-Aug-13 1:56am    
...Besides, you should define what is "difference". This is not as trivial as it may seem.
Also, if you want to use text box, it means that you will have to ignore formatting, simply because it's difficult to show formatting differences in a plain-text text box. Or you don't want to ignore it? This is not so easy to specify.
Member 9762654 19-Aug-13 2:03am    
i have two text documents i want to compare those documents and show differences to the user and I dont want to remove formatting
Sergey Alexandrovich Kryukov 19-Aug-13 2:12am    
You said "word or text", that is, not quite text. And you still did not define "differences". If you think about it, you will see that it is not trivial at all.

1 solution

Share this answer
Sergey Alexandrovich Kryukov 19-Aug-13 1:59am    
It is not applicable to MS Word. More importantly, the problem is not well defined; please see my comment to the question.
Member 9762654 19-Aug-13 1:59am    
can i use this for web application? because i have used an exe called csdiff in localhost its working fine but after website is hosted csdiff is not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900