You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking to see if react-syntax-highlighter or prizm.js had the ability to right align the line numbers.
Example
This is the code I currently have:
<SyntaxHighlighter
children={<>
# Header
Paragraph and line numbers.
</>}
style={{ ...coldarkCold }}
language={"markdown"}
showLineNumbers
wrapLongLines
PreTag="div"
/>
Possible Solutions
Align the line numbers to the right by default (there looks to be a style that right aligns the text but this doesn't seem to work on my Chromium version?)
Provide a possible option to align them
Workaround
It looks like you can apply grid line styles with the desired effect:
I was looking to see if
react-syntax-highlighter
orprizm.js
had the ability to right align the line numbers.Example
This is the code I currently have:
Possible Solutions
Workaround
It looks like you can apply grid line styles with the desired effect:
The text was updated successfully, but these errors were encountered: