Programmer here. Everything is possible. It must be programmed... Normally, I use Total Commander for comparing files. There I can enter edit mode and copy lines from one window to the other. That is very comfortable. But I can't easily use Total Commander when I want to compare the file that I am editing with the latest version on disk.
-- <https://forum.pspad.com/read.php?2,76262,76441> PSPad freeware editor https://www.pspad.com