How to put a code in the material editor?

How can I put this code (Shader - Shadertoy BETA) into the material editor?

Take a look at this thread:
Copying a .txt into a material? - UE4 AnswerHub :slight_smile:

"Open the file, select everything, copy it and then paste it into the new material you have created. "

[USER=“3613672”]Ming Ning[/USER] would it work if it was a mat file used with UE3