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

Seeking help: using standard github pages syntax highlighting #49

Open
oliviervaillancourt opened this issue Dec 30, 2017 · 1 comment

Comments

@oliviervaillancourt
Copy link

Hi,

First off, great theme and I'm trying to use it for my blog hosted on github pages (https://oliviervaillancourt.com). So far, pretty good success. My first blog post has javascript fenced code blocks and it works great as far as syntax highlighting goes.

However, my second blog post (currently in the works) as c# fenced block. I would prefer to be able to apply the standard Rouge syntax highlighting.

I've tried the following so far without success. Note that I am running these tests locally and not as a github pages deployment

  • comment out the #highlightjs_theme: "monokai-sublime" from _config.yml
  • add highlighter: rouge in _config.yml
  • remove the <link> tag that is is pulling down the monokay-sublime css

I'm always getting no highlighting at all

Any help would be greatly appreciated

Thanks, Olivier

@snoopysecurity
Copy link

snoopysecurity commented Oct 1, 2022

I did the same thing but couldn't get it working. i ended up using highlightjs and added the below to _includes/head.html which works

  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.8/styles/default.min.css">
  <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.8/highlight.min.js"></script>
  <script>hljs.initHighlightingOnLoad();</script>

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

2 participants