How to write a text editor (code editor) with a minimum of funds, i.e. on the graphic side, I will only have the opportunity:
- Render text at (x, y)
- Drawing graphic primitives (point, line, circle, image, ...)
Those. The toolbox will not have widgets like TextBox , textarea , etc. Although I would not refuse buttons and menus.
Those. I will have to organize all the interface elements myself. For example, I will draw the cursor with drawLine(x, y, x, y + heightOfCursor) .
This is necessary in order to have more control over the text.
Tell me which is best to use the library and what language. It would be great if the language and the library had high performance.
Where better to start?
PS I think to use C ++ and SDL, but maybe there is a better option?