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
|
||||
may want to install, depending on how you plan to use Jekyll. These extras
|
||||
include syntax highlighting of code snippets using
|
||||
[Pygments](http://pygments.org/), LaTeX support, and the use of alternative
|
||||
content rendering engines. Check out [the extras page](../extras) for more
|
||||
information.
|
||||
include LaTeX support, and the use of alternative content rendering engines.
|
||||
Check out [the extras page](../extras) for more information.
|
||||
|
||||
<div class="note">
|
||||
<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
|
||||
|
||||
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
|
||||
use the dedicated Liquid tag as follows:
|
||||
Pygments, and including a code snippet in any post is easy. Just use the
|
||||
dedicated Liquid tag as follows:
|
||||
|
||||
{% highlight text %}
|
||||
{% 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
|
||||
languages](http://pygments.org/languages/) thanks to
|
||||
[Pygments](http://pygments.org/). In order to take advantage of this you’ll need
|
||||
to have Pygments installed, and the `pygmentize` binary must be in your `$PATH`.
|
||||
When you run Jekyll, make sure you run it with [Pygments enabled](../extras).
|
||||
[Pygments](http://pygments.org/). When you run Jekyll, make sure you run it
|
||||
with `pygments` set to `true` in your configuration file.
|
||||
|
||||
To render a code block with syntax highlighting, surround your code as follows:
|
||||
|
||||
|
|
Loading…
Reference in New Issue