Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Lua
local s = "The quick brown fox \z
           jumped over the lazy dog.\
This the second line.  "

A backslash followed by a line break results in a newline in the string. The escape sequence '\z' skips the following span of white-space characters, including line breaks.
s = [[
Huey
Dewey
Louie
]]

Use double square brackets.
s = 'Huey \n'..
'Dewey \n'..
'Louie'

.. is the string concatenation operator
s : String := "Will this compile? " &
     "Oh yes it will";

I'm assuming this is what is meant by "consisting in several lines of text."

Use New_Line for line feeds.

New implementation...