Pygments does not need to be installed. Fixes #1099 #1119

This commit is contained in:
Parker Moore 2013-05-17 20:44:29 +02:00
parent d1c626f2e2
commit 3e7b0bbe47
3 changed files with 6 additions and 9 deletions

View File

@ -50,10 +50,8 @@ community can improve the experience for everyone.
There are a number of (optional) extra features that Jekyll supports that you There are a number of (optional) extra features that Jekyll supports that you
may want to install, depending on how you plan to use Jekyll. These extras may want to install, depending on how you plan to use Jekyll. These extras
include syntax highlighting of code snippets using include LaTeX support, and the use of alternative content rendering engines.
[Pygments](http://pygments.org/), LaTeX support, and the use of alternative Check out [the extras page](../extras) for more information.
content rendering engines. Check out [the extras page](../extras) for more
information.
<div class="note"> <div class="note">
<h5>ProTip™: Enable Syntax Highlighting</h5> <h5>ProTip™: Enable Syntax Highlighting</h5>

View File

@ -138,8 +138,8 @@ If you don't like the automatically-generated post excerpt, it can be overridden
## Highlighting code snippets ## Highlighting code snippets
Jekyll also has built-in support for syntax highlighting of code snippets using Jekyll also has built-in support for syntax highlighting of code snippets using
[Pygments](../extras), and including a code snippet in any post is easy. Just Pygments, and including a code snippet in any post is easy. Just use the
use the dedicated Liquid tag as follows: dedicated Liquid tag as follows:
{% highlight text %} {% highlight text %}
{% raw %}{% highlight ruby %}{% endraw %} {% raw %}{% highlight ruby %}{% endraw %}

View File

@ -166,9 +166,8 @@ root of your source directory. This will embed the contents of
Jekyll has built in support for syntax highlighting of [over 100 Jekyll has built in support for syntax highlighting of [over 100
languages](http://pygments.org/languages/) thanks to languages](http://pygments.org/languages/) thanks to
[Pygments](http://pygments.org/). In order to take advantage of this youll need [Pygments](http://pygments.org/). When you run Jekyll, make sure you run it
to have Pygments installed, and the `pygmentize` binary must be in your `$PATH`. with `pygments` set to `true` in your configuration file.
When you run Jekyll, make sure you run it with [Pygments enabled](../extras).
To render a code block with syntax highlighting, surround your code as follows: To render a code block with syntax highlighting, surround your code as follows: