Debian Codegraph @

questions/highlight_incorrect.question.md

raw
1 ---
2 title: "Incorrect highlights in printed output"
3 alt_title:
4 - "Highlighter not highlighting data"
5 ---
6
7 Rich's default highlighter will highlight a number of common patterns, useful for debugging.
8 Occasionally you may find that it highlights text incorrectly.
9 This may be unavoidable, as Rich only sees text and can only make a best guess at what it means.
10
11 If this happens, consider disabling highlighting, or write a custom highlighter that better reflects the text you are writing. See the docs for details...
12
13 https://rich.readthedocs.io/en/latest/highlighting.html
14
15 Issues and PRs for highlighters will only be accepted for clearly broken regular expressions.
16 This is because a fix for your needs can break the highlighting for someone else.