diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2021-03-05 09:37:00 +0100 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2021-03-05 09:37:00 +0100 |
commit | 6ead43dad09567bed525a7127cf6f7f6f768a807 (patch) | |
tree | bfadd8ae0c6a79b3810f1620851dcb2370d27e27 /pygments/formatters | |
parent | 426ad7d768f787e5b91cae9f7ab2d29e0cd5845d (diff) | |
download | pygments-git-6ead43dad09567bed525a7127cf6f7f6f768a807.tar.gz |
Clarify hl_lines usage (fixes #959.)
Diffstat (limited to 'pygments/formatters')
-rw-r--r-- | pygments/formatters/html.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index 3ba104f3..15993b07 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -272,7 +272,9 @@ class HtmlFormatter(Formatter): 125%``). `hl_lines` - Specify a list of lines to be highlighted. + Specify a list of lines to be highlighted. The line numbers are always + relative to the input (i.e. the first line is line 1) and are + independent of `linenostart`. .. versionadded:: 0.11 |