AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Syntax highlighting support for Eclipse,FAR man and others
Goto page Previous  1, 2
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources
View previous topic :: View next topic  
Author Message
jonib



Joined: 09 May 2006
Posts: 66

PostPosted: Wed Mar 21, 2007 10:17 pm    Post subject: Reply with quote

RobOtter wrote:
Long time passed by...

jonib, PhiLho, anyone of you still (or again) working on this?
@jonib: Could you provide a working link to your AHKColorer.zip? The link given here is somewhat outdated... Sad

Best regards,
Rob

Nice to see you again Very Happy

I have restored the bad links and I am working on a updated version I just have to update the installer.

Maybe today.
Back to top
View user's profile Send private message
jonib



Joined: 09 May 2006
Posts: 66

PostPosted: Thu Mar 22, 2007 1:25 am    Post subject: Reply with quote

I have updated the first post with new version and new info.

All Colorer versions ware updated 24 Nov 2006
And there is an experimental build of EclipseColorer: 0.8.0 posted 8 March 2007

New in EclipseColorer:
Folding, Annotations, line word wrapping, extended preferences and many other improvements.
Back to top
View user's profile Send private message
jonib



Joined: 09 May 2006
Posts: 66

PostPosted: Thu Mar 22, 2007 7:12 am    Post subject: Reply with quote

I have updated the first post with an updated version of the installer that checks that AutoHotkey is installed.
Back to top
View user's profile Send private message
RobOtter



Joined: 30 Jan 2005
Posts: 125
Location: Darmstadt, Germany

PostPosted: Thu Mar 22, 2007 8:56 am    Post subject: Reply with quote

Hi jonib,

many thanks for your quick reply! The new EclipseColorer functionality sounds very promising - I might have the time this evening to try it out along with your current work.

After a long time of inactivity, I would highly appreciate any more efforts on this topic since it came to my mind again yesterday when a guy in another forum asked for an Eclipse editor.
I would like to point out that I am more than willing to help you and possibly other people to create a good and helpful editor for AHK - within the small borders of my knowledge of creating Eclipse plugins and the limited amount of spare time I have.

Although it may seem to some people that the Eclipse IDE is quite oversized for AHK scripts, we guys from the german forum of acītivAid definitely have a need for it since acītivAid is a semi-large framework for modulized Windows tools written in AHK. With the help of a somewhat professional editor, developing a semi-professional tool would be much easier.

Greetings,
Rob
Back to top
View user's profile Send private message
RobOtter



Joined: 30 Jan 2005
Posts: 125
Location: Darmstadt, Germany

PostPosted: Fri Mar 23, 2007 9:22 am    Post subject: Reply with quote

@jonib:
Could you please roughly explain the differences between basic and advanced mode? The only diff I discovered until now is that in advanced mode, the outliner consumes nearly all CPU time and never gets finished Sad
I can reproduce this behavior with Eclipse 3.2 and 3.3M5eh, running Java 5_11.
I am very happy with the outliner (basic mode of course), it recognizes correctly all functions and subs and jumps correctly to the correct place when clicking on a function in outline window.
As from what I have seen in a rough check, syntax highlighting seem to be correct also. Great!

One other question: Is there a difference in EclipseColorerīs editors "Colorer" and "Colorer (Script)" (canīt remember exactly, something similar)? Which one should I chose for editing AHK files? From the options view, they seem to be the same.
Back to top
View user's profile Send private message
jonib



Joined: 09 May 2006
Posts: 66

PostPosted: Fri Mar 23, 2007 11:42 am    Post subject: Reply with quote

RobOtter wrote:

Could you please roughly explain the differences between basic and advanced mode?

Try my SyntaxTest.ahk script in basic and advanced mode and you should see some differences.
What is in Advanced mode but not in basic:
continuationSection is highlighted better.
Some Directives have specific syntax highlighting (#SingleInstance) more to come.
Brackets "(){}[]" have more advanced highlighting and function.
Same keywords have specific syntax highlighting (msgbox,return,StringSplit,StringReplace,send,FileAppend,IfInString,IfNotInString) more to come.
And when something works fast and correct in advanced mode I might put it in basic mode also.
Quote:
The only diff I discovered until now is that in advanced mode, the outliner consumes nearly all CPU time and never gets finished Sad
I can reproduce this behavior with Eclipse 3.2 and 3.3M5eh, running Java 5_11.

I think I have fixed the "All CPU usage" problem, I had to remove a feature I'm working on, I have uploaded a new version.
Quote:
I am very happy with the outliner (basic mode of course), it recognizes correctly all functions and subs and jumps correctly to the correct place when clicking on a function in outline window.
As from what I have seen in a rough check, syntax highlighting seem to be correct also. Great!

Nice, but more testing is needed.
Quote:
One other question: Is there a difference in EclipseColorerīs editors "Colorer" and "Colorer (Script)" (canīt remember exactly, something similar)? Which one should I chose for editing AHK files? From the options view, they seem to be the same.

I'm sorry but I don't know if there is a difference, I'm using Eclipse 3.1.2 and only have "Colorer Scripts Editor" maybe I will update.
Back to top
View user's profile Send private message
urlwolf



Joined: 16 Mar 2006
Posts: 100

PostPosted: Sun Dec 30, 2007 3:18 pm    Post subject: Reply with quote

Ok, I have installed colorer and ran the installer provided here.

No ahk files are highlighted.

Anything I need to do after installing? I've no experience with eclipse. Thanks
Back to top
View user's profile Send private message
jonib



Joined: 09 May 2006
Posts: 66

PostPosted: Mon Dec 31, 2007 9:08 am    Post subject: Reply with quote

urlwolf wrote:
Ok, I have installed colorer and ran the installer provided here.

No ahk files are highlighted.

Anything I need to do after installing? I've no experience with eclipse. Thanks

Hi urlwolf

It seems in newer Eclipse versions you need to add Autohotkey file type in settings, I have updated the first post in this thread with new info:
Quote:
Update: In newer Eclipse versions you need to add "*.ahk" file-type in menu "Window -> Preferences... -> General -> Editors -> FileAssociations" and specify an "Colorer Editor" associated editor.
And when opening a .AHK file check that Eclipse is using a Colorer editor.
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Feb 12, 2008 5:43 am    Post subject: Reply with quote

This eclipse syntax+plugin works great.
I think this could be the beginning of building an IDE for ahk, taking advantage of Eclipse.

Things that I'd like to see implemented:
[list=]
go to function definition (F3) even if it's in a different file
[/list]
[list=]error capturing and redirection to proper line number[/list]
[list=]integrated help (e.g., F1 takes you to the function page[/list]
[list=]Run current script[/list]

etc.

But I think those may be minor problems...
I managed to do all those but the first one in vim, but I have no clue about Eclipse Smile so I could only help testing the thing....[/list][/list]
Back to top
guestWolf
Guest





PostPosted: Tue Feb 12, 2008 5:44 am    Post subject: Reply with quote

This eclipse syntax+plugin works great.
I think this could be the beginning of building an IDE for ahk, taking advantage of Eclipse.

Things that I'd like to see implemented:
[list=]
go to function definition (F3) even if it's in a different file
[/list]
[list=]error capturing and redirection to proper line number[/list]
[list=]integrated help (e.g., F1 takes you to the function page[/list]
[list=]Run current script[/list]

etc.

But I think those may be minor problems...
I managed to do all those but the first one in vim, but I have no clue about Eclipse Smile so I could only help testing the thing....[/list][/list]
Back to top
jonib



Joined: 09 May 2006
Posts: 66

PostPosted: Tue Feb 12, 2008 4:30 pm    Post subject: Reply with quote

guestWolf wrote:
This eclipse syntax+plugin works great.

I'm glad it works great, if there is anything with the highlighting that don't work or you want added just ask and I'll see what I can do.
guestWolf wrote:
I think this could be the beginning of building an IDE for ahk, taking advantage of Eclipse.

Things that I'd like to see implemented:
[list=]go to function definition (F3) even if it's in a different file[/list]
[list=]error capturing and redirection to proper line number[/list]
[list=]integrated help (e.g., F1 takes you to the function page[/list]
[list=]Run current script[/list]
etc.

But I think those may be minor problems...
I managed to do all those but the first one in vim, but I have no clue about Eclipse Smile so I could only help testing the thing....[/list]

I don't use Eclipse other then to test my syntax highlighting so I wouldn't be able to help other then with highlighting. Wink
I use FAR manager and I managed to do all but the first also.

jonib
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group