UDL if then multiline / single line
-
Is there a way to properly fold multiline if-then-else-endif, and not fold oneline if-then-else (without endif)?
-
there is a way but this means you need to cheat and add additional code (comment) to it.
Define the normal if (open) else(middle) endif(close)everything should work for this example
if x then y else z endif
and add //end as the close in comment folding.
It’s assumed that // is the comment sign in your language.
Now this lineif x then y else z //end
doesn’t get folded. A bit a hack but works.
Cheers
Claudia