Open oliviervaillancourt opened 6 years ago
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>
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
#highlightjs_theme: "monokai-sublime"
from_config.yml
highlighter: rouge
in_config.yml
<link>
tag that is is pulling down themonokay-sublime
cssI'm always getting no highlighting at all
Any help would be greatly appreciated
Thanks, Olivier