PDA

View Full Version : Syntax coloring,how?



zlatkoAB
30-05-2009, 14:41
Hi guys...
Which type of syntax coloring use Thin Air?
Is this written in PowerBasic or in C or maby use Scintilla.
I try include scintilla in my Abasic and work but work litlle bit slow.
Any suggestion?

ErosOlmi
31-05-2009, 09:09
thinAir is 100% written in PowerBasic.
The editor control is written by Roberto starting from and old public domain project. It is again in PowerBasic.

Some month ago Roberto started to move to Scintilla edit control that is a great control. But as you know, Roberto stopped for a while to work on this. Maybe we will restart the project soon.

Anyhow, Scintilla is quite good and I'm surprised you say it is slow. José Roca has a project called SED in his forum. It is an editor/Ide full of utilities. You can find Power Basic sources too.

Another good edit control but unfortunately discontinued is CodeMax. You can see it in action in thinBasic debugger.
If you are interested, I can attach a thinBasic project that shows how to use it.

Ciao
Eros

zlatkoAB
31-05-2009, 09:21
Thanks Eros... :)
Thanks on quick respond.
I know for Jose really great SED editor.
And i dont know why scintilla work slower in my case.
Maby becose is big or maby becose my lexer work directly trough
current richedit control?
I use for test version 1.6.8.0 and adjust colors quiete well.
I dont know maby i mess something.
Huh currently i have about 6000 lines in ABasic.
Yes i here for CodeMax and is realy good.
So if is no problem do you can attach source code with CodeMax?
That I can try how work.

Thanks advance
Zlatko

ErosOlmi
31-05-2009, 09:25
Here it is attached.
It did it some time ago to quickly test CodeMax/CodeSense.

Hope it can help.

Ciao
Eros

Michael Hartlef
31-05-2009, 09:50
Here it is attached.
It did it some time ago to quickly test CodeMax/CodeSense.

Hope it can help.

Ciao
Eros



Hi Eros,

do you have a helpfile for CodeSence?

ErosOlmi
31-05-2009, 10:08
Michael,

I've added in previous post a .DOC file I have.

I also have CodeMax C++ sources but I'm not sure I can post here because CM project followed strange roads from public domain to commercial (from CodeMax 3.0) to disappeared.
You can find them inside another project I found on CodeSearch (http://www.google.com/codesearch?hl=en): http://ftp.man.poznan.pl/pub/povray/Official/Windows/povwin_s.zip

zlatkoAB
31-05-2009, 10:51
Thank you very much ;)
I will try to do something...

all best
Zlatko

ErosOlmi
31-05-2009, 11:00
Attention,

on CodeMax/CodeSense you will not find any support. They are discontinued.
I think they are still great edit controls easy to be used and full of options. But be warned.

The only product I know using CodeMax/CodeSense is the great free editor JellyFish Pro (http://www.planetsquires.com/jellyfishpro.htm) developed by Paul Squires. I personally use it on a daily basis in conjunction with Lynx project explorer (http://www.zippety.net/) for all my PowerBasic projects.

Michael Hartlef
31-05-2009, 15:33
Thanks Eros for the info.

zlatkoAB
31-05-2009, 21:53
Thanks Eros on Info about CodeMax.
I try CodeMax and he refuse to work- problem with class registering.
Your example for thinbasic work OK :)
I also try jbproedit.dll also dont work at all.
Ah I think that i must return to scintilla.
Find some examples on FreeBasic forum which explain some problems
by using scintilla and i think that slowing is cosed becose i use
Sendmessage(x,x,x) instead like the man said(from FB forum).
he use direct aproach with like he said:

If you send a SCI_GETDIRECTFUNCTION message it will give you a function ptr to the editor's message procedure which allows you to pass messages directly to it without having to go through the slow SendMessage().

Zlatko

ErosOlmi
31-05-2009, 23:24
But ... what language are you using for your development?

Michael Hartlef
01-06-2009, 00:13
I think he is using Creative Basic for it.

zlatkoAB
01-06-2009, 20:37
Yes,Cbasic.

zlatkoAB
04-06-2009, 19:36
Hi people...
I find one interesting edit control called RAEdit.dll.
Is any of you have expirience with this control.
Dll is very small about 75kb,.