|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
heredoc strings in javascript Is that possible to use a heredoc type string syntax in javascript. I'm trying to create a variable where returns, multiple values. Is there a way to include multiple values in javascript with a heredoc structure like in Perl/PHP? |
#2
| |||
| |||
Re: heredoc strings in javascript To Breaking up the string you need to put in a backslash.... var style = ' .calendar { \ font-size:10px; \ font-family:bitstream, verdana, boldl; \ background-color:blue; \ width:186px; \ }'; |
#3
| |||
| |||
Re: heredoc strings in javascript A third way to delimit strings is the heredoc syntax: <<<. A here document (also called a here-document, a heredoc, or a here-string) is a way of specifying a string literal in command line shells such as Bash, Windows PowerShell and the Bourne Shell, as well as programming languages such as Perl, PHP, Python and Ruby.After <<< operator, an identifier is provided, then a newline. The string itself follows, and then the same identifier again to close the quotation. |
![]() |
|
Tags: heredoc, javascript, syntax |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Difference between two strings | Aman 1 | Software Development | 5 | 03-12-2013 11:59 AM |
Files and strings in C | An1990 | Software Development | 2 | 10-05-2012 10:11 PM |
How to use Strings in Python | Edmund-Windows | Software Development | 5 | 31-12-2010 06:25 AM |
How to Compare Two Strings in C | Pratim | Software Development | 3 | 28-12-2009 11:10 AM |
Array of Strings in C++ | Jaden | Software Development | 3 | 25-10-2008 02:18 PM |