I wonder if your INI file library could help to implement this feature. More details - https://github.com/WinMerge/winmerge/discussions/1975