I want to define code folding for a standard "if...elseif...else...end" set. I want folding on each elseif to collapse the lines underneath it, but not the next elseif/else statement - because that way you can't see the test that controls the next set of code. I can define code folding for else(if)s, but it always hides the line that contains the end of the block, i.e. hiding the next test. I want the folding to not include the next test.
Comments