If I was just writing a simple gui text editor, the current widget would be fine for my purposes. However, since I am writing a text editor that is front end agnostic the current text editor widget doesn’t have the API that I want.
The API I want is that the widget takes in a list of lines, with each line being a list of the formatting for chunks of that line. It would also take in a list of cursors/marks so we know where to draw those. I was thinking it would just loop over every line and chunk, while keeping track of the cursors/mark positions.
This is just for the font end. The back end will just send the necessary information to the front end.
I am wondering if someone could point me in the right direction on how I could implement this as a widget. I do want it to be configurable with things like font, font size, line height, etc. But I don’t mind starting small. I have looked at the source for the text editor widget and feel a little lost.
Any help is appreciated.