spir wrote:
Couldn't this more easily be implemented by "cheating" with the editor (the reason why I used the term "pseudo-code")? For instance, if I save a plain text file under the name "dummy.py", then folding applies like for python code. So, I guess we could have a foldable_text file type for cheap.
In which case you can just Set Filetype from the Document menu... :)