hugo-casper-two
hugo-casper-two copied to clipboard
Syntax highlighting
Hi Love the theme! Thanks. I've been trying to change the syntax highlighting in the R code chunks, but no luck. I have modified the head.html file to include
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css" />
(note the "github" instead of the "default"), but it isn't working.
Any idea why?
I have the same issue. @emoro did you find a solution?
@ceessay @emoro If you are sill looking for the solution, i have something that worked for me. What I did was:
- First: Stop hugo server
- Second: On themes/casper-two/layout/partials/head.html, line 26 you can change the hightlight theme from this website: https://highlightjs.org
- Third: Go to themes/casper-two/static/built/screen.css and search for
.post-full-content pre code *{
and delete that style.
Everything should be ok, just restart hugo server
and check again. This worked for me, but I'm not 100% sure about this trick.
Thank @rafaelsnts. It's working!
Thanks @rafaelsnts, it worked!!
Nice work @rafaelsnts Thx a lot!