Add code folding to custom file type?

Is there a way to specify what code blocks should have folding available by default for custom file types?

I have created a Google Protocol Buffer file type for syntax highlighting of .proto files. They are very JSON-like with lots of { } braces. However, I have to manually select each of these blocks and do the Fold Selection command. That's not so bad if I have to only do it once, but when I close and re-open the file all the Fold Selections are gone (which was asked about here but never answered). I would love to be able to specify that {} should have folding by default for this file type.
1 comment
Comment actions Permalink
No, custom file types do not have any possibility to configure folding. Folding can only be implemented in a third-party plugin.

Please sign in to leave a comment.