1. Komodo Edit/Komodo IDE extension

For anyone who uses Komodo Edit or Komodo IDE, I have created an extension for Euphoria. Currently the extension is syntax highlighting only and in an alpha state. I would be interested in any feedback from other Komodo users. The compiled extension can be retrieved via:

https://bitbucket.org/jcowgar/komodo-euphoria-extension/downloads

The Mercurial repo w/full source can be checked out from:

https://bitbucket.org/jcowgar/komodo-euphoria-extension

Jeremy

new topic     » topic index » view message » categorize

2. Re: Komodo Edit/Komodo IDE extension

1.0.1 of the compiled extension was just uploaded, it supports type/procedure/function browsing as well as shebang recognition, various help URLs and sample displays when editing your colorscheme. Still very beta. Tested now on Linux and Windows (7 only).

Jeremy

new topic     » goto parent     » topic index » view message » categorize

3. Re: Komodo Edit/Komodo IDE extension

jeremy said...

1.0.1 of the compiled extension was just uploaded, it supports type/procedure/function browsing as well as shebang recognition, various help URLs and sample displays when editing your colorscheme. Still very beta. Tested now on Linux and Windows (7 only).

Jeremy

I'm using Windows 7. After installing the XPI file you provide, it doesn't seem to be working properly.

  1. Syntax highlighting is non-existent except for strings, ".e," "if...then," '--' comments, and numbers.
  2. Code folding is broken. I only get folds for 'for' and 'if' and those don't work accurately
  3. There is no "Help for Languages" entry for Euphoria
new topic     » goto parent     » topic index » view message » categorize

4. Re: Komodo Edit/Komodo IDE extension

euphoric said...
jeremy said...

1.0.1 of the compiled extension was just uploaded, it supports type/procedure/function browsing as well as shebang recognition, various help URLs and sample displays when editing your colorscheme. Still very beta. Tested now on Linux and Windows (7 only).

Jeremy

I'm using Windows 7. After installing the XPI file you provide, it doesn't seem to be working properly.

  1. Syntax highlighting is non-existent except for strings, ".e," "if...then," '--' comments, and numbers.
  2. Code folding is broken. I only get folds for 'for' and 'if' and those don't work accurately
  3. There is no "Help for Languages" entry for Euphoria

Ah, I forgot to mention. Komodo ships with Eiffel support and by default *.e is associated to the Eiffel language. Choose the menu entry "Edit > Preferences". From there choose "File Associations" from the "Category" tree view. Under the "Patterns" list, find *.e and click it. Then change the "Language" combo box to be "Euphoria" and click the "OK" button.

You will have to close the existing .e files or choose the menu entry "View > View As Language > Euphoria" but after setting the *.e association to Euphoria, you will no longer have to do that for newly opened files.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

5. Re: Komodo Edit/Komodo IDE extension

jeremy said...

Choose the menu entry "Edit > Preferences". From there choose "File Associations" from the "Category" tree view. Under the "Patterns" list, find *.e and click it. Then change the "Language" combo box to be "Euphoria" and click the "OK" button.

Did this for *.e, *.exw, and *.ew and now it looks right.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Komodo Edit/Komodo IDE extension

euphoric said...

Did this for *.e, *.exw, and *.ew and now it looks right.

I'll look and see how to (or if I can) assign those extensions to the Euphoria plugin. The plugin is still very new (a day or so) and is the first one I've written for Komodo, so... please give me feedback even if to say it works fine on all my source files.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

7. Re: Komodo Edit/Komodo IDE extension

jeremy said...

please give me feedback even if to say it works fine on all my source files.

One thing I can report on for now: It doesn't do bulk commenting/uncommenting correctly. Uses '#' symbol.

You want reports like that as I play with it?

new topic     » goto parent     » topic index » view message » categorize

8. Re: Komodo Edit/Komodo IDE extension

euphoric said...

One thing I can report on for now: It doesn't do bulk commenting/uncommenting correctly. Uses '#' symbol.

You want reports like that as I play with it?

Yup, exactly like that.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

9. Re: Komodo Edit/Komodo IDE extension

hallo

tried it today with komodo edit (never used it before)

seems it got some problems with syntaxcoloring

after this part of the code it painted every thing in blue

cdir = current_dir() 
 if cdir[length(cdir)] != '\\' then 
   cdir = cdir  & "\\" 
 end if  -- starting here, everything was painted blue for the rest of the file (about 700 lines) 
end while 
 
end procedure 
 
--************************************************************************ 
 
--The Event Loop 
 
procedure EventLoop() 
atom lind,surf,remain,control_height 
sequence imgname,prjnm,newid 
 
while True do 
WaitEvent() 
     
    if Event=RClick then 
        if EventOwner=ParentWnd then     
            AddNewControl(MouseX,MouseY) 
        end if 
    end if 
    if ctlEvent=CurChange then 
        SetCur(CR_SIZE) 
    end if 

the "end if" was the first with wrong color. maybe it helps Andreas

new topic     » goto parent     » topic index » view message » categorize

10. Re: Komodo Edit/Komodo IDE extension

andi49 said...

hallo

tried it today with komodo edit (never used it before)

seems it got some problems with syntaxcoloring

after this part of the code it painted every thing in blue

...snip...

the "end if" was the first with wrong color. maybe it helps

Thanks! I'll bet it is the "\\" escaping. It doesn't think that the string has ended. I'll fix that and euphoric's report this afternoon once I get back from ice cream cones w/the family smile

Jeremy

new topic     » goto parent     » topic index » view message » categorize

11. Re: Komodo Edit/Komodo IDE extension (1.0.2 released)

Version 1.0.2 has been released.

  • Fixes string quoting error with backslashes
  • Strings with no ending quote are painted as an error
  • New deprecate keyword added to the keyword highlighting

It can be downloaded at https://bitbucket.org/jcowgar/komodo-euphoria-extension/downloads

It does not fix euphoric's reported problem of the comment character. I have to ask on the Active State forum for an answer to that one.

Please see https://bitbucket.org/jcowgar/komodo-euphoria-extension/issues?status=new&status=open for a list of known open issues. Feel free to submit a bug report here or on the bitbucket tracker.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

12. Re: Komodo Edit/Komodo IDE extension (1.0.3 released)

Sorry to keep releasing new versions but I just figured out how to include a toolbox. First, make sure you have "View > Tabs & Sidebars > Toolbox" enabled. Then install the new 1.0.3 XPI file from https://bitbucket.org/jcowgar/komodo-euphoria-extension/downloads

Once restarted you will see tools such as:

  • Code - Comment
  • Code - Uncomment
  • Execute Program
  • Test Syntax

and you will also see "Abbreviations"

  • foreach
  • function
  • procedure

These expand (allowing you to change key items along the way) into full templates.

If you have cool macros/tools/snippets that you think others would be interested in, please let me know, I'll include them.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

13. Re: Komodo Edit/Komodo IDE extension (1.0.4 released)

1.0.4 has been released, this includes:

Download at: https://bitbucket.org/jcowgar/komodo-euphoria-extension/downloads

Jeremy

new topic     » goto parent     » topic index » view message » categorize

14. Re: Komodo Edit/Komodo IDE extension

I wanted to try this out but can't seem to get past the first hurdle.

I downloaded the Komodo editor v6.1.2, then downloaded your .xpi file for Eu, but cannot workout how to 'install' this extension. I've tried the obvious things ... read the help files, browsed all the menu options, searched the komodo directories for likely places, but cannot see what to do next.

What have I missed?

new topic     » goto parent     » topic index » view message » categorize

15. Re: Komodo Edit/Komodo IDE extension

DerekParnell said...

What have I missed?

I finally found this line ...

http://docs.activestate.com/komodo/4.4/udl.html said...

To install that extension, open the built .xpi file in Komodo.

Not exactly intuitive. I found this by accident. I was curious about the reference to the 'luddite' language so I googled that and discovered it was Komodo's own language for writing User-Defined-Languages, so I followed the links and there, near the very bottom, was the installation line. Reminds me a bit of Hitchhiker's Guide to the Galaxy.

new topic     » goto parent     » topic index » view message » categorize

16. Re: Komodo Edit/Komodo IDE extension

Opps, sorry about that Derek. I should create a readme for it. Also, I am going to move it into the editors repo on openeuphoria.org, so if you have enhancements/fixes you'd be able to contribute.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

17. Re: Komodo Edit/Komodo IDE extension

You can also dragon the .xpi file onto a running instance of Komodo and it'll install that way also.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

18. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)

On IRC there was discussion of how to assign shortcuts to certain tools.

  1. Right click the tool you wish to assign a shortcut key to and choose "Properties"
  2. Choose the "Key Binding" tab
  3. Select the "New Key Sequence" entry box
  4. Press the desired shortcut key
  5. Press the "Change" button
  6. Press the "OK" button

It should be noted, there are some OS assigned shortcuts (such as "F10" on Windows that activates the Menu Bar) that are OS shortcuts and cannot be used as any program shortcut.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

19. Re: Komodo Edit/Komodo IDE extension

jeremy said...

Opps, sorry about that Derek. I should create a readme for it. Also, I am going to move it into the editors repo on openeuphoria.org, so if you have enhancements/fixes you'd be able to contribute.

Jeremy

Nested comments are not being colored correctly.

/*  

   laslkjasld 
   /* 

      quyweqrwyterqwe 
   */ 
*/ 
new topic     » goto parent     » topic index » view message » categorize

20. Re: Komodo Edit/Komodo IDE extension (1.0.5 released)

DerekParnell said...

Nested comments are not being colored correctly.

Fixed in 1.0.5. Download from: https://bitbucket.org/jcowgar/komodo-euphoria-extension/downloads

Jeremy

P.S. Fixed up to 5 nested comments. 6 will not highlight properly.

new topic     » goto parent     » topic index » view message » categorize

21. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)

jeremy said...

It should be noted, there are some OS assigned shortcuts (such as "F10" on Windows that activates the Menu Bar) that are OS shortcuts and cannot be used as any program shortcut.

In Crimson, F10 runs my program. Do you mean that's a limitation of Komodo?

new topic     » goto parent     » topic index » view message » categorize

22. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)

euphoric said...
jeremy said...

It should be noted, there are some OS assigned shortcuts (such as "F10" on Windows that activates the Menu Bar) that are OS shortcuts and cannot be used as any program shortcut.

In Crimson, F10 runs my program. Do you mean that's a limitation of Komodo?

That's a limitation of many programs. I'd say a bug in Crimson actually. F10 is a standard Windows shortcut. It should not be overriden by any program.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

23. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)

jeremy said...
euphoric said...
jeremy said...

It should be noted, there are some OS assigned shortcuts (such as "F10" on Windows that activates the Menu Bar) that are OS shortcuts and cannot be used as any program shortcut.

In Crimson, F10 runs my program. Do you mean that's a limitation of Komodo?

That's a limitation of many programs. I'd say a bug in Crimson actually. F10 is a standard Windows shortcut. It should not be overriden by any program.

Jeremy

If that is true then the other standard Windows shortcut keys should also never be used by user applications...

Windows short cuts

new topic     » goto parent     » topic index » view message » categorize

24. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)

jeremy said...
euphoric said...
jeremy said...

It should be noted, there are some OS assigned shortcuts (such as "F10" on Windows that activates the Menu Bar) that are OS shortcuts and cannot be used as any program shortcut.

In Crimson, F10 runs my program. Do you mean that's a limitation of Komodo?

That's a limitation of many programs. I'd say a bug in Crimson actually. F10 is a standard Windows shortcut. It should not be overriden by any program.

I probably assigned it myself. :)

My Microsoft-created keyboard says F10 is "Spell," so I don't think F10 is a "standard, should not be overridden" key at all... especially since Microsoft themselves override it.

new topic     » goto parent     » topic index » view message » categorize

25. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)

euphoric said...

My Microsoft-created keyboard says F10 is "Spell," so I don't think F10 is a "standard, should not be overridden" key at all... especially since Microsoft themselves override it.

Weird, according to Microsoft's own UI guidelines, F10 is reserved to "Activate the Menu Bar" and Shift-F10 is reserved to "Activate the Context Menu". I loaded Microsoft Word and Microsoft Excel and F10 activates the menus or the Ribbon Bar in the 2010 versions.

Maybe the F10 UI guideline came about after your keyboard? Not sure, just making a wild guess.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

26. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)

DerekParnell said...
jeremy said...

That's a limitation of many programs. I'd say a bug in Crimson actually. F10 is a standard Windows shortcut. It should not be overriden by any program.

If that is true then the other standard Windows shortcut keys should also never be used by user applications...

Windows short cuts

That short cut page is a bit misleading. Many of those shortcuts are for specific Windows programs such as Windows Explorer. F10 and Shift-F10 (as well as a few others such as Alt+Space) are responded to by the Windows Operating System itself, not the program. A program may be able to override and capture those keystrokes but they shouldn't. Other OSes have followed suit with a few standard keys as well. Overriding F10 is like overriding Alt+Tab.

On that page it lists things such as F4 - Select a different location to browse in the Windows Explorer toolbar or Shift-Delete - Delete programs/files without throwing them into the recycle bin.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

27. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)

jeremy said...

That short cut page is a bit misleading ...

I know, but my initial reaction to your comment was along the lines ... "OGM, Microsoft said 'X' so thus it must be so". I'm not quite a fan of the idea that Microsoft/Apple/Xerox/etc ... have the final say on all that's good in UI.

By the way, the F10 key's functionality is duplicated by the ALT key. Redundant or a mistake ... you be the judge.

new topic     » goto parent     » topic index » view message » categorize

28. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)

DerekParnell said...

I know, but my initial reaction to your comment was along the lines ... "OGM, Microsoft said 'X' so thus it must be so". I'm not quite a fan of the idea that Microsoft/Apple/Xerox/etc ... have the final say on all that's good in UI.

By the way, the F10 key's functionality is duplicated by the ALT key. Redundant or a mistake ... you be the judge.

You know, I've used Alt in the past for that purpose, especially on programs such as IE that does not show the menubar by default. Never really thought about it. It is a bit silly. However, someone has to create a standard otherwise there will be as many standards as there are programmers. Who better than the designers of the GUI systems themselves? Right or wrong, I think consistency is better.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

29. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)

jeremy said...
DerekParnell said...
jeremy said...

That's a limitation of many programs. I'd say a bug in Crimson actually. F10 is a standard Windows shortcut. It should not be overriden by any program.

If that is true then the other standard Windows shortcut keys should also never be used by user applications...

Windows short cuts

That short cut page is a bit misleading. Many of those shortcuts are for specific Windows programs such as Windows Explorer. F10 and Shift-F10 (as well as a few others such as Alt+Space) are responded to by the Windows Operating System itself, not the program. A program may be able to override and capture those keystrokes but they shouldn't. Other OSes have followed suit with a few standard keys as well. Overriding F10 is like overriding Alt+Tab.

On that page it lists things such as F4 - Select a different location to browse in the Windows Explorer toolbar or Shift-Delete - Delete programs/files without throwing them into the recycle bin.

Jeremy

Well, having had to work with M$'s Visual Studio 2010 product, I can say that F10 definitely does not obey the standard. (When debugging, F10 is used to Step Over a line of code when doing line by line debugging.) M$ violates its own standard here (though the F10 thing might have been a holdover from the earliest versions of Visual Studio and its predecessors, I suppose).

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu