The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Installing Pygments In Jekyll

TODO: Pull subtitle into page object

First off: it's Pygments, not pigments

Took me a minute to figure that out.

I think pygments comes installed with jekyll by default. You just need to generate the style sheet with:

code_start_default_section code_end_default_section

Should work pretty much out of the gate.

There were more notes here, but the site is dead now:

http://recursive-design.com/blog/2010/10/12/static-blogging-the-jekyll-way/

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Installing Pygments In Jekyll

-- p

First off: it's Pygments, not pigments

-- p

Took me a minute to figure that out.

-- p

I think pygments comes installed with jekyll by default. You just need to generate the style sheet with:

-- code/

pygmentize -S default -f html > source/css/pygments/default.css

-- /code

-- p

You can then copy and paste the code into your main CSS if you only want to use one.

-- p

Then, in your documents do:

-- code/

{% highlight python %}
... code ...
{% endhighlight %}

-- /code

-- p

Should work pretty much out of the gate.

-- p

There were more notes here, but the site is dead now:

-- p

http://recursive-design.com/blog/2010/10/12/static-blogging-the-jekyll-way/


-- categories
-- Jekyll

-- metadata
-- date: 2021-11-14 13:12:54
-- id: 20v8cemb
-- status: published
-- type: post
-- SCRUBBED_NEO: false
-- site: aws