mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #2424 from sphinx-doc/sphinx-mandatory
Clear up Pygments is mandatory
This commit is contained in:
commit
36a0222dab
@ -21,8 +21,8 @@ an "unused" primary prompt; this is an example of what *not* to do::
|
|||||||
2
|
2
|
||||||
>>>
|
>>>
|
||||||
|
|
||||||
Syntax highlighting is done with `Pygments <http://pygments.org>`_ (if it's
|
Syntax highlighting is done with `Pygments <http://pygments.org>`_ and handled
|
||||||
installed) and handled in a smart way:
|
in a smart way:
|
||||||
|
|
||||||
* There is a "highlighting language" for each source file. Per default, this is
|
* There is a "highlighting language" for each source file. Per default, this is
|
||||||
``'python'`` as the majority of files will have to highlight Python snippets,
|
``'python'`` as the majority of files will have to highlight Python snippets,
|
||||||
@ -77,7 +77,7 @@ installed) and handled in a smart way:
|
|||||||
Line numbers
|
Line numbers
|
||||||
^^^^^^^^^^^^
|
^^^^^^^^^^^^
|
||||||
|
|
||||||
If installed, Pygments can generate line numbers for code blocks. For
|
Pygments can generate line numbers for code blocks. For
|
||||||
automatically-highlighted blocks (those started by ``::``), line numbers must be
|
automatically-highlighted blocks (those started by ``::``), line numbers must be
|
||||||
switched on in a :rst:dir:`highlight` directive, with the ``linenothreshold``
|
switched on in a :rst:dir:`highlight` directive, with the ``linenothreshold``
|
||||||
option::
|
option::
|
||||||
|
Loading…
Reference in New Issue
Block a user