How to implement syntax highlighting in your own vanilla JS code editor?

前端 未结 0 1596
我寻月下人不归
我寻月下人不归 2021-02-06 17:40

I am working on creating a code editor using JavaScript. It looks something like this -

HTML