The toggle shortcode is similar to the code-toggle, but it’s more generic.

Usage

1</* toggle myToggleName */>
2  
3  </* toggle-item myToggleItemName */>
4    CONTENT HERE, MARKDOWN and SHORTCODE are support.
5  </* /toggle-item */>
6
7  ...
8
9</* /toggle */>
  • The myToggleName MUST be unique per page.
  • The myToggleItemName MUST be unique per toggle.

Example

< toggle foobar >

< toggle-item Foo > Foo < /toggle-item >

< toggle-item Bar > Bar < /toggle-item >

< /toggle >

< toggle languages > < toggle-item PHP > < highlight php > echo “hello world” < /highlight > < /toggle-item >

< toggle-item JS > < highlight javascript > console.log(“hello world”) < /highlight > < /toggle-item >

< toggle-item SQL > < highlight sql > SELECT “hello world” < /highlight > < /toggle-item >

< /toggle >