Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 514 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 514 Bytes

friendly_styles

Pygments compatible styles used with friendly.

Two styles are defined: one suitable for black (or very dark) background and another for white (or very pale) background.

These styles are defined in such a way that code highlighted by Rich use consistent colours whether the code is highlighted by Rich base on some repr bypassing Pygments or done by Pygments.

Example of highlighting