You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.
It would be great if the <del> </del> and <ins> </ins> tags can be over ridden; it would also be nice then if the function name would change to something like renderDiffToMarkup.
This is very useful if one wants to create entries that include styling within the tag and not in css , or even use it for non html , such as generating svg or other XML or non XML markup documents.
The text was updated successfully, but these errors were encountered:
$opcodes = FineDiff::getDiffOpcodes($from_text, $to_text);
$callback = function ($opcode, $from, $from_offset, $from_len) {
$fragment = substr($from, $from_offset, $from_len);
if ($opcode == 'd') {
// do something with removed fragment
}
elseif ($opcode == 'i') {
// do something with inserted fragment
}
else {
// do something with copied fragment
}
};
FineDiff::renderFromOpcodes($from_text, $opcodes, $callback);
It would be great if the <del> </del> and <ins> </ins> tags can be over ridden; it would also be nice then if the function name would change to something like renderDiffToMarkup.
This is very useful if one wants to create entries that include styling within the tag and not in css , or even use it for non html , such as generating svg or other XML or non XML markup documents.
The text was updated successfully, but these errors were encountered: