Closed metonym closed 1 year ago
It would be nice if specific lines could be highlighted in the LineNumbers component.
LineNumbers
A prop called highlightedLines could accept an array of line indices to highlight (zero-indexed).
highlightedLines
<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)" />
+1, this would be cool!
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).A custom color could be applied through a style prop.