I've tried to use these as open and close fold strings:
Everything seems to work alright, as you can imagine, except the while...wend loops.
While the language itself is not case sensitive, it makes it easier to read the code when language elements are in the "proper" case. One small niggle is that some people like "While...Wend" while others prefer to use "While...WEnd". I'd like a syntax file that allowed both to work, but so far have been unsuccessful in getting folding to work properly with both styles.
So, I was wondering what the rules were? The built-in help doesn't really say if you can use the same "word" more than once, and a search of the forum didn't turn up anything I could find stating whether something like this would work or not.
Or maybe I'm going about it the wrong way. Any suggestions to make it work would be welcome. TIA
Code: Select all
/Open Fold Strings = "Do" "For" "Func" "If" "#Region" "Select" "Switch" "While" "While" "With"
/Close Fold Strings = "Until" "Next" "EndFunc" "EndIf" "#EndRegion" "EndSelect" "EndSwitch" "Wend" "WEnd" "EndWith"
While the language itself is not case sensitive, it makes it easier to read the code when language elements are in the "proper" case. One small niggle is that some people like "While...Wend" while others prefer to use "While...WEnd". I'd like a syntax file that allowed both to work, but so far have been unsuccessful in getting folding to work properly with both styles.
So, I was wondering what the rules were? The built-in help doesn't really say if you can use the same "word" more than once, and a search of the forum didn't turn up anything I could find stating whether something like this would work or not.
Or maybe I'm going about it the wrong way. Any suggestions to make it work would be welcome. TIA