Here is a project where I added functionality to update the text as you type. It is still a work in progress. Please feel free to comment. If you have an update, you can email me email@example.com.
I am trying to use Richedit20 and once i use it everything turns into comment color as my starting line is a comment character. Why should richedit20 stop the parsing .. do i have to do soem additional setting.
Any inputs greatly appreciated
How to solve!!
Posted by MrTommek
on 03/27/2004 07:48pm
Sorry, you have to change from *(m_pTableTwo + '\'') = SQEND; *(m_pTableThree + '\n') = SLEND; to *(m_pTableTwo + '\'') = SQEND; *(m_pTableThree + '\r') = SLEND;
For all people who have/had the same problem, here is a solution:
Change in the CSyntaxColorizer-class the line 98 from *(m_pTableTwo + '\'') = SQEND; *(m_pTableThree + '\r') = SLEND; to *(m_pTableTwo + '\'') = SQEND; *(m_pTableThree + '\n') = SLEND; !! Now the Colorizer-class will work for RichEdit20.
There is problem with pasting text from html page to this control. (or another RTF text).
1. Mark colorized line on html page.
2. Paste it to CSyntaxColorizer. At this moment all attributes of text (color, fonts, etc) are similiar to html document.
3. Move cursor in the middle of line and press <Enter>.
Now second part of line is formated but height of line is improper.
There is also problem when you put html table to this control.
And my question. Mayby one of you can help me. How to check and translate clipboard content when it differs from simple text?
Hi, i'm currently working on a compiler project. I create
the IDE from CRichEdit derived class, and I want my editor
to show line numbers on the left side of the document on
the same frame. The line number is not part of document,
only for guideline.
The illustration as follows (assume it's a window pic):