summaryrefslogtreecommitdiff
path: root/pygments/formatters
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2021-03-05 09:37:00 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2021-03-05 09:37:00 +0100
commit6ead43dad09567bed525a7127cf6f7f6f768a807 (patch)
treebfadd8ae0c6a79b3810f1620851dcb2370d27e27 /pygments/formatters
parent426ad7d768f787e5b91cae9f7ab2d29e0cd5845d (diff)
downloadpygments-git-6ead43dad09567bed525a7127cf6f7f6f768a807.tar.gz
Clarify hl_lines usage (fixes #959.)
Diffstat (limited to 'pygments/formatters')
-rw-r--r--pygments/formatters/html.py4
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