a post with tabs
This is how a post with tabs looks like. Note that the tabs could be used for different purposes, not only for code.
First tabs
To add tabs, use the following syntax:
{% tabs group-name %}
{% tab group-name tab-name-1 %}
Content 1
{% endtab %}
{% tab group-name tab-name-2 %}
Content 2
{% endtab %}
{% endtabs %}
With this you can generate visualizations like:
<ul class="tab-content" id="b400c5f1-c876-4c4b-83fd-67334730a5aa">
<li class="active">
var_dump('hello');
</li>
<li>
console.log("hello");
</li>
<li>
pputs 'hello'
</li>
</ul>
Another example
<ul class="tab-content" id="baba22cc-02aa-4eee-8ec3-39fa31bbc7d9">
<li class="active">
hello:
- "whatsup"
- "hi"
</li>
<li>
{
"hello": ["whatsup", "hi"]
}
</li>
</ul>
Tabs for something else
<ul class="tab-content" id="df1960ad-f9a0-48eb-afe7-5e3b8bfa2b33">
<li class="active">
Regular text
</li>
<li>
A quote
</li>
<li>
Hipster list
- brunch
- fixie
- raybans
- messenger bag
</li>
</ul>
Enjoy Reading This Article?
Here are some more articles you might like to read next: