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
But line number styling is not working for me. Do you have any examples to make this work ? line numbers need some gap from actual code lines. I have tried using different properties available on SyntaxHighlighter like linePropslineNumberContainerStyle and lineNumberStyle, but none of those worked for me.
I did some research, and looked at the code https://github.com/react-syntax-highlighter/react-syntax-highlighter, in order to use special container for line number, one need to set showInlineLineNumbers={false}, but problem with that is, that react native doesn't support span, pre or other html elements they use, which makes app crash.
Any ideas on how to fix the crashes and avoid inlineLineNumbers ?
Activity
trevor-wheeler commentedon Jul 4, 2025
I would also like to know if anyone has got this working
deepsidhu1313 commentedon Sep 2, 2025
I did some research, and looked at the code https://github.com/react-syntax-highlighter/react-syntax-highlighter, in order to use special container for line number, one need to set
showInlineLineNumbers={false}, but problem with that is, that react native doesn't support span, pre or other html elements they use, which makes app crash.Any ideas on how to fix the crashes and avoid inlineLineNumbers ?