diff options
author | Georg Brandl <georg@python.org> | 2018-12-18 14:30:49 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2018-12-18 14:30:49 +0100 |
commit | 90f099f0aed96438ee293413caffd26f1758e380 (patch) | |
tree | 19b73c7ee1a191be87b14533efd539ba30803402 | |
parent | 76621e29863a35fb4381f0db9d6c84f1417930a5 (diff) | |
download | pygments-90f099f0aed96438ee293413caffd26f1758e380.tar.gz |
Fix a few markup problems in the docs.
-rw-r--r-- | doc/docs/styles.rst | 50 | ||||
-rw-r--r-- | pygments/formatters/terminal256.py | 4 | ||||
-rw-r--r-- | pygments/lexers/esoteric.py | 2 | ||||
-rw-r--r-- | pygments/lexers/floscript.py | 2 | ||||
-rw-r--r-- | pygments/lexers/forth.py | 2 |
5 files changed, 30 insertions, 30 deletions
diff --git a/doc/docs/styles.rst b/doc/docs/styles.rst index 65a2a863..570293a5 100644 --- a/doc/docs/styles.rst +++ b/doc/docs/styles.rst @@ -201,34 +201,32 @@ The following are considered "dark" colors and will be rendered as non-bold: Exact behavior might depends on the terminal emulator you are using, and its settings. -.. _NewAnsiColorNames: +.. _new-ansi-color-names: .. versionchanged:: 2.4 -The definition of the ansi color names has changed. +The definition of the ANSI color names has changed. New names are easier to understand and align to the colors used in other projects. - -+-------------------------+--------------------------+ -| New names | Pygments 2.2 | -+=======================+============================+ -| ``ansiblack`` | ``#ansiblack`` | -| ``ansired`` | ``#ansidarkred`` | -| ``ansigreen`` | ``#ansidarkgreen`` | -| ``ansiyellow`` | ``#ansibrown`` | -| ``ansiblue`` | ``#ansidarkblue`` | -| ``ansimagenta`` | ``#ansipurple`` | -| ``ansicyan`` | ``#ansiteal`` | -| ``ansigray`` | ``#ansilightgray`` | -| ``ansibrightblack`` | ``#ansidarkgray`` | -| ``ansibrightred`` | ``#ansired`` | -| ``ansibrightgreen`` | ``#ansigreen`` | -| ``ansibrightyellow`` | ``#ansiyellow`` | -| ``ansibrightblue`` | ``#ansiblue`` | -| ``ansibrightmagenta`` | ``#ansifuchsia`` | -| ``ansibrightcyan`` | ``#ansiturquoise`` | -| ``ansiwhite`` | ``#ansiwhite`` | -+=========================+==========================+ - -Old ansi color names are deprecated but will still work. - +===================== ==================== +New names Pygments up to 2.3 +===================== ==================== +``ansiblack`` ``#ansiblack`` +``ansired`` ``#ansidarkred`` +``ansigreen`` ``#ansidarkgreen`` +``ansiyellow`` ``#ansibrown`` +``ansiblue`` ``#ansidarkblue`` +``ansimagenta`` ``#ansipurple`` +``ansicyan`` ``#ansiteal`` +``ansigray`` ``#ansilightgray`` +``ansibrightblack`` ``#ansidarkgray`` +``ansibrightred`` ``#ansired`` +``ansibrightgreen`` ``#ansigreen`` +``ansibrightyellow`` ``#ansiyellow`` +``ansibrightblue`` ``#ansiblue`` +``ansibrightmagenta`` ``#ansifuchsia`` +``ansibrightcyan`` ``#ansiturquoise`` +``ansiwhite`` ``#ansiwhite`` +===================== ==================== + +Old ANSI color names are deprecated but will still work. diff --git a/pygments/formatters/terminal256.py b/pygments/formatters/terminal256.py index b18aca65..1235e9ed 100644 --- a/pygments/formatters/terminal256.py +++ b/pygments/formatters/terminal256.py @@ -111,9 +111,9 @@ class Terminal256Formatter(Formatter): See :ref:`AnsiTerminalStyle` for more information. .. versionchanged:: 2.4 - The ansi color names have been updated with names that are easier to + The ANSI color names have been updated with names that are easier to understand and align with colornames of other projects and terminals. - See :ref:`NewAnsiColorNames` for more information. + See :ref:`this table <new-ansi-color-names>` for more information. Options accepted: diff --git a/pygments/lexers/esoteric.py b/pygments/lexers/esoteric.py index 793c28be..26222c9f 100644 --- a/pygments/lexers/esoteric.py +++ b/pygments/lexers/esoteric.py @@ -245,7 +245,7 @@ class AheuiLexer(RegexLexer): Aheui_ is esoteric language based on Korean alphabets. - .. _Aheui:: http://aheui.github.io/ + .. _Aheui: http://aheui.github.io/ """ diff --git a/pygments/lexers/floscript.py b/pygments/lexers/floscript.py index b393c1e9..4f200809 100644 --- a/pygments/lexers/floscript.py +++ b/pygments/lexers/floscript.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ pygments.lexers.floscript - ~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~~~~~~~ Lexer for FloScript diff --git a/pygments/lexers/forth.py b/pygments/lexers/forth.py index a51f1b57..7fecdd52 100644 --- a/pygments/lexers/forth.py +++ b/pygments/lexers/forth.py @@ -3,6 +3,8 @@ pygments.lexers.forth ~~~~~~~~~~~~~~~~~~~~~ + Lexer for the Forth language. + :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ |