Posted: Mon Oct 29, 2007 2:02 am Compare two batches of text and return difference
Hi, I'm trying to figure out a way to compare two versions of the same text file from a database and to highlight the changes when viewing the text? Can anyone help me with this?
I can possibly get you started in the right direction, but don't have the time to work out the details. One option is to pick out some open source app that does what you're trying to do and see how it does it (Wikipedia's MediaWiki supports colored diffs when comparing historical versions of a page). The other way I can think of off hand is to use system to call diff, then parse the output. There may be a command line tool or PHP library to help parse diff's output.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum