ig_softy - 2009-03-13

When you write in TCL, if you use the conditional "if", there is the option to collapse this level.

I agree.

But if you make a comment with # as first char (for people who want to try), and just followed by "if", npp considers it like if it was "real" (aka not included in a comment), and the option to collapse appears. But it's just a comment ^^, should not have the possibility to collapse  (like if we use while / for / proc / ...).

The only error appears for the "if" i think, should be like for the other ones.

Ex :

# Start comment here
#
# if anything goes wrong ...
# ....
# i stop the comment here ^^

The if will be interpreted like if it was not in comment, and we can collapse at this level, but the collapse start at if and end at end of code.