1. Komodo Edit/Komodo IDE extension
- Posted by jeremy (admin) Aug 29, 2011
- 2188 views
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
2. Re: Komodo Edit/Komodo IDE extension
- Posted by jeremy (admin) Aug 30, 2011
- 2109 views
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
3. Re: Komodo Edit/Komodo IDE extension
- Posted by euphoric (admin) Aug 30, 2011
- 2065 views
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.
- Syntax highlighting is non-existent except for strings, ".e," "if...then," '--' comments, and numbers.
- Code folding is broken. I only get folds for 'for' and 'if' and those don't work accurately
- There is no "Help for Languages" entry for Euphoria
4. Re: Komodo Edit/Komodo IDE extension
- Posted by jeremy (admin) Aug 30, 2011
- 2016 views
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.
- Syntax highlighting is non-existent except for strings, ".e," "if...then," '--' comments, and numbers.
- Code folding is broken. I only get folds for 'for' and 'if' and those don't work accurately
- 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
5. Re: Komodo Edit/Komodo IDE extension
- Posted by euphoric (admin) Aug 31, 2011
- 1945 views
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.
6. Re: Komodo Edit/Komodo IDE extension
- Posted by jeremy (admin) Aug 31, 2011
- 2001 views
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
7. Re: Komodo Edit/Komodo IDE extension
- Posted by euphoric (admin) Aug 31, 2011
- 1947 views
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?
8. Re: Komodo Edit/Komodo IDE extension
- Posted by jeremy (admin) Aug 31, 2011
- 1958 views
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
9. Re: Komodo Edit/Komodo IDE extension
- Posted by andi49 Aug 31, 2011
- 1959 views
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
10. Re: Komodo Edit/Komodo IDE extension
- Posted by jeremy (admin) Aug 31, 2011
- 1934 views
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
Jeremy
11. Re: Komodo Edit/Komodo IDE extension (1.0.2 released)
- Posted by jeremy (admin) Aug 31, 2011
- 1955 views
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
12. Re: Komodo Edit/Komodo IDE extension (1.0.3 released)
- Posted by jeremy (admin) Sep 01, 2011
- 1940 views
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
13. Re: Komodo Edit/Komodo IDE extension (1.0.4 released)
- Posted by jeremy (admin) Sep 02, 2011
- 1887 views
1.0.4 has been released, this includes:
- a re-organization of the Tools folder
- Pastey support (highlight what you want to paste to Euphoria's own Pastey server (http://openeuphoria.org/pastey/index.wc) and click the Pastey option.
Download at: https://bitbucket.org/jcowgar/komodo-euphoria-extension/downloads
Jeremy
14. Re: Komodo Edit/Komodo IDE extension
- Posted by DerekParnell (admin) Sep 02, 2011
- 1818 views
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?
15. Re: Komodo Edit/Komodo IDE extension
- Posted by DerekParnell (admin) Sep 02, 2011
- 1807 views
What have I missed?
I finally found this line ...
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.
16. Re: Komodo Edit/Komodo IDE extension
- Posted by jeremy (admin) Sep 02, 2011
- 1822 views
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
17. Re: Komodo Edit/Komodo IDE extension
- Posted by jeremy (admin) Sep 02, 2011
- 1822 views
You can also dragon the .xpi file onto a running instance of Komodo and it'll install that way also.
Jeremy
18. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)
- Posted by jeremy (admin) Sep 02, 2011
- 1837 views
On IRC there was discussion of how to assign shortcuts to certain tools.
- Right click the tool you wish to assign a shortcut key to and choose "Properties"
- Choose the "Key Binding" tab
- Select the "New Key Sequence" entry box
- Press the desired shortcut key
- Press the "Change" button
- 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
19. Re: Komodo Edit/Komodo IDE extension
- Posted by DerekParnell (admin) Sep 02, 2011
- 1819 views
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 */ */
20. Re: Komodo Edit/Komodo IDE extension (1.0.5 released)
- Posted by jeremy (admin) Sep 02, 2011
- 1871 views
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.
21. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)
- Posted by euphoric (admin) Sep 02, 2011
- 1808 views
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?
22. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)
- Posted by jeremy (admin) Sep 02, 2011
- 1802 views
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
23. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)
- Posted by DerekParnell (admin) Sep 02, 2011
- 1850 views
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...
24. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)
- Posted by euphoric (admin) Sep 02, 2011
- 1828 views
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.
25. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)
- Posted by jeremy (admin) Sep 02, 2011
- 1806 views
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
26. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)
- Posted by jeremy (admin) Sep 02, 2011
- 1863 views
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...
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
27. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)
- Posted by DerekParnell (admin) Sep 03, 2011
- 1804 views
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.
28. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)
- Posted by jeremy (admin) Sep 03, 2011
- 1830 views
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
29. Re: Komodo Edit/Komodo IDE extension (assigning shortcut keys to tools)
- Posted by jimcbrown (admin) Sep 03, 2011
- 1794 views
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...
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).