microlight icon indicating copy to clipboard operation
microlight copied to clipboard

Support for live highlighting in a contenteditable element

Open lesiki opened this issue 8 years ago • 3 comments

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.

lesiki avatar May 31 '16 09:05 lesiki

This is a subject of extended version of the library (which will likely be released separately). I'm currently working on this.

asvd avatar May 31 '16 10:05 asvd

Hey @asvd are these plans still active?

lesiki avatar Jan 23 '17 19:01 lesiki

Regretably postponed, but i'm going to get back here after I finish another project. Hopefully in a month or two.

asvd avatar Jan 24 '17 08:01 asvd