Skip to content

Conversation

recurrence
Copy link

Dual Pane view is a popular diff format. This change adds support for dual pane view via the diff function diff_dual_pane.

A dual pane diff returns two key-pairs. The 'before' key's value is the before input with deletions. The 'after' key's value is the after input with insertions.

Sample usage:
diff = require('./htmldiff.js');
console.log(diff.diff_dual_pane('input text', 'input texts'));

Single Token Scripts
The parser is entering into script tags. Javascript in these tags is getting mangled by the inclusion of html span tags to highlight differences. This change makes scripts single tokens for the purposes of diffing.

@enkodellc
Copy link

+1 Great Job
http://plnkr.co/edit/D5eqJdA0d6r1A3L75U8r?p=preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants