kpdecker / jsdiff

A javascript text differencing implementation.
BSD 3-Clause "New" or "Revised" License
8.04k stars 499 forks source link

Getting text dif with line numbers #519

Open jkavalec opened 4 months ago

jkavalec commented 4 months ago

I would like do display line numbers before each line I output, is there any way to achieve this within library, without making custom implementation of this behavior?

ThomasHambach commented 4 months ago

You probably want to use this with another library. Somethin like https://diff2html.xyz/