TSE: File: Compare: CmpBuffers.s version that accepts 2 filenames on disk as parameters and hightlights the word differences.

2 views
Skip to first unread message

knud van eeden

unread,
Mar 11, 2026, 12:44:43 PM (19 hours ago) Mar 11
to SemWare TSE Pro Text Editor, S.E. Mitchell
TSE: File: Compare: CmpBuffers.s version that accepts 2 filenames on disk as parameters and hightlights the word differences.

Hello,

2. Example: 

3. Create 2 files on disk:

 c:\temp\ddd1.txt

which contains this text:

This is a line of a file to be compared to a similar line in another file.

and 

 c:\temp\ddd2.txt

which contains this text:

This is a line of a file being compared to a similar line in another file.

4. Note: You must make sure that these 2 files are saved to disk, otherwise
you will not see the character differences as the TSE display is not refreshed, as thus the files are still in the old
state shown on he TSE screen.

5. Then run with ExecMacro() or 'menu' > 'Macro' > 'Execute'

    CmpBuffers "c:\temp\ddd1.txt" "c:\temp\ddd2.txt"

6. Additionally now also show character differences in the diff lines.

7. I asked the AI.

8. Starting from and uploading the file CmpBuffers.s as found in TSE 4.50.20 \mac\ directory
as a starting point.

7. Hereby the result only very briefly tested once.

with friendly greetings
Knud van Eeden


Inline image





Inline image

Inline image


Reply all
Reply to author
Forward
0 new messages