Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Add language indicator to each code snippet #24

Open
johnymontana opened this issue May 18, 2020 · 2 comments
Open

Add language indicator to each code snippet #24

johnymontana opened this issue May 18, 2020 · 2 comments

Comments

@johnymontana
Copy link
Contributor

There is a mix of Cypher, javascript, graphql typedefs vs queries, java, shell commands, etc

Add an indicator to each snippet so the reader can see clearly what language the code snippet is referencing.

Perhaps use the tabbed navigation (with a single tab) as a precursor to when we have multiple language examples (javascript and java, etc)

@KazChe
Copy link
Contributor

KazChe commented Oct 23, 2020

Hi @johnymontana were trying to see if I can help out and was looking into how this could be implemented.

I see that Multi-language support code blocks looks to be one way to achieve within MDX pages.

However, when trying their sample code for multi-language support it causes errors during the build having to with the way blank lines are introduced to take advantage of back-tick markups to properly display a piece of code.

Then there is Tabs which does not cause errors but falls short from properly rendering a code block.

Do let me know if you had something else in mind for this enhancement and I'll be happy to play around with it.

Cheers.

@KazChe
Copy link
Contributor

KazChe commented Oct 24, 2020

Tried with a brand new vanilla install of docusaurus classic template, and multi-lang support tabs works fine...?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants