RichEdit syntax coloring

Windows specific questions.
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: RichEdit syntax coloring

Post by D.J.Peters »

SARG wrote:Maybe I would use your code. Do you agree ?
"agree" for what ?
It's Windows API not any trick !

Do what ever you like with this demo code.

Joshy
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: RichEdit syntax coloring

Post by D.J.Peters »

Pitfalls to avoid stings in single or multiline comments ha ha ha
Image
What a f***

Joshy
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: RichEdit syntax coloring

Post by aurelVZAB »

Joshy
I understand that is not real editor
thanks on explanation about assembly that is not needed..
well for a difference I use only Windows for programming and for most other things
I never compile anything on linux even i have one installed on one of my old computers
---shame on me again---
ahh you say FLTK...i don't know but i simply don't like to use all this external libs on windows
windows api programs sometimes not work properly then with IUP,Fltk and others we have just more troubles
nastasa eodor
Posts: 182
Joined: Dec 18, 2018 16:37
Location: Germany, Hessdorf
Contact:

Re: RichEdit syntax coloring

Post by nastasa eodor »

i promise you that, so that is http://rqwork.de/zips/richedit_highlight.zip
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: RichEdit syntax coloring

Post by aurelVZAB »

Ohh
thanks !!
nastasa eodor
Posts: 182
Joined: Dec 18, 2018 16:37
Location: Germany, Hessdorf
Contact:

Re: RichEdit syntax coloring

Post by nastasa eodor »

aurelVZAB wrote:Ohh
thanks !!
no mention, i hope that help you, you can develop a real editor
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: RichEdit syntax coloring

Post by aurelVZAB »

I hope too,in first place i need small editor for my new interpreter that i can use it without need
for scintilla ,well i like it of course..but require one .dll more.
nastasa eodor
Posts: 182
Joined: Dec 18, 2018 16:37
Location: Germany, Hessdorf
Contact:

Re: RichEdit syntax coloring

Post by nastasa eodor »

aurelVZAB wrote:I hope too,in first place i need small editor for my new interpreter that i can use it without need
for scintilla ,well i like it of course..but require one .dll more.
???
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: RichEdit syntax coloring

Post by aurelVZAB »

so far i get this with syntax coloring in richedit control
Image
Last edited by aurelVZAB on Oct 05, 2020 19:54, edited 2 times in total.
jj2007
Posts: 2326
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

Re: RichEdit syntax coloring

Post by jj2007 »

The fact that you got varstr seems to indicate that you need a full word search, like Instr_()'s mode 4; otherwise partial matches get coloured...
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: RichEdit syntax coloring

Post by aurelVZAB »

hi JJ
yes you have a right..infact i am using as modified pureBasic example for that
and one iwb example too.
as you pointed i need quoted string coloring
Post Reply