Releases: jfcherng/php-diff
Releases · jfcherng/php-diff
6.4.5
-
CSS: Make empty table cells have normal height.
-
CSS: Nonexistenet lines in SideBySide are shown as stripes.
This change also reverts "Merge SideBySide insert/delete/equal columns when lineNumbers is false."
since stripes are quite distinguishable. And it's more consistent to most diff softwares. -
Add a new constant: Differ::CONTEXT_ALL, which can be used for the
context
differ option
to show the whole source text in the output diff. (#8)It's just a large integer without possible overflow during calculation.
6.4.4
6.4.3
6.4.2
6.4.1
6.4.0
6.3.2
6.3.1
6.3.0
- Allow rendering HTML result with the JSON result. (#17)
// use the JSON result to render in HTML
$jsonResult = DiffHelper::calculate($old, $new, 'Json'); // may store the JSON result in your Database
$htmlRenderer = RendererFactory::make('Inline');
$result = $htmlRenderer->renderArray(json_decode($jsonResult, true));