lahwaacz / wiki-scripts

Framework for writing bots, maintenance scripts or performing data analysis on wikis powered by MediaWiki
http://lahwaacz.github.io/wiki-scripts/
GNU General Public License v3.0
27 stars 12 forks source link

Use more powerful diff engine #14

Closed lahwaacz closed 9 years ago

lahwaacz commented 9 years ago

Provide an option for side-by-side diff (not supported by python's difflib) and highlight changed words differently than changed lines.

The diff-patch-match lib seems powerful, there is a snippet for side-by-side diff (without highlighting): http://code.activestate.com/recipes/577784-line-based-side-by-side-diff/

lahwaacz commented 9 years ago

WikEdDiff is now used as the default diff engine and highlighter, which solves this issue. Support for other engines may be added in the future.