'Can markdown display code in multiple programming languages and switch between them using a tabs component?

In leetcode's markdown version, I can display code in multiple programming languages and switch between them using a tabs component? Now i want to write notes in local markdown file(typora or obsidian). Can I get the same result like the same result like leetcode. leetcode markdown multiple code block



Solution 1:[1]

Check this out: https://leetcode.com/discuss/general-discussion/1560831/markdown-reference-for-leetcode-formatting-cheatsheet

Basically we go to Playground Tab in Leetcode: https://leetcode.com/playground/

We basically get a sharing link here, which can be then used to embed our code to the answers we post.

<iframe src="https://leetcode.com/playground/GKja4qAy/shared" frameBorder="0" width="400" height="300"></iframe>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Priyanka