When developing I often save the whole stack with an increasing version number. When going back to a previous version it can be hard to detect the differences between two versions.
There are probably many solutions out there to tackle this problem.
I used the diff library that is included in LC since version 9 to make a GitHub style diff that helps to show the differences.
This might also be useful to others. Click on the question mark to see a help text.
Kind regards
Bernd
Compare versions of Scripts using Diff Library
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Compare versions of Scripts using Diff Library
- Attachments
-
- Find Differences in code_0.4.livecode.zip
- (7.78 KiB) Downloaded 45 times
-
maxwellhart89
- Posts: 1
- Joined: Fri Apr 03, 2026 7:35 am
Re: Compare versions of Scripts using Diff Library
That’s a useful approach, especially for tracking script changes across stack versions. Does your diff also handle object properties and UI changes, or mainly code differences?
Re: Compare versions of Scripts using Diff Library
Bernd.
Oooh. Will check this out.
Craig
Oooh. Will check this out.
Craig
Re: Compare versions of Scripts using Diff Library
The stack has 2 fields where you put the scripts to compare. You can use the whole scripts with all handlers and put them into their fields ("old" and "new"). If you put two completely different texts the diff can take a long time and you might want to interrupt it with command + ".".
The stack does not check whole stacks or anything else you want to compare.
Kind regards
Bernd
The stack does not check whole stacks or anything else you want to compare.
Kind regards
Bernd
