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

Provide an HTML output option #45

Open
Wilfred opened this issue Oct 15, 2021 · 6 comments
Open

Provide an HTML output option #45

Wilfred opened this issue Oct 15, 2021 · 6 comments

Comments

@Wilfred
Copy link
Owner

Wilfred commented Oct 15, 2021

This would be valuable for exploring large files, as well as regression testing.

@Milo123459
Copy link

Hey! Anyway I can help out with this issue?

ap-nri pushed a commit to ap-nri/difftastic that referenced this issue Apr 1, 2022
@Mephistophiles
Copy link

Is the commit f442efa adding the ability to output html? Or is it a typo in the commit message?

@Niek
Copy link
Contributor

Niek commented Sep 7, 2022

See: #158
The JSON output can be used to generate a HTML page.

@Wilfred
Copy link
Owner Author

Wilfred commented Sep 9, 2022

Argh, commits from git subtrees are closing issues in this repo. This isn't done yet.

@Wilfred Wilfred reopened this Sep 9, 2022
@Wilfred Wilfred mentioned this issue Sep 9, 2022
@Milo123459
Copy link

Haha, are there any updates on this? I see you can generate HTML from the JSON, but is there a guide on it or something?

grunweg pushed a commit to grunweg/difftastic that referenced this issue May 5, 2023
@nazarewk
Copy link

nazarewk commented Oct 12, 2023

@Milo123459 see my example in Python

@Wilfred I have found a few shortcomings of the json output preventing it's use in real-life. The output itself is not enough to rebuild a diff without:

  1. reading source files, tracking down line locations and extracting their content,
  2. sorting diff entries properly (they are unordered within a chunk/block!)

Wilfred pushed a commit to Thecentury/difftastic that referenced this issue May 14, 2024
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

No branches or pull requests

5 participants