Support highlighted lines using `LineNumbers`
Closed this issue · 1 comments
metonym commented
It would be nice if specific lines could be highlighted in the LineNumbers
component.
A prop called highlightedLines
could accept an array of line indices to highlight (zero-indexed).
<LineNumbers {highlighted} highlightedLines={[0, 1]} />
A custom color could be applied through a style prop.
<LineNumbers
{highlighted}
highlightedLines={[0, 1]}
--highlighted-background="rgba(255, 255, 255, 0.4)"
/>
nicholasmordecai commented
+1, this would be cool!