[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Writing your own text editor

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 10
Thread images: 2

File: ll.png (6KB, 474x116px) Image search: [Google]
ll.png
6KB, 474x116px
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.
>>
File: 1462568594083.jpg (174KB, 1533x961px) Image search: [Google]
1462568594083.jpg
174KB, 1533x961px
what was the first text editor written with?
>>
>>58728806
notepad++
>>
>>58728806
ED
ED IS THE STANDARD EDITOR
>>
>>58728806
Assembly of some sort
Thread posts: 10
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.