If I was creating a code editor (especially using ...
# tornadofx
g
If I was creating a code editor (especially using RichTextFx) I'd be inclined to look at ReactFx as it was designed specifically to deal with these types of issues. Another option is RxKotlin.