1010
1111A comprehensive library for generating diff between two strings.
1212
13-
1413## Introduction
1514
1615Generated diff can be rendered in all of the standard formats including:
@@ -34,13 +33,11 @@ You may modify one from `example/diff-table.css` or write your own from zero.
3433If you are okay with the default CSS, there is ` \Jfcherng\Diff\DiffHelper::getStyleSheet() `
3534which can be used to get the content of the ` example/diff-table.css ` .
3635
37-
3836## Requirements
3937
4038![ php] ( https://img.shields.io/badge/php-%E2%89%A57.1.3-blue?style=flat-square )
4139![ ext-iconv] ( https://img.shields.io/badge/ext-iconv-brightgreen?style=flat-square )
4240
43-
4441## Installation
4542
4643This package is available on ` Packagist ` by the name of [ jfcherng/php-diff] ( https://packagist.org/packages/jfcherng/php-diff ) .
@@ -49,7 +46,6 @@ This package is available on `Packagist` by the name of [jfcherng/php-diff](http
4946composer require jfcherng/php-diff
5047```
5148
52-
5349## Example
5450
5551See files and readme in the [ example/] ( https://github.com/jfcherng/php-diff/blob/v6/example ) directory.
@@ -150,10 +146,8 @@ $htmlRenderer = RendererFactory::make('Inline', $rendererOptions);
150146$result = $htmlRenderer->renderArray(json_decode($jsonResult, true));
151147```
152148
153-
154149## Rendered Results
155150
156-
157151### HTML Diff In-line Detailed Rendering
158152
159153<table >
@@ -175,7 +169,6 @@ $result = $htmlRenderer->renderArray(json_decode($jsonResult, true));
175169 </tr >
176170</table >
177171
178-
179172### Renderer: Inline
180173
181174``` php
@@ -184,7 +177,6 @@ $result = $htmlRenderer->renderArray(json_decode($jsonResult, true));
184177
185178![ Inline] ( https://raw.githubusercontent.com/jfcherng/php-diff/v6/example/images/inline-renderer.png )
186179
187-
188180### Renderer: Side By Side
189181
190182``` php
@@ -193,7 +185,6 @@ $result = $htmlRenderer->renderArray(json_decode($jsonResult, true));
193185
194186![ Side By Side] ( https://raw.githubusercontent.com/jfcherng/php-diff/v6/example/images/side-by-side-renderer.png )
195187
196-
197188### Renderer: Combined
198189
199190``` php
@@ -204,7 +195,6 @@ This renderer is suitable for articles and always has no line number information
204195
205196![ Combined] ( https://raw.githubusercontent.com/jfcherng/php-diff/v6/example/images/combined-renderer-word-level.png )
206197
207-
208198### Renderer: Unified
209199
210200About the ` Unified ` diff format: https://en.wikipedia.org/wiki/Diff#Unified_format
@@ -226,7 +216,6 @@ About the `Unified` diff format: https://en.wikipedia.org/wiki/Diff#Unified_form
226216 Say hello to my neighbors.
227217```
228218
229-
230219### Renderer: Context
231220
232221About the ` Context ` diff format: https://en.wikipedia.org/wiki/Diff#Context_format
@@ -262,7 +251,6 @@ About the `Context` diff format: https://en.wikipedia.org/wiki/Diff#Context_form
262251
263252</details >
264253
265-
266254### Renderer: Text JSON
267255
268256This renderer has no detailed diff.
@@ -436,7 +424,6 @@ This renderer has no detailed diff.
436424
437425</details >
438426
439-
440427### Renderer: HTML JSON
441428
442429For a ` "tag": "rep" (8) ` block, this renderer has HTML-style detailed diff.
0 commit comments