I would like to implement a text editor . In the design process i have some doubts . Take a text editor like a notepad . We we will able to move directly to any point in the editor which means that a random access is made possible . I initially thought of a linked list of lines . Could someone throw more light into text editor design . 1 more doubt is the undo feature . The undo and redo feature can be implemented using a stack . Is there some better ways to implement this ?

Recommended Answers

All 3 Replies

Member Avatar for iamthwee

In what language?

im planning to implement in c++ . I think the language has nothing to do with data structure . This is more of design problem .

well i would suggest for you to go in for Qt + C++ .
well for text editor you do need somekind of GUI and QT can help you with that.
besides its also got a standard example of text editor which you can download and learn how its built.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.