asvd / microlight

highlights code in any programming language
http://asvd.github.io/microlight
MIT License
1.49k stars 61 forks source link

Support for live highlighting in a contenteditable element #3

Open lesiki opened 8 years ago

lesiki commented 8 years ago

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.

asvd commented 8 years ago

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

lesiki commented 7 years ago

Hey @asvd are these plans still active?

asvd commented 7 years ago

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