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 have a usecase where I want to highlight syntax in a div that the end-user populates. Any chance we can make the rendering work 'live' in a contenteditable?
I've hacked at approaches to this before, and it inevitably becomes a complex mush of tracking the cursor on key-ups, subtracting invisible characters (spans used for syntax highlighting) etc.