Easy comments

I’d like an additional button for creating a “–” comment. Might require changing the button size in the toolbar above the keyboard.

This reminds me, is there a way to do a multiline comment? I haven’t spent the time to look it up

This reminds me, is there a way to do a multiline comment? I haven't spent the time to look it up

This works:

–[[

commented out

commented out

commented out

–]]

Alternatively you can do this when your live code contains double square brackets:

–[==[

commented out

commented out

commented out

–]==]

(double spaced because I forgot the correct markup/markdown format for code again…)

thx :slight_smile:

`~~~
some code

@Andrew

thanks!

Re: multiline comments- a neat trick was pointed out by Roberto Ierusalimschy in PIL:

 --[[
    print(10)         -- no action (comment)
    --]]

Now, if we add a single hyphen to the first line, the code is in again:

    ---[[
    print(10)         --> 10
    --]]