+ 21
brain fade. just the most recent episode:).
I have tried putting \n in a text line using document.write. It's not outputting linebreaks. I'm doing something wrong for sure, it isnt an issue with the IDE. Could somebody tell me how to put carriage returns in please, thank you. Why would \n not be working?
7 Respostas
+ 30
Well I know it's solved but instead of \n use \r\n.
+ 20
thank you all. all fixed. I had used the <br> before like Tashi said. major brain fade.
+ 19
thank you Ram, i was trying to use escapes so your suggestion is very helpful!
+ 14
<br>
You are using it in your recently published code.
+ 5
web not my strongest but try inserting a break tag
I.e "split line after this <br> this is a new line"
+ 3
use '<br>'
+ 3
brain fade, hate it when that happens! occasionally i find myself drooling on my keyboard like I've had a stroke before I eventually Google the hell out of it because I can't even remember the words to explain it. eventually I find someone else who also asked "how do you do the thing with <insert language> when you want a thing to happen after trying to do that <command> and it errors like, you know, bad"... considering I usually find an answer it means it happens to all of us...or well enough of us to that it is posted deep in some forum on the net..