| View previous topic :: View next topic |
| Author |
Message |
RobOtter
Joined: 30 Jan 2005 Posts: 125 Location: Darmstadt, Germany
|
Posted: Mon Dec 19, 2005 1:49 pm Post subject: Syntax highlighter for Eclipse IDE |
|
|
Hi,
I would like to see a syntax highlighter for Eclipse (in Eclipse called an "editor").
I've already googled around but found nothing so I'd like to ask someone to do this (I can't).
As an alternative, is there a plugin for jEdit to show a structured overview of a scriptīs function, for example in the SideKick plugin? Or is there a jEdit plugin where one can define the rules to find the functions?
Thanks for any hints,
Rob |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Mon Dec 19, 2005 3:48 pm Post subject: Re: Syntax highlighter for Eclipse IDE |
|
|
| RobOtter wrote: | I would like to see a syntax highlighter for Eclipse (in Eclipse called an "editor").
I've already googled around but found nothing so I'd like to ask someone to do this (I can't). | Do you know how such a file has to look like? _________________ Ciao
toralf  |
|
| Back to top |
|
 |
RobOtter
Joined: 30 Jan 2005 Posts: 125 Location: Darmstadt, Germany
|
Posted: Mon Dec 19, 2005 4:08 pm Post subject: Re: Syntax highlighter for Eclipse IDE |
|
|
| toralf wrote: | | Do you know how such a file has to look like? |
No, not exactly. But AFAIK this must be a specialized editor plugin for Eclipse, not just a single word file with some fancy regexp - that is why I canīt do it myself (never made a plugin for Eclipse).
The reason Iīm asking for such is that Eclipse is my favorite editor and I would like to use for AHK scripts.
But as an alternative, I would use jEdit as my second choice if it would have not only a syntax highlighter but also a function list (like in UltraEdit) and a working folding functionality. |
|
| Back to top |
|
 |
rlandersen
Joined: 22 Mar 2006 Posts: 7
|
Posted: Tue Mar 28, 2006 6:44 pm Post subject: |
|
|
| I agree. An Eclipse syntax highlighter would be great. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Wed Mar 29, 2006 4:26 pm Post subject: |
|
|
Well, I wouldn't fire Eclipse to edit a simple script, but if you have it opened all day on your desktop, it could be nice.
Writing such plugin isn't obvious, you have to know Java and the Eclipse API for that. I know the first, not the second, and have no time to spend on this project, alas. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
ajfisher
Joined: 05 May 2006 Posts: 3 Location: Minneapols, MN, USA
|
Posted: Fri May 05, 2006 4:04 am Post subject: |
|
|
Has anyone started on something like this? I've been looking for an excuse to write an eclipse PI. What features would you like to see if someone were to undertake this?
Feel free to private message me/discuss here. _________________ Allen J. Fisher |
|
| Back to top |
|
 |
RobOtter
Joined: 30 Jan 2005 Posts: 125 Location: Darmstadt, Germany
|
Posted: Fri May 05, 2006 8:37 am Post subject: |
|
|
I am not aware of anyone working on this. I would highly appreciate your efforts on this!
My feature requests would be (in no special order and maybe incomplete yet):
- Syntax highlighting
- word completion (automatic / selection window)
- function / label overview window ("outline")
- overview of assigned hotkeys in a script
- Automatic indention / de-indention (after opening / closing curly brackets, after if, else, loop, ...)
- Folding
- Rectangular text selection (my reference for this is UltraEdit; rts is superior imho)
- Buttons for start, stop, reload of scripts, creating executables, ...
Thatīs it for now, I will post more if something comes into my mind.
Rob |
|
| Back to top |
|
 |
ajfisher
Joined: 05 May 2006 Posts: 3 Location: Minneapols, MN, USA
|
Posted: Fri May 05, 2006 2:32 pm Post subject: |
|
|
I'll start looking into it. They've standardized their editor recently (you used to write your own), so some of this might be really straight forward. I'll let you know what I find out.
Allen _________________ Allen J. Fisher |
|
| Back to top |
|
 |
RobOtter
Joined: 30 Jan 2005 Posts: 125 Location: Darmstadt, Germany
|
Posted: Thu May 18, 2006 1:33 pm Post subject: |
|
|
Hi Allen,
I donīt want to urge you or want to seem impatient, but have you had any success yet in doing the editor? Anything I can help you with?
Best regards,
Rob |
|
| Back to top |
|
 |
jonib
Joined: 09 May 2006 Posts: 66
|
Posted: Thu May 18, 2006 10:22 pm Post subject: |
|
|
Hi RobOtter
If Eclipse IDE is this http://www.eclipse.org/? I might be able to help.
I have started to make a syntax highlighter for my favorite Editor Far Manager it uses a plugin Colorer to do the highlighting.
And lucky you Colorer has a plugin for Eclipse.
I have not used Autohotkey very long and I have not done any syntax highlighting before, so I can't guarantee the quality.
But the basics seem to work like keywords and comments.
If you are interested in my unfinished work I can post it? |
|
| Back to top |
|
 |
ajfisher
Joined: 05 May 2006 Posts: 3 Location: Minneapols, MN, USA
|
Posted: Fri May 19, 2006 5:09 am Post subject: |
|
|
| RobOtter wrote: | Hi Allen,
I donīt want to urge you or want to seem impatient, but have you had any success yet in doing the editor? Anything I can help you with?
Best regards,
Rob |
Hi Rob--
I've been poking around and it looks do-able. I'm a little slow since I'm learning the Eclipse PDE and Autohotkey at the same time.  _________________ Allen J. Fisher |
|
| Back to top |
|
 |
RobOtter
Joined: 30 Jan 2005 Posts: 125 Location: Darmstadt, Germany
|
Posted: Fri May 19, 2006 7:44 am Post subject: |
|
|
Hi jonib, ajfisher,
thanks for working on this anyway!
Unfortunately, I donīt have any expertise in programming plugins for the Eclipse IDE, Iīm only using it for my Java developing. I think the best way to accomplish a good solution would be if you both could join your knowledge and efforts. I would be glad to be of any help (for example as a tester) for you!
As a word definition for the syntax highlighter one can maybe use one of the various word files which already exist for other text editors and which are delivered along with the AHK distribution (in the directory ./Extras/Editors/*) |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Fri May 19, 2006 9:54 am Post subject: |
|
|
I know nothing about Eclipse plugins (beside how to install them...) so I don't know if the following can be useful to you.
I am writing an AutoHotkey lexer for SciTE, which its own peculiarities, so it may not be usable. But perhaps the logic I put in it could be of some use for you. Warning: it is a work in progress, changing almost daily... _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
jonib
Joined: 09 May 2006 Posts: 66
|
Posted: Fri May 19, 2006 1:22 pm Post subject: |
|
|
| RobOtter wrote: |
Unfortunately, I donīt have any expertise in programming plugins for the Eclipse IDE |
Did you look at Colorer? it is a working syntax highlighter with a Eclipse plugin no programming needed, all it needs is AHK support and I'm working on it, I even downloaded Eclipse to test it works. |
|
| Back to top |
|
 |
jonib
Joined: 09 May 2006 Posts: 66
|
Posted: Fri May 19, 2006 1:35 pm Post subject: |
|
|
| PhiLho wrote: |
I am writing an AutoHotkey lexer for SciTE, which its own peculiarities, so it may not be usable. But perhaps the logic I put in it could be of some use for you. Warning: it is a work in progress, changing almost daily... |
I think it can be useful, thanks. |
|
| Back to top |
|
 |
|