Do you mean the two panes (before and after) that scroll together? I think most editors can do that. Vim has a diff view. So does VSCode.
You could fairly easily write a command line utility to view multiple files with headers and line numbers, using the normal utilities. You could add syntax highlighting with one of the command line syntax highlighting utilities. With a little more work you could do the same thing on a web page, like GitHub does.