multi line comment lua code example

Example 1: lua multiline comment

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

Example 2: how to comment multiple lines in lua

Comment one line -

-- stuff here

Comment multiple lines

--[[ stuff
here --]]

Example 3: lua comments

-- Inline Comments
--[[ text ]]-- Block Comments

Example 4: lua comments

-- print("An inline comment starts with --")

--[=====[
  Multiline comments are enclosed in --[[double square brackets]]
  and can be nested by placing = signs between the brackets
]=====]

---[[
print("Quickly toggle code block comments with a third - at the start")
--]]

Tags:

Lua Example