UDL if then multiline / single line
Baksa Péter last edited by
Is there a way to properly fold multiline if-then-else-endif, and not fold oneline if-then-else (without endif)?
Claudia Frank last edited by
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 line
if x then y else z //end
doesn’t get folded. A bit a hack but works.