Hi guys, I haven’t posted in a little while (work got SUPER busy) but I wonder if someone could give me a quick bit of help understanding how you define in a Syntax file how code should be folded.
If I understand correctly, anything between what the foldingStartMarker matches and what the foldingStopmarker matches will be folded (or to put it another way, fold arrows will appear at matches for the foldingStartMarker and collapse the code until the foldingStopMarker match). However, I’ve noticed that there seem to be hierarchies of code folding (Fold Level in the Edit -> Code Folding sub-menu). This would be really useful in the language I’m writing for and if it’s possible I’d love to make use of it. Can anybody explain (or point me to a doc or something) how you define the level of folding? And just to be clear, this would allow you to do nested folding correct?
Thanks in advance guys!