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 endifand 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 //enddoesn’t get folded. A bit a hack but works.
Cheers
Claudia
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login