Comments (4)
Oops. I forgot to update the documentation when I upgraded the theme to support Jekyll 2.
The theme is no longer using .less files for the stylesheets when I converted them to Sass since Jekyll added native support. If you want to modify the look and feel of the Pygments syntax highlighting the file pygments.scss is located in the _sass folder with all the other partials.
Just make your edits and Jekyll will compile it for you. No need for the Grunt task I mentioned in the old docs.
Otherwise you don't have to do anything but make sure the Pygments.rb gem installs properly with Jekyll. The Jekyll docs on their site have more info on getting started with Pygments.
from minimal-mistakes.
Thanks!
However, I'm still missing something. I have installed pygments.rb, and I'm using fenced codeblocks in markdown like this:
import fna
## scrape the Eriphorum pages from the site
eriophorum = fna.scrapeTaxon("Eriophorum")
The code blocks show up in
blocks, but they have no syntax highlighting. Do I need to 'turn it on' in the code block header?
from minimal-mistakes.
Fenced codeblocks won't invoke Pygments styled syntax highlighting.
To get the "pretty" Pygments highlighting you need to wrap your code in dedicated Liquid tags. Check out the official Jekyll docs, they explain exactly how to do it.
{% highlight %}
your code
{% endhighlight %}
from minimal-mistakes.
Got it now, thanks again!
from minimal-mistakes.
Related Issues (20)
- Removing the `sticky` tag from the sidebar has no effect
- Deprecation warnings relative to use of / outside of calc, will be removed in Dart Sass 2.0.0 HOT 1
- Breadcrumbs `Home` points to `github.com HOT 1
- Add support for child menues in matheader
- Neon Code Hightlighting Broken
- Search includes asset files HOT 1
- Iam getting this error Can you please help on this HOT 1
- greedy-navigation timeout causes inconsistent behaviour with translucency
- Google analytics update HOT 2
- Accessibility bug: the nav elements across the theme should have an aria-label
- monochrome and color (predefined) icons in author bio HOT 2
- Jekyll plugins HOT 3
- page.url variable pointing to wrong page (post) HOT 3
- Error when installing Theme HOT 1
- setup a ttc skin
- "You may also enjoy" recommends hidden posts, when it probably shouldn't HOT 1
- Intro animation completely breaks Lighthouse
- Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0
- I like what you do
- jekyll-archives not works HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minimal-mistakes.