clustergarage / jekyll-code-tabs

Fenced code tabs plugin for Jekyll
MIT License
19 stars 13 forks source link
jekyll

jekyll-code-tabs

💎 Separate language snippets with fenced code tabs for documentation pages

Usage

{% codetabs %}

{% codetab C %}
```c
printf("Hello, world!");

{% endcodetab %}

{% codetab Go %}

fmt.Println("Hello, world!")

{% endcodetab %}

{% codetab Python %}

print("Hello, world!")

{% endcodetab %}

{% endcodetabs %}



This will create a tabbed-view (hardcoded to UIkit classes for now) that will
allow the user to toggle between content.

![alt
text](https://raw.githubusercontent.com/clustergarage/jekyll-code-tabs/master/docs/screencap.gif)