Gosub does not denote the start of the routine, so cannot be used as the start of the function fold.
See the following example code as to why you cannot fold gosubs. (Personally, I believe they're almost as bad as GoTo's and you shouldn't use them. They're messy (if used incorrectly, which many new coders do) and introduce spaghetti code.)
gosub function1
gosub function2
gosub function3
end
Function NotRelatedDoNoFoldMe()
Print "Do Not Fold Me"
EndFunction
function3:
print "3"
Return
function1:
print "1"
Return
function2:
print "2"
Return
Also, the IDE requires a fixed command in order to start a fold, (like foldstart) and since gosubs use user created labels, this is a problem. If you start interpreting all commands with a :, then it will affect usage of a colon to separate lines.
As mentioned above, don't use gosub, and start using functions.