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

Syntax highlighting #20

Open
emoro opened this issue Jan 30, 2019 · 5 comments
Open

Syntax highlighting #20

emoro opened this issue Jan 30, 2019 · 5 comments

Comments

@emoro
Copy link

emoro commented Jan 30, 2019

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?

@ceessay
Copy link

ceessay commented Feb 14, 2019

I have the same issue. @emoro did you find a solution?

@rafatrace
Copy link

@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.

@ceessay
Copy link

ceessay commented Mar 5, 2019

Thank @rafaelsnts. It's working!

@emoro
Copy link
Author

emoro commented Mar 5, 2019

Thanks @rafaelsnts, it worked!!

@rguske
Copy link

rguske commented Mar 14, 2019

Nice work @rafaelsnts Thx a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants