Skip to content

Support inline text diffing #4

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

Open
jonnor opened this issue Jul 15, 2016 · 0 comments
Open

Support inline text diffing #4

jonnor opened this issue Jul 15, 2016 · 0 comments

Comments

@jonnor
Copy link
Collaborator

jonnor commented Jul 15, 2016

Right now we emit one-line-per-change, basically without any formatting. This is OK for when there is no formatting capabilities, like when output is redirected to a file. However it is hard to see context, like grouping etc.

Might be better to basically render the new state of the graph FBP-like, but have red-colored parts, and green-colored for additions compared to the old state. Basically similar to git diff --word-diff=color

This renderer should support both consoles (using control characters), and HTML (using CSS). Thinking initially that CSS should be inlined. Though should possibly use semantic class-names from the get-go.

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

No branches or pull requests

1 participant