Something small and fast.


Parts:

container
Mouse
Caret
Highlight
Tokens

Container:

Container is what holds all the elements of the editor. It's also necessary to figure out the position of the cursor

Caret:

Highlight:

Tokens:

Mouse:
