how to write a text editor in c++
<p>I learned c++ on and off for serveral times but never write a real apps using it .
long time I've been thinking that writing a text editor will be something very interesting , now I am looking for a simple but decent text editor written in c or c++ from which I can get inspiration and learn how to write a text editor by myself. </p>

<p>so my question is could you guys recommend a "simple but decent" text edtor written in c or c++ to me ?</p>
