Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP/JS Text Diff
    primarykey
    data
    text
    <p>First off, this is an exact duplicate of these four questions:</p> <ul> <li><a href="https://stackoverflow.com/questions/321294/highlight-the-difference-between-two-strings-in-php">Highlight the difference between two strings in PHP</a></li> <li><a href="https://stackoverflow.com/questions/3053587/javascript-based-diff-utility">JavaScript based diff utility</a></li> <li><a href="https://stackoverflow.com/questions/736771/how-to-do-text-diff-using-php">How to do text DIFF using PHP?</a></li> <li><a href="https://stackoverflow.com/questions/112523/calculate-text-diffs-in-php">Calculate text diffs in PHP</a></li> </ul> <p>It seems as though times have changed since these questions were first asked and I am wondering what is a good tool now-a-days for this sort of comparison? I have looked at (additionally to those questions):</p> <ul> <li><a href="https://github.com/nuxodin/diff_match_patch-php" rel="nofollow noreferrer">https://github.com/nuxodin/diff_match_patch-php</a></li> <li><a href="http://pear.php.net/package/Text_Diff" rel="nofollow noreferrer">http://pear.php.net/package/Text_Diff</a></li> <li><a href="https://github.com/paulgb/simplediff/blob/5bfe1d2a8f967c7901ace50f04ac2d9308ed3169/simplediff.php" rel="nofollow noreferrer">https://github.com/paulgb/simplediff/blob/5bfe1d2a8f967c7901ace50f04ac2d9308ed3169/simplediff.php</a></li> <li><a href="http://www.raymondhill.net/finediff/viewdiff-ex.php" rel="nofollow noreferrer">http://www.raymondhill.net/finediff/viewdiff-ex.php</a></li> </ul> <p>But all of the ones I get are either unmantained now or seem a little dodgy in that they are not used that much (and some even hint that they are not very performant) and the PEAR one worries me. I hate to install PEAR for one little module not only that but it seems like throwing a brick through my own window to install it for such a small module in comparison to PEAR in general not only that but the module has been superseded and placed on a different channel (dunno why?). I would use the PEAR version if it is my only choice but I want to use the upto date package.</p> <p>Does anyone know of a well used and currently maintained or built in function (even if it is a PHP extension) text diff for PHP and/or JavaScript (JQuery as well)?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload