Macro Editing

I'm getting into more advanced macros. (For me anyway). If I see a copy of a macro in a tutorial and cut and paste that into Notepad (to 'clean' it to plain text), is there a way I can paste this into the macro editor. And vice versa, can I copy the macros contents to another app?