“Lua Multiline Kommentar” Code-Antworten

Lua Multiline Kommentar

--[[ 
This
is
a
comment
on
many
different
lines!
]]--
Concerned Civet

Lua Multiline String

answer = [[
Multiline strings in Lua do not interpret escape sequences like \n.

When running over multiple lines the enters are included, only
when the first character is a newline it is ignored.

These strings can be nested with = signs between the brackets like 
multiline comments: [=[This would be a valid string too]=].
]] --> multiline string with trailing newline
anderium

Ähnliche Antworten wie “Lua Multiline Kommentar”

Fragen ähnlich wie “Lua Multiline Kommentar”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen