INSPINIA | Diff

## Text Diff

##### Diff plugin

jQuery.PrettyTextDiff

A wrapper around Google's diff_match_patch library.
You can run diff on existing text by adding class `original` and `changed` and add element that compares text. Or you can pass text as a param of function. See example below.

### Standard example

#### Oryginal text

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only centuries, but also the leap into electronic typesetting.

#### Changed text

Lorem Ipsum is simply typesetting dummy text of the printing and has been the industry's typesetting. Lorem Ipsum has been the industry's standard dummy text ever the 1500s, when an printer took a galley of type and simply it to make a type. It has survived not only five centuries, but survived not also the leap into electronic typesetting.

#### Diff results

### As a function param

Diff will run after textarea will change. So feel free to play with it to see Diff results.

#### Oryginal text

Lorem Ipsum is simply printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text eve

#### Diff results

#### New text

Ting dummy text of the printing and has been the industry's typesetting. Lorem Ipsum has been the industry's