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

A better codeBlock component #189

Open
kepta opened this issue May 15, 2021 · 2 comments
Open

A better codeBlock component #189

kepta opened this issue May 15, 2021 · 2 comments

Comments

@kepta
Copy link
Collaborator

kepta commented May 15, 2021

Our current implementation of code block leaves a lot to be desired. We should create a new component which use code-mirror and does a better job of highlighting languages and switching languages.

For inspiration:

image

@clibu
Copy link

clibu commented May 18, 2021

I think this should be optional as not everyone wants the added overhead of codemirror. I also tried the page you linked to, selected Javascript and pasted some JS and didn't see any syntax highlighting.

@kepta
Copy link
Collaborator Author

kepta commented May 18, 2021

sorry for the lack of clarity. i imagine this to be a separate npm package and not part of the core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants