markup icon indicating copy to clipboard operation
markup copied to clipboard

Multiple programming languages organized in tabs

Open PoslavskySV opened this issue 6 years ago • 8 comments

I have a library which supports two programming languages (say Java and Scala). Is there any way to organize this in tabbed view with markup? Like here:

example

PoslavskySV avatar Oct 08 '17 06:10 PoslavskySV

Would love to see this one in.

thecatalinstan avatar Jan 30 '18 23:01 thecatalinstan

This would help 💯 with tutorials. What is the best way to do this despite the lack of functionality for it in GitHub?

alexellis avatar Mar 02 '18 15:03 alexellis

@alexellis Unfortunately, I didn't find any beautiful workaround with current GitHub facilities. So, I keep the main documentation of my project on ReadTheDocs where I use sphinx-tabs plugin to organize code in tabbed view.

PoslavskySV avatar Mar 02 '18 15:03 PoslavskySV

Would love to see a simple implementation of this by markdown that looks like:

[tab1][tab2][tab3] Content_of_tab1Content_of_tab1Content_of_tab1Content_of_tab1 [tab1] Content_of_tab2Content_of_tab2Content_of_tab2Content_of_tab2 [tab2] Content_of_tab3Content_of_tab3Content_of_tab3Content_of_tab3 [tab3]

matchavez avatar Feb 11 '19 02:02 matchavez

Or maybe using the markdown-fenced-code-tabs extension, or its syntax

kroggen avatar Jun 16 '21 04:06 kroggen

Would be nice, but it needs to be implemented as a standard. Microsoft has already started backing away from GFM, and they're embracing CommonMark. Personally, I'd like to see some sort of SuperMarkdown that does everything that's in Material for MKDocs as an adopted superset, and changing double underscores from em to underline and single asterisks to no action.

matchavez avatar Jun 16 '21 04:06 matchavez

This would be amazing!!

idwise-team avatar Dec 25 '21 19:12 idwise-team

Already exists. https://squidfunk.github.io/mkdocs-material/reference/content-tabs/#grouping-code-blocks

Like I was saying before… it's just a matter of implementing /reference of M4MKD and changing double-underscore to underline and single * to nothing.

matchavez avatar Feb 05 '22 05:02 matchavez