From Paul Rider · 1996-04-08 20:37 · #73575 in EMULATE
In reply to New Asm,C++,C,68000,FORTRAN,HTML,... e by Darin McBride
Hello Darin,
DM> Question: Is this PM-based? If so, it would be great -
DM> the only PM-based C/C++ editors I know of are Borland's
DM> IDE and EPM 6.xx (when you can figure out how to do
No, it is currently text based. There is a DOS, and an OS/2 version available, the latter available only upon request (if enough request then I'll make it available via internet as well). We do have plans to make a PM version in the near future.
DM> it). What I would suggest (and, hell, yes, I would
DM> want to beta test it if you can make it available via
DM> internet rather than just F'REQ) is to allow macros
DM> similar to EPM's (type in 'if' and it fills in, for
DM> example, 'if () /* */
DM> {
DM> *
DM> }
DM> else
DM> {
DM> } /* end if */
DM> '
DM> and leaves the cursor at the '*'. BUT MAKE THIS
DM> CHANGEABLE because, for example, I prefer:
DM> 'if () { /* */
DM> *
DM> } else {
DM> } /* end if */
The macros can do what you asked, except that only single key strokes (currently) start a macro. For example if you wanted the if structure that you described, simply hit the macro record key, hit the key you want to assign it to, type in the if loop exactly as you want it, place the cursor where you want it, and hit the stop macro record key. The macros are extremely easy to define, and even easier to use. You can also call a macro from your own user defined menu(s), and/or your configured popup menu (of which there is one for each file type). As well suppose you assigned this if structure to alt-i when you were editing a C++ file, when you are editing an asm file (or any other type) you can have a completely different macro assigned to the same key. It determins which macro to execute based on the file type. This is expecially handy for programmers of multiple languages. You could hit alt-i in a c++ file, insert your custom if structure, and in a say C, ASM, or whatever it would do the same thing, but inserting the apropriately different if structure.
The macro's of this editor are by far my favorite feature. And I am looking forward to the PM version as much as you.
DM> '
DM> Another feature that I'm now used to in FTE is auto-
DM> indent. Hit a key, and it indents the row properly.
DM> For example:
DM> function_call( <--- hit enter here
DM> *<--- cursor moves to here
I have encorporated Auto-Indent as well but it functions (necessarily so) much the same as borland's editor does for example:
function_call( <----hit enter here
* <--hit tab to get here type something <---hit enter again
* <--cursor stays at it's block indent position till new one defined.
DM> and leaves the cursor at the '*'. BUT MAKE THIS
DM> CHANGEABLE because, for example, I prefer:
The macro's are _completely_ redefinable. also (and this gets _reallY_ interesting after awhile) ANY key is also redefinable. For instance if you are editing html you may want to redefine the enter key to type <BR> and then enter. OR suppose you don't like the way the cursor keys work, well then change it... you can even redefine keys such as a,b,c, to print e,f,g if you really want to <grin>.
DM> the user at each occurance whether she wants to open a
DM> new edit window, or modify the original one. (If there
DM> already are two edit windows on the same file open,
this option doesn't currently exist, it allows you to edit any number of the same file as you want. I will however add this option as the project nears completion.
DM> forget it... don't ask, open a third.) Oh, and make
DM> sure that I can edit FOO.C in C:\SRC as well as a FOO.C
DM> in C:\SRC\PROJECT ... and that it doesn't move the
DM> cursor in the wrong foo.c... :-)
of course...
It is now in it's *alpha release and is available via internet. Follow the instructions on the home page on how to get it.
DM> Just a little wish list, Paul... but as you can see,
DM> I've been looking for this for a long time - but I've
DM> never sat down to make it myself. :-)
I'm sure before the year's end you'll see the editor (or close to it) that you described out there... For now I want to get the main engine developed, and the text mode ones out (as I am a die hard text mode fan). But directly after that the PM version will also come out. contributing Alpha/Beta testers will recieve their versions at little or NO cost depending on the amount of contribution. Several people are testing it currently (alpha release) and are quite pleased with it at this stage.
http://aurora.carleton.ca/~prider/lk1.html
several things are not finished, but that's what alpha testing is for <grin>.
and yes it is written in C++.
Paul Rider.
--- Maximus/2 3.00
* Origin: Rodent! Bbs ( Os/2 ) (1:163/427)