Bug for Codes

After writing a long comment in the code, selecting it, hold on the “” - symbol there you will see that you can mark all as comment. Then if you see oh this comment has to be away, and do it again, there will be another comment parameter

--[[
line 1 COMMENT
--[[
line 2 COMMENT
]]
line3 SCRIPT
]] -- here actually will be the bug
line4 SCRIPT

I wouldn’t call this a “bug”, more a case of you putting garbage in and getting garbage out.

You can nest comment blocks in Lua by adding an equals sign for each layer of the nesting. Equals signs have to be balanced on either side of the block:

--[[
--[=[
--[==[
hi
there
  ]==]

  ]=]
  ]]

Codea won’t do this for you. Like a lot of things in life, this is something you have to do yourself.

@yojimbo2000 I didn’t know about the = signs. Learned something new, now I just have to remember it.