JS Diff Viewer: Find and view the difference between text strings

Recommend this page to a friend!
     
  Info   View files Files   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 70%Total: 282 All time: 160 This week: 4Up
Version License JavaScript version Categories
diff 1.0.2BSD License1.0HTML, Text processing
Description 

Author

This object is a library can find and view the difference between two text strings.

It takes two text strings and uses the diff algorithm to find the differences between them and return a list of changes to patch the original string to become the final string

The patch list shows which characters are added or removed to change one string into the other.

The difference between the text strings may be computed in three modes: by character, by word or by line.

The object may also format the strings to view them as HTML showing which characters are added and removed with special insertion and deleted styles.

The example page works as a tool to interactively view the changes as the user changes the texts before and after the changes are applied.

The object can also patch the original string using the patch list to regenerated the changed string.

Picture of Manuel Lemos
  Performance   Level  
Name: Manuel Lemos <contact>
Classes: 11 packages by
Country: Portugal Portugal
Age: 55
All time rank: 21 in Portugal Portugal
Week rank: 6 Down1 in Portugal Portugal Equal

  Files folder image Files (3)  
File Role Description
Plain text file diff.js Class Diff object
Accessible without login Plain text file README.md Example Basic instructions
Accessible without login Plain text file testDiff.html Example Example page to show the difference between two texts

 Version Control Unique User Downloads Download Rankings  
 100%
Total:282
This week:0
All time:160
This week:4Up
User Ratings User Comments (2)
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:13
 
Amazing!!! thanks
1 year ago (Rodrigo Medina Zem)
70%StarStarStarStar
Magic matey - thanks!
8 years ago (Eddie S)
70%StarStarStarStar