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

Code syntax highlighting? #379

Open
oBusk opened this issue Aug 2, 2021 · 3 comments
Open

Code syntax highlighting? #379

oBusk opened this issue Aug 2, 2021 · 3 comments
Labels
enhancement New feature or request idea ideas are not necessarily going to happen, but are nice to think of

Comments

@oBusk
Copy link
Owner

oBusk commented Aug 2, 2021

No description provided.

@oBusk oBusk added enhancement New feature or request idea ideas are not necessarily going to happen, but are nice to think of labels Aug 2, 2021
@KraXen72
Copy link

you could use https://highlightjs.org to highlight the codeblocks

@oBusk
Copy link
Owner Author

oBusk commented Mar 28, 2023

you could use https://highlightjs.org to highlight the codeblocks

It's definitely the most common package for accomplishing code syntax! I've not used it, so not sure what it returns, but either way, we currently leave the rendering to react-diff-view, which has built in support for tokenization via refractor, so will probably investigate this approach first!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idea ideas are not necessarily going to happen, but are nice to think of
Projects
None yet
Development

No branches or pull requests

2 participants