We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there, awesome gem - thank you!
I'd like to store my diffs in a DB as plain text diffs to make them smaller, more portable, etc. This part is easy.
But then, I'd like to pull them out of the DB and display them as HTML - basically with the same output as
Diffy::Diff.default_format = :html
Would give me. I don't want to redo the diff (the info that created the diff is gone at this point).
Maybe something like
Diffy::Diff.convert(stored_diff).to_s(:html)
Seems like I might be missing something or someone else might have solved this problem.
Right now, I am storing the diff as HTML but that wouldn't be as cool b/c later I'd have to strip out the html to display it in a txt environment.
Much thanks!
The text was updated successfully, but these errors were encountered:
You might be able to do this by invoking the HTML formatter directly.
Something like: Diffy::HtmlFormatter.new(myDiff)
Diffy::HtmlFormatter.new(myDiff)
Sorry, something went wrong.
No branches or pull requests
Hi there, awesome gem - thank you!
I'd like to store my diffs in a DB as plain text diffs to make them smaller, more portable, etc. This part is easy.
But then, I'd like to pull them out of the DB and display them as HTML - basically with the same output as
Diffy::Diff.default_format = :html
Would give me. I don't want to redo the diff (the info that created the diff is gone at this point).
Maybe something like
Diffy::Diff.convert(stored_diff).to_s(:html)
Seems like I might be missing something or someone else might have solved this problem.
Right now, I am storing the diff as HTML but that wouldn't be as cool b/c later I'd have to strip out the html to display it in a txt environment.
Much thanks!
The text was updated successfully, but these errors were encountered: