You could type something in to the repl then add it to a file later.
There was a structure editor that worked on the s-expression of a function, including any comments as they were represented as a special form within that structure.
(* This is a comment)
[1] https://www.mirrorservice.org/sites/www.bitsavers.org/pdf/xe...