Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-06

Syntax Highlighter and Editor

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Shane Miller

Well, I must say that that's an excellent component and I will start looking at it's implementation right away. They pretty muich have created a component that is VERY similiar to the editor and therefore would be perfect for us.

Thanks for the link!
Shane

>> Curtis White 06/09 12:52 AM >>>

Here is a very interesting project that we might be able to steal some really useful code from :-)

It is called mwEdit and is the source code written in Delphi to have a complete Pascal (and other languages, Java, C++, etc.) language parser and editor. It says the editor is written without using the Windows memo control. It has bookmarks and gutter marks.

It sounds like it might be a custom built editor that we may be able to port over without too much work. This could get us a pretty nice syntax highlighting editor really fast. Check it out!

http://www.eccentrica.org/gabr/mw/mwedit.htm

Curtis

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Curtis White
to Shane Miller

That is kind of what I thought too. If nothing else, we might be able to pull some code out of it and use it.

I am looking at the parser now. I haven't been able to figure out where the current parser (scan.pp) determines comments. I want to fix that little bug where it misses the highlight color of the first comment character after a non-comment line, but I am having problems figuring out exactly where that is happening. I think it is happening in the scan.pp unit, but am not quite sure. I guess I need to figure out how to use the debugger (gdb) :-)

I think I finally have things under control at work, so now I can start cranking hard on this again. I have worked over 100 hours this week at work, so I haven't had time to get much done on the IDE :-( But I think that is finally over!!!

Curtis

On 09-Jun-99 Shane Miller wrote 37 lines
Well, I must say that that's an excellent component and I will start looking at it's implementation right away. They pretty muich have created a component that is VERY similiar to the editor and therefore would be perfect for us. Thanks for the link! Shane >>> Curtis White 06/09 12:52 AM >>> Here is a very interesting project that we might be able to steal some really useful code from :-) It is called mwEdit and is the source code written in Delphi to have a complete Pascal (and other languages, Java, C++, etc.) language parser and editor. It says the editor is written without using the Windows memo control. It has bookmarks and gutter marks. It sounds like it might be a custom built editor that we may be able to port over without too much work. This could get us a pretty nice syntax highlighting editor really fast. Check it out! http://www.eccentrica.org/gabr/mw/mwedit.htm Curtis _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

M. Reijnders
to Payne Thomas E CNIN: Anyone else having problems compiling Lazarus from the latest from cvs. Problem seems to…

Hello,

I have exactly the same problem. I have the recent fpc from cvs and the recent Lazarus source code (today).
When I disable these lines and try to compile, I get other errors in lines with "@".

for example:

main.pp
OnDestroy := @FormKill;          (line 147)
compileroptions.pp
OnShow := @FormOnShow;     (line 63)

Free Pascal Compiler version 0.99.12 [1999/06/10] for i386 Copyright (c) 1993-98 by Florian Klaempfl
Target OS: Linux for i386
Compiling lazarus.pp
Compiling forms.pp
Compiling main.pp
Compiling editor.pp
Compiling dialogs.pp
dialogs.pp(66,1) Warning: Function result does not seem to be set dialogs.pp(62,32) Hint: Parameter not used WIDGET
dialogs.pp(74,1) Warning: Function result does not seem to be set dialogs.pp(70,36) Hint: Parameter not used WIDGET
dialogs.pp(82,1) Warning: Function result does not seem to be set dialogs.pp(78,35) Hint: Parameter not used WIDGET
dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are not compatible
dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are not compatible
dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are not compatible
dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are not compatible
dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are not compatible
dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are not compatible
dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are not compatible
dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are not compatible
dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are not compatible
dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are not compatible
dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are not compatible
dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are not compatible
Fatal: There were 12 errors compiling module, stopping

Could someone help me?

Merijn Reijnders

you wrote 55 lines
Anyone else having problems compiling Lazarus from the latest from cvs. Problem seems to be in call to gtk_signal_func. Snippet from dialogs.pp ----------------------------- 170 gtk_signal_connect_object( gtk_object( (PGtkFileSelection(FComponent))^.ok_button), 171 'clicked', 172 gtk_signal_func( @gtk_ok), 173 gtk_object( self)); Snippet from make ----------------------- Compiling dialogs.pp dialogs.pp(66,1) Warning: Function result does not seem to be set dialogs.pp(62,32) Hint: Parameter not used WIDGET dialogs.pp(74,1) Warning: Function result does not seem to be set dialogs.pp(70,36) Hint: Parameter not used WIDGET dialogs.pp(82,1) Warning: Function result does not seem to be set dialogs.pp(78,35) Hint: Parameter not used WIDGET dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are not compatible dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are not compatible dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are not compatible dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are not compatible dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are not compatible dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are not compatible dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are not compatible dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are not compatible dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are not compatible dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are not compatible dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are not compatible dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are not compatible Fatal: There were 12 errors compiling module, stopping make: *** [lazarus] Error 1 lazarus]# Tom _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Payne Thomas E CNIN

Anyone else having problems compiling Lazarus from the latest from cvs. Problem seems to be in call to gtk_signal_func.

Snippet from dialogs.pp
-----------------------------
170 gtk_signal_connect_object( gtk_object(
(PGtkFileSelection(FComponent))^.ok_button),
171 'clicked',
172 gtk_signal_func( @gtk_ok), 173 gtk_object( self));

Snippet from make
-----------------------
Compiling dialogs.pp
dialogs.pp(66,1) Warning: Function result does not seem to be set
dialogs.pp(62,32) Hint: Parameter not used WIDGET
dialogs.pp(74,1) Warning: Function result does not seem to be set
dialogs.pp(70,36) Hint: Parameter not used WIDGET
dialogs.pp(82,1) Warning: Function result does not seem to be set
dialogs.pp(78,35) Hint: Parameter not used WIDGET
dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are
not compatible
dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are
not compatible
dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are
not compatible
dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are
not compatible
dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are
not compatible
dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are
not compatible
dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are
not compatible
dialogs.pp(172,33) Error: Method (variable) and Procedure (variable) are
not compatible
dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are
not compatible
dialogs.pp(177,33) Error: Method (variable) and Procedure (variable) are
not compatible
dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are
not compatible
dialogs.pp(182,33) Error: Method (variable) and Procedure (variable) are
not compatible
Fatal: There were 12 errors compiling module, stopping
make: *** [lazarus] Error 1
 lazarus]#

Tom

Reply by email

Curtis White
to Payne Thomas E CNIN

Here is a very interesting project that we might be able to steal some really useful code from :-)

It is called mwEdit and is the source code written in Delphi to have a complete Pascal (and other languages, Java, C++, etc.) language parser and editor. It says the editor is written without using the Windows memo control. It has bookmarks and gutter marks.

It sounds like it might be a custom built editor that we may be able to port over without too much work. This could get us a pretty nice syntax highlighting editor really fast. Check it out!

http://www.eccentrica.org/gabr/mw/mwedit.htm

Curtis

Reply by email