I'm looking for a way to fold plaintext by whitespace depth. I would prefer for a notepad++ solution, but if it can only be done in another editor I could deal with that. For example
Header is arbitrary text
Child is arbitrary text
Another arbitrary child
This one has a child of its own
Another arbitrary header
And its child
Folding line 1 should hide lines 2-4, folding line 3 should hide line 4, and folding line 5 should hide line 6. I've tried a user defined language, but haven't been able to get it to fold without specific block start and end delimiters.