Your comments

You can fold functions in any language that uses some kind of single-character container for a function. For example the {} in JavaScript, BUT to do this, you need to tab out the closing container character: