From dcbe0ec6bb78eb023c6810d6a07dc1bb3e69c8b1 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Mon, 1 Jul 2024 20:45:58 +0100 Subject: [PATCH] highlight column --- rich/table.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rich/table.py b/rich/table.py index 05084860..10af2e6f 100644 --- a/rich/table.py +++ b/rich/table.py @@ -106,6 +106,9 @@ class Column: no_wrap: bool = False """bool: Prevent wrapping of text within the column. Defaults to ``False``.""" + highlight: bool = False + """bool: Apply highlighter to column. Defaults to ``False``.""" + _index: int = 0 """Index of column.""" @@ -821,6 +824,7 @@ class Table(JupyterMixin): no_wrap=column.no_wrap, overflow=column.overflow, height=None, + highlight=column.highlight, ) lines = console.render_lines( cell.renderable,