|
| |||||||||
| Tags: heredoc, javascript, syntax |
![]() |
| | 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. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "heredoc strings in javascript" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to use Strings in Python | Edmund-Windows | Software Development | 5 | 31-12-2010 06:25 AM |
| Strings in JavaFX | Messenger | Software Development | 3 | 16-07-2010 05:57 PM |
| Struct and Strings in C | Ash maker | Software Development | 5 | 05-04-2010 01:31 PM |
| 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 03:18 PM |