[WIN] IDE: a modification, does auto-paste routines
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Nov 11, 2000
- 423 views
I've made a modification of Judith's elaboration of David's IDE, and sent it in to RDS. It gives the user the ability to "auto-paste" the *general form* of any Euphoria or Win32Lib routine into their program, from a list of all the routines. This gives the IDE user a couple of good things: 1. the *categorized* lists of the routines help newbies & others *see* what all routines are in fact available for use; 2. auto-pasting the "general form" of the routine lets the user know whether the routine is a function or procedure, and see what parameters it takes, and saves time & typing mistakes. There's a batch file included which allows easy switching back and forth between the original IDE and the modification. To use the mod, 1. switch to it via the batch file (not necessary to use the batch switch every time, just to switch); 2. then, in the Code Editor, click on a Euphoria or Win32Lib category, click on a routine in that category, then move the cursor in the editor where you want the routine to be and right click for "paste", & the routine will be pasted at the cursor. In the future, I will be adding the ability to jump directly to the html help documentation for each individual routine, and possibly a tooltip short description of each routine, too. (Kat found me a way to do the jumps to named places in the html docs, thanks Kat!) This modification works with Win32Lib v0.50, and IDE v0.9k4, and *must* be in the same folder as the IDE. It also helps to be in the same folder as Win32Lib (to be able to open the Win32Lib help doc, and the Wdemos, from the IDE). A batch file is provided to switch back and forth between the original IDE and the modification. The batch file renames a "txt" file into a "bat" file, so there would be *two* batch files after the first use, one to switch to the mod, and another to switch to the original IDE. Make *sure* you put the mod in the same folder as the IDE *FIRST*, before you use the batch file to try to switch to the mod; if you use the batch file with the mod *not* in the same folder as the IDE, and then move the mod files into a folder with the IDE, you will set up the possibility of deleting a necessary component of the IDE. This won't happen if you use the batch file in a folder *with* the IDE the first time, because it makes a *backup* of that component *if* it's there (it also makes a second batch file for switching back to the original; this provides protection from deleting the IDE component *if* you started *in* a folder with the IDE, but *not* if you start *outside* that folder). I should have made the batch file so this couldn't happen at all, but a word to the wise should be sufficient for now, I hope. I think IDE users will find this interesting & useful. Dan Moyer