You can edit the hosts file with any text editor. There are a variety available, but both Windows 10 and 11 come with Notepad ...
You might want to open two files in two separate windows to compare them. Also, if you want to edit two files simultaneously, you need to open them separately. That is why you can change Notepad ...