Closed TryingToGetThere closed 6 years ago
---
output:
learnr::tutorial:
theme: united
highlight: pygments
runtime: shiny_prerendered
---
I'm running into the same problem: learnr doesn't apply syntax highlighting. If it did, I could use code commenting to emphasize some lines, while "fading out" others. This would be very useful!
Hi - it took a while, but finally found a work around that works for me. The source hook is described here: https://curtisalexander.github.io/rmarkdown-syntax-highlighting/ Hope that helps anyone struggling with the same at the moment.
Standard syntax highlighting is now back. (master branch)
Alternative color schemes for code and exercise area are now enabled. Code highlighting is enabled with the highlight
. Exercise area (ace editor) theming is done iwth ace_theme
.
output:
learnr::tutorial:
highlight: pygments
ace_theme: monokai
runtime: shiny_prerendered
It's not working for me using the header info provided by @schloerke. Do I have have the highlight program installed (as referenced in the link provided by @TryingToGetThere?
Also not working for me. Working with the latest version of learnr
Hi,
I'm trying to get the SQL highlighting to work as follows:
But the output gives: --no-highlight
Should I do it differently?