I’m not sure how you calling this. In Wordpress it’s shortcodes, in phpBB it’s BBcodes. Your spoiler plugin is a thing I’m talking about. Here’s plugin that we use, you can see examples there. It also can give access to text to a certain group but guys from my forum didn’t found this handy, so I’m not sure about benefit of this part.