Paste in material editor not working

I’m copied this code from my material editor and now when I press ctrl+v on a new material in the editor nothing happens.

Attached is the code that I’m using.

Any thoughts on what I might be doing wrong?
Material code

Hi!

Copy/Paste in Material Editor work properly for me. I think you not select all nodes, because your file contain whole structure of shader from Begin to End.

FIle: [test_copy.txt][1]

Try to copy/paste my example from link. It should look like this.

So I got the paste to work. Probably some issue in my Unreal installation because its working on my other machine.

Can this be used to create a new material in a UE4 plugin. I’m working on a plugin in which I want to edit a material. Is there some way to read this material text inside of UE4 and create a material using it?