Metagrapher
0
Q:

Lua how to comment

--[[ The comment starts like this

	and ends like this --]]
3
-- Inline Comments
--[[ text ]]-- Block Comments
2
-- One line comment

--[[ Multiple 
     line
	 comment --]]
1
-- Your comment here
2
-- 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")
--]]
1
Comment one line -

-- stuff here

Comment multiple lines

--[[ stuff
here --]]
1

New to Communities?

Join the community