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

Add syntax highlighting for R code? #14

Open
ncarchedi opened this issue Jan 6, 2021 · 1 comment
Open

Add syntax highlighting for R code? #14

ncarchedi opened this issue Jan 6, 2021 · 1 comment
Labels
enhancement New feature or request in review PR under review

Comments

@ncarchedi
Copy link
Contributor

The easiest way to do this is probably via react-syntax-highlighter, but I couldn't find an existing theme that I felt matched the style of the rest of the site well enough: https://github.com/remarkjs/react-markdown#use-custom-renderers-syntax-highlight

@ncarchedi ncarchedi added the enhancement New feature or request label Jan 6, 2021
@nx10
Copy link

nx10 commented Jun 4, 2021

Thanks for your work!

Syntax highlighting would be very helpful. Here is a react-syntax-highlighter demo that lets you flip through common themes: https://react-syntax-highlighter.github.io/react-syntax-highlighter/demo/

There is a couple I like with other languages but not with R. It seems like the R grammar for highlight.js is not very expressive.

Nonetheless I find non-highlighted code hard to read quickly, so I think any theme would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in review PR under review
Projects
None yet
Development

No branches or pull requests

3 participants