Logo

Programming-Idioms

History of Idiom 48 > diff from v23 to v24

Edit summary for version 24 by programming-idioms.org:
[Lua] +DocURL

Version 23

2016-08-13, 22:05:27

Version 24

2016-10-04, 14:21:45

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Extra Keywords
multiline raw
Extra Keywords
multiline raw
Code
s = [[
Huey
Dewey
Louie
]]
Code
s = [[
Huey
Dewey
Louie
]]
Comments bubble
see the demo for more on long bracket
Comments bubble
Use double square brackets.
Doc URL
https://www.lua.org/pil/2.4.html
Demo URL
http://codepad.org/8NaUhrTF
Demo URL
http://codepad.org/8NaUhrTF