We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LineNumbers
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).
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)" />
The text was updated successfully, but these errors were encountered:
+1, this would be cool!
Sorry, something went wrong.
feat(line-numbers): support highlighted lines
9baccce
Closes #256
feat(line-numbers): support highlighted lines (#266)
48c580d
Successfully merging a pull request may close this issue.
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.
The text was updated successfully, but these errors were encountered: