Coder Social home page Coder Social logo

Comments (4)

mmistakes avatar mmistakes commented on April 27, 2024

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.

plantarum avatar plantarum commented on April 27, 2024

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.

mmistakes avatar mmistakes commented on April 27, 2024

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.

plantarum avatar plantarum commented on April 27, 2024

Got it now, thanks again!

from minimal-mistakes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.