parent
d1c626f2e2
commit
3e7b0bbe47
|
@ -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>
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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 you’ll 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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue