Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 11-08-2009
Member
 
Join Date: Apr 2009
Posts: 32
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?
Reply With Quote
  #2  
Old 11-08-2009
Member
 
Join Date: May 2008
Posts: 2,293
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; \
}';
Reply With Quote
  #3  
Old 11-08-2009
Member
 
Join Date: Jan 2009
Posts: 199
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "heredoc strings in javascript"
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


All times are GMT +5.5. The time now is 02:34 AM.