Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language specific code tabs #124

Closed
steffen25 opened this issue May 17, 2019 · 1 comment
Closed

Language specific code tabs #124

steffen25 opened this issue May 17, 2019 · 1 comment

Comments

@steffen25
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Often when you show code snippets in your documentation you'll want to support different programming languages. I could not find any examples in your documentation to this and therefore I was wondering if this is going to be added? I could probably write a custom vue component to get what I need but I would rather ask the community first.

You can add a code snippet for each language but that will get bloated quickly making it a bad user experience.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
See above.

Describe the solution you'd like
A clear and concise description of what you want to happen.
A simple way to write language specific code tabs e.g.

<!--JavaScript-->
```js
console.log('Hello, world!');
<!--Python-->
```py
print('Hello, world!')

Describe alternatives you've considered
Inspiration and screenshot taken from Docusaurus

Additional context
Add any other context or screenshots about the feature request here.
Screenshot 2019-05-17 at 18 23 15

@saleem-hadad
Copy link
Owner

I thought of this long time ago, it ganna be awesome
I'll add it to the future development #6
thank you @steffen25 🌸

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

No branches or pull requests

2 participants