Projects / JS Diff Viewer

JS Diff Viewer

JS Diff Viewer is a library that can find and view the difference between two text strings. It takes two text strings, uses the diff algorithm to find the differences between them, and returns 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 can 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.

Tags
Licenses
Operating Systems
Implementation

Recent releases

  •  08 Nov 2013 06:49

    Release Notes: This release added support for finding the difference between the text strings in three modes: by character, by word, and by line.

    Screenshot

    Project Spotlight

    OpenStack4j

    A Fluent OpenStack client API for Java.

    Screenshot

    Project Spotlight

    TurnKey TWiki Appliance

    A TWiki appliance that is easy to use and lightweight.