How TextHighlighter works
masterA TextHighlighter applies specific text styling to cells based on a predicate function. The predicate function takes three arguments: (data, i, j), where data is the matrix, i is the row index, and j is the column index. If the predicate returns true, the provided styling (e.g., using crayon) is applied to that cell.
Example predicates:
(data, i, j) -> (j == 4) && (data[i, j] > 9): Highlights cells in the 4th column if their value is greater than 9.(data, i, j) -> (i == 10): Highlights all cells in the 10th row.
hl_p = TextHighlighter(
(data, i, j) -> (j == 4) && (data[i, j] > 9),
crayon"blue bold"
)