Implementing Text Editors
Via Martin Spernau, two useful resources on writing text editors. The Craft of Text Editing appears to be the definitive work on the subject, and is a whole book made available online with permission from the publishers as it is no longer available in print. Writing a Simple Word Processor (PDF) is a more recent paper with excellent overviews of the data structures and algorithms used in modern editing widgets.