Auto-replace " with \" and \n with \\n\ when pasting into strings