You can save your text file with a ".tap" extension - just make sure stupid-windows doesn't then append a .txt on the end of that.

I thought in Mach3 (not used it for ages) that there's a drop-down for file-type, whilst it defaults to .tap you can open files with any extension.

And, yes, G-Code is just plain text.