Hi,
you should be editing lines of g-code in notepad or wordpad and then loading them into mach3, if you then click on the edit-g-code button the code will be displayed in notepad.
MDI is only for entering single lines of g-code to be executed immediately after pressing the enter key.
Graham