Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Greetings,

I wish to implement a basic text editor for writing and debugging code. I am aware that there are numerous open source examples of this sort of thing, but I need one that is 100% controlled by me and free of any use restrictions.

My initial hope was that something like CRichEditCtrl could be coaxed into this sort of role, but looking into it this morning dashed all my hopes. But just to make sure, I thought I would ask the CP community. Can the CRichEditCtrl be used in such a fashion? Some key necessary features are the need to hook the lex analyzer to it for real-time text color coding, parentheses/bracket balance checking, and mouse cursor-->identifier mapping to see container contents, etc etc.

Any insight you may have on this matter would be greatly appreciated. While I am not afraid to do this the direct (hard) way, I was hoping for a sweet shortcut.

Many thanks, and happy Thanksgiving for all of you in the US of A,
Paul
Posted

Hi Paul,

I am using Scintilla in my dissassembler/debugging project. If you search here on codeproject you will find several examples and some extensions. It also comes with a very liberal licence. I highly recommend it.

http://www.scintilla.org/[^]

http://www.scintilla.org/License.txt[^]

Best Wishes,
-David Delaune
 
Share this answer
 
v3
David, thank you for the suggestion! Its just the sort of thing I had been looking for.

Regards,
Paul
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900