Compare text files with "misaligned" (missing/inserted) lines (with line numbering)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Teuntje
Junior Member
Junior Member
Posts: 5
Joined: 2024-06-30, 08:59 UTC

Compare text files with "misaligned" (missing/inserted) lines (with line numbering)

Post by *Teuntje »

I use this function a lot but there is one problem I can't seem to overcome:

When lines are starting with a line number and the lines are not aligned (missing or inserted lines) the comparison is of no use after that line. So my question is: is it possible to get the behavior like seen in for example this online comparison tool:

https://text-compare.com

Example of two files to compare:

1) car - ford
2) car - bmw
3) car - opel
4) car - vw
5) car - mercedes

1) car - ford
2) car - bmw
3) bike - gazelle
4) car - opel
5) car - vw

This line numbering doesn't pose a problem in the online comparison tool but it does in TC.
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Compare text files with "misaligned" (missing/inserted) lines (with line numbering)

Post by *petermad »

2Teuntje
Put:

Code: Select all

CompareSkipLineNumbers=1
in the [Configuration] section of your wincmd.ini file

Help wrote:CompareSkipLineNumbers=0 Compare by content:
1: Skip all digits at the start of each line until the first non-digit
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Teuntje
Junior Member
Junior Member
Posts: 5
Joined: 2024-06-30, 08:59 UTC

Re: Compare text files with "misaligned" (missing/inserted) lines (with line numbering)

Post by *Teuntje »

OMG! Thank you. That did the trick!
Post Reply