Thread
:
javascript variables not spanning more than one line
View Single Post
01-09-2009, 02:02 PM
#
2
Salathe
Status:
Community Archaeologist
Join date:
Jul 2004
Location:
Scotland
Expertise:
Software Development
Software:
vim, PHP
Posts:
3,820
iTrader:
25
/ 100%
If you end the lines with a backslash character, you can span multiple lines.
Code:
var someVar = 'One line \ two line \ Three lines and so on';
If you want newline characters, you'll have to add those in as well.
Salathe
View Public Profile
Visit Salathe's homepage!
Find More Posts by Salathe