From 6ead43dad09567bed525a7127cf6f7f6f768a807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20G=2E=20Chajdas?= Date: Fri, 5 Mar 2021 09:37:00 +0100 Subject: Clarify hl_lines usage (fixes #959.) --- pygments/formatters/html.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pygments/formatters') 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 -- cgit v1.2.1