I'm creating an IDE and is wondering how is it possible to comment a block of code in richedit? Something like what hutch has done in his qeditor. It's cool to have such a feature.
Posted on 2002-06-15 08:26:46 by roticv
hopefully.. hutch got the answer to this?
Posted on 2002-06-17 00:02:26 by roticv
What I think is... you 'do it yourself' i.e. tell the RichEdit to hand over control of the data to you, go through the data and put the ';'s, and then tell RichEdit you changed the data.
Posted on 2002-06-17 04:08:34 by AmkG
The plugin to do it is no big deal, get the selection out of the edit control, replace the CRLF with CRLF + comment. Other way round is replace CRLF + comment with CRLF.

When you have modified the selected text with the indent you want, replace the selection in the edit control with your modified text.


Posted on 2002-06-17 05:21:19 by hutch--
I dun really get what you mean hutch...What's CRLF?
Posted on 2002-06-19 11:14:51 by roticv
Carriage Return Line Feed == 0Dh 0Ah :)
Posted on 2002-06-19 11:18:29 by stryker