Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dual Pane Support and Single Token Scripts #3

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

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