Forum > SynEdit

Compare two text lines and highlight difference

(1/7) > >>

totya:
Hi!

Is there any simple solution for compare two text lines and highlight difference with synedit?

If no, where am I start?

Thanks!

KodeZwerg:
It depend what you mean with difference.
Show exemplary what you mean.

Exemplary:
line1: AaBbCc
line2: AabBcC

Should now bBcC be highlighted in line2 or BbCc in line1 or is that not the thing you want at all?

Be more specific!

totya:

--- Quote from: KodeZwerg on February 08, 2023, 01:51:38 pm ---It depend what you mean with difference.
Show exemplary what you mean.
--- End quote ---

Normal text lines, for example (sorry my English):

This is a nice day, the sky is blue and wind blowing sun is rising.
This is a nice day with many kills, the sky is red and wind blowing sun is somwhere, because all dark here.

Zvoni:
Nested loops comparing words/tokens?

avk:

--- Quote from: totya on February 08, 2023, 02:01:23 pm ---...
This is a nice day, the sky is blue and wind blowing sun is rising.
This is a nice day with many kills, the sky is red and wind blowing sun is somwhere, because all dark here.

--- End quote ---

Maybe you need a Diff algorithm?

Navigation

[0] Message Index

[#] Next page

Go to full version