Rich Text box Questions

Written by kishore

ok so I manage to create a RICHEDIT with:
[code]rtfctl = CreateWindow("RICHEDIT","text",WS_BORDER|WS_CHILD|WS_VISIBLE|ES_MULTILINE|WS_VSCROLL|WS_HSCROLL,10,10,300,300,MAINSS,0,hInstance,0);[CODE]

Now heres where I'm stuck at

1. I have it set to multiline and both scrollbars are visible. But the text won't go beyond horizontally.
If I remove the multiline then it will go beyond it but then it will only be that one line.

2. How can I introduce syntax highlighting for it?

In VB I would then find the word and use selcolor and similar functions to change the color but this method would slow down after a couple of lines.

So I asked about it and someone told me I need to parse it. How do I go about doing that?

Thanks

Continued here:
Rich Text box Questions

Feb
15

How Do I Color-Highlight PHP Source Codes

Written by kishore

If you’ve been a regular reader of this blog you might have wondered how I highlight PHP code using different colors. Your prompt answer would be, using some software

Read more: 
How Do I Color-Highlight PHP Source Codes

Aug
02