add a setting for max number of lines to color,
and only color those lines