Manual:$wgExternalDiffEngine

Details
Use external C++ diff engine (module wikidiff from the extensions package).