How to collapse / toggle pieces of text inside notes?

Are you talking about collapsing in the rendered note or in the source text of the editor?

Either way, this is currently not possible.

2 days ago, sombody asked a similar question. I guess people don't search the forum before posting.