Using Custom Nodes in UE4 - Tips & Links - Shaders - Tech-Artists.Org
Do all your work in a real text editor, then paste it into the custom node - Steve Theodore
https://www.youtube.com/watch?v=HaUAfgrZjlU