Scintilla supports code folding for BASH and shell scripts. I have hacked koBashLanguage.py to add code folding:
self._lexer.supportsFolding = 1
Is there anyway to do this in a macro, so that I don't have to maintain the patch. Or could this be added to the product? Using Komodo IDE 5.1.3 on all 3 main platforms.
I'd recommend you log this as a Komodo bug at:
http://bugs.activestate.com/enter_bug.cgi?product=komodo
and attach your patch to the bug. I tried this out myself but I still could not get bash folding to work after applying the patch... perhaps include a sample bash file that shows off the folding.
Cheers,
Todd