datacamp / rdocumentation-2.0

📚 RDocumentation provides an easy way to search the documentation for every version of every R package on CRAN and Bioconductor.
https://rdocumentation.org
MIT License
285 stars 44 forks source link

feat: syntax highlighting for run this code #121

Closed ben-brooker closed 2 years ago

ben-brooker commented 2 years ago

Highlighting syntax of runnable code to encourage user to run the code. (Run this code)

Let me know if changes to highlighting theme are required.

TICKET ISSUE #14

Light mode before:

Screenshot 2022-07-06 at 14 55 20

Light mode after:

Screenshot 2022-07-06 at 14 55 27

Dark mode before:

Screenshot 2022-07-06 at 14 55 37

Dark mode after:

Screenshot 2022-07-06 at 14 55 44