-
-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
questionJust asking some questionsJust asking some questions
Description
Hi and thanks for your great library. I have a problem with long texts comparisons.
I have these configs:
// the Diff class options
$differOptions = [
'context' => Differ::CONTEXT_ALL,
'ignoreCase' => false,
'ignoreLineEnding' => false,
'ignoreWhitespace' => false,
'lengthLimit' => 200000,
'fullContextIfIdentical' => false,
];
// the renderer class options
$rendererOptions = [
'detailLevel' => 'word',
'language' => 'eng',
'lineNumbers' => false,
'separateBlock' => false,
'showHeader' => false,
'spacesToNbsp' => false,
'tabSize' => 4,
'mergeThreshold' => 0.8,
'cliColorization' => RendererConstant::CLI_COLOR_AUTO,
'outputTagAsString' => false,
'jsonEncodeFlags' => \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE,
'wordGlues' => [' ', '-'],
'resultForIdenticals' => null,
'wrapperClasses' => ['diff-wrapper '],
];
$rendererName = 'Combined';
$result = DiffHelper::calculate($old, $new, $rendererName, $differOptions, $rendererOptions);
And I wanted to compare these 2 texts:
When the context set to Differ::CONTEXT_ALL it will not show the full text on the result.
I need to see the removed sentences and added sentences and also modified sentences too.
I need to have a result like this. Can you help me?
I've attached my result at the end of the issue too.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionJust asking some questionsJust asking some questions

