I
I
Ilya Beloborodov2015-12-08 17:34:32
PHP
Ilya Beloborodov, 2015-12-08 17:34:32

How to highlight a change in text?

For example, there are two texts : the
first text
is "A hare came out of the fog, took out a knife from his pocket: I will cut, I will beat - with whom I will be friends"
The second text
"A hare came out of the fog, took out a carving knife for meat from his pocket: I will cut, I will beat - with whom will I be friends"
How to highlight the different text of the second option in relation to the first? It is necessary to wrap this piece of text, for example, in bold
"A hare came out of the fog, took out a carving knife for meat from his pocket: I will cut, I will beat - with whom I will be friends"
At the same time, there may be more than one changed sections. I will be happy with examples. Thanks in advance)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max, 2015-12-08
@AloneCoder

https://github.com/arnab/jQuery.PrettyTextDiff
jsfiddle.net/q7hyfev8/351

I
Ilya Beloborodov, 2015-12-08
@kowap

Maybe this will fit. When I get home I'll check https://github.com/paulgb/simplediff/blob/master/p...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question