How do you fold and unfold sections of a post?

Hi, @cderv, would you let me know how to create this effect to fold or unfold some text?

That’s the Hide Details widget, which lets you keep your post tidy by hiding a lengthy side note (or maybe some ugly code, like dput() output) in a folding section.

You can insert the template for one using the gear menu in the posting box:


(Click the gear and select Hide Details from the pop up menu)

Or you can do it by hand:

[details="This will be shown next to the arrow"]
This text will be hidden
[/details]

Results in:

This will be shown next to the arrow

This text will be hidden

3 Likes

@jcblum Thanks a lot, I find the other three options useful too.

1 Like