Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Lua
s = [[
Huey
Dewey
Louie
]]

Use double square brackets.
local s = "The quick brown fox \z
           jumped over the lazy dog.\
This the second line.  "

\ escapes the end of a line. \z *seems* to make it ignore the line end itself as well as any leading spaces. Couldn't find any docs for that, though.
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...