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
Seems that the line numbers are added as a data attr correctly with rehypePrism, but there is no built in styling for the numbers. Am I missing something? I tried the example code in a codesandbox. Thanks!
Reacted by Maksymilian Wnuk, Jake Wilson, Ale Chañi, Keshav Katkar, Riccardo Marzilli and Vijay Prema
Activity
Jakobud commentedon Nov 18, 2024
I also cannot get line numbers to work at all using the current example. I copy pasted the example 1:1 into this CodeSandbox just as @jwade0 did:
https://codesandbox.io/p/sandbox/https-github-com-uiwjs-react-textarea-code-editor-issues-151-forked-px5jfj?file=%2Fsrc%2FApp.js%3A24%2C1&workspaceId=e268bb81-c582-4f74-bdf5-2e00c927b2a4
lawlie8 commentedon Dec 10, 2024
Any Update on This? Facing the Same Issue
jacquesg commentedon Dec 13, 2024
You can try something like the following. I've adjusted the padding of the editor to 24px, and use a 14px font.
sergeyvelichkin commentedon Feb 27, 2025
position of cursor is getting messed up after adding this
jaywcjlove commentedon Aug 16, 2025