Tabbed Code Blocks Plugin

Hey everyone,

This week, I really wanted to add tabbed code blocks to my site (for Android, many people still use Java so I sometimes want to give examples in both Java and Kotlin) similar to those seen on the android developer site.

I ended up learning how to create a plugin which was cool and thought to share it here. You can see a demo of what kind of features it provides here:

The source code for the plugin can be found here:

There are some things I already want to fix like being able to configure whether to support the dark/light mode theme switch so I’ll work on that in the near future! If anyone has any suggestions or tries it out, I’d love to hear about it! Thanks!

1 Like