Multiline strings in JavaScript

Posted by: ComponentArt WebLogs, on 17 Oct 2007 | View original | Bookmarked: 0 time(s)

Myth: You can't have a string literal stretch across two lines of text in JavaScript.Fact: You can have multiline string literals in JavaScript in all browsers.Multiline (or is it "multi-line"?) strings are a fringe feature of programming languages. They are very rarely needed, so a lot of languages don't support them at all (VB.NET). And even when a language does support them (C#), most programmers are not even aware of that. How often have you seen something like this in real...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: JavaScript | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 3794 | Hits: 467

Similar Posts

  • A Lightweight Event Framework in JavaScript more
  • A Localization Handler to serve ASP.NET Resources to JavaScript more
  • Client Rendering Views with Spark and ASP.NET MVC more
  • Custom JSON Serialization in ASP.NET AJAX more
  • An Arbitrary Cycle Method For ASP.NET MVC more
  • JSON Serializers in .NET - not there yet more
  • Using the ClientAPI to retrieve safe JS strings for Localization in Gallery more
  • How to manage ASP.NET validation from Javascript with jQuery more
  • Why I Love F#: Type-safe Format Strings more
  • Multiline entry + default button = don't work in FF more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD