Comment by dheera
You can paste the file as a base64 string. Disable word wrap and it should only appear as one line.
A good text editor of the future should recognize these base64 strings and make them appear like clickable files, but still let you right-click and go back to the plain text representation.