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.
Compare text files with "misaligned" (missing/inserted) lines (with line numbering)
Moderators: Hacker, petermad, Stefan2, white
Re: Compare text files with "misaligned" (missing/inserted) lines (with line numbering)
2Teuntje
Put:
in the [Configuration] section of your wincmd.ini file
Put:
Code: Select all
CompareSkipLineNumbers=1
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
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
Re: Compare text files with "misaligned" (missing/inserted) lines (with line numbering)
OMG! Thank you. That did the trick!