Collapse text inside a custom tag

Hello,

is it possible to collapse (with a marker on the gutter) the text inside a custom tag, regardless of the mode set for the editor?
For example:

[[CUSTOMTAGS_TART]]
text
to
collapse
[[CUSTOMTAG_END]]

Thanks!

The foldcode addon allows you to pass a custom function that finds foldable ranges, which should allow you to do this.