Anyone have a diff algorithm for rendered HTML?,
To clarify, I want to be able to see the side-by-side diffs as rendered output. So if I delete a paragraph, the side by side view would know to space things correctly.
@Josh exactly. Though maybe it would show the deleted text in red or something. The idea is that if I use a WYSIWYG editor for my HTML content, I don’t want to have to switch to HTML to do diffs. I want to do it with two WYSIWYG editors side by side maybe. Or at least display diffs side-by-side in an end-user friendly matter
There’s another nice trick you can use to significantly improve the look of a rendered HTML diff. Although this doesn’t fully solve the initial problem, it will make a significant difference in the appearance of your rendered HTML diffs.
Explained in a little more detail:
If you want to use this technique, run your diff algorithm and insert a bunch of
s or tiny
That’s the answer Anyone have a diff algorithm for rendered HTML?, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.
The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you