Does anyone have information about writing a basic text editor in C?
>>58727214
Windows:
CLI -> don't
GUI -> C#/WPF
Linux:
CLI -> ncurses
GUI -> Qt
Qt don't have C bindings, use C++ for that.
And yes, you have to use QtCreator.
>>58727214
look up Fabrice Bellard's qemacs, its an extremely light emacs clone with both X and terminal support, it has the bare bones of an emacs-style text editor in C
>>58727214
Look up ropes (the data structure).
And don't botch plugin support, unlike most other popular editors.
Google "rope data structure". Congratulations, you're 90% of the way there.
>>58728666
>>58727484
The rope is one of the best choices if not the best, but there are other options, like the piece table, which have their own advantages.
>>58727214
Here's a paper about data structures for text sequences. A bit dated, but still really informative
https://www.cs.unm.edu/~crowley/papers/sds.pdf
Whatever you do, decide what features you want to implement and only start writing code after you're clear about that.
what was the first text editor written with?
>>58728806
notepad++
>>58728806
ED
ED IS THE STANDARD EDITOR
>>58728806
Assembly of some sort