Quote:
Originally Posted by Digital Jedi
Also yes, I think this would be primarily used for JavaScript blocks, and possibly CSS in rare cases. So '"$\'" makes sense. Is there any instance where I'd want to prevent the insertion of newline?
|
Not that I can think of, it's just a matter of what would be more convenient. But like I added above, I can't think of any reason that you'd want to allow a newline character to be inserted, so I think it might be better to escape backslashes so that it's easier to use the backslash character in javascript.
BTW, someone asked about this in the past so I've thought about it, but I don't have experience with it so this is all kind of theoretical.