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.