1. Features for Euphoria's Editor

I think that it would be really helpful if Euphoria's ED allowed you to
browse files that you wanted to open, like in DOS Editor, and also if it had
online help, like in QBasic where you can press F1 for help on the command at
the cursor. I am I alone in feeling this or do other programmers just
memorise refman.doc ??

new topic     » topic index » view message » categorize

2. Re: Features for Euphoria's Editor

>I think that it would be really helpful if Euphoria's ED allowed you
>to browse files that you wanted to open, like in DOS Editor, and also if

>it had online help, like in QBasic where you can press F1 for help on
the
>command at the cursor. I am I alone in feeling this or do other
programmers >just memorise refman.doc ??

Let's see, ED in Euphoria 1.5a has F12... It is a custom command. Since
F11 doesn't have anything, we can put the F12 custom command to F11 and
put F12 as the help key (F1 is taken, and F12 is on the end, so it's
easier to hit than F11, or if you don't care for the rem out custom
command, change it :)
In any case, for a help key to have context based on the current cursor
position, it needs to find the current keyword. To do this, we need to
scan left until we find a character that cannot be in a function
(Anything other than A-Z, a-z, 0-9, and _), and then scan right for the
'('. Ok, now we have the name. Next, we place EUDIR into a variable, and
search EUDIR & "\doc\library.doc" for '<' & current_keyword & '>' and
place the cursor there in a new window if we find it. If it's not found,
then place a message. *OR*, if we want to go Qbasic style, we will need
to search the current file for 'function' & current_keyword or
'procedure' & current_keyword. If we don't find it then, we need to
search the include files for it. (HARD!!).......
Well, it can be done.........
If you don't want to go through making this... you can just do what we
do.....
<ESC> h l or <ESC> h r (Or sometimes even <ESC> h e !!
(h calls help, and l is Library, r is Refman, and e is ed.doc)
And search for the keyword plus a '>' so we don't get other references to
it. (Like See Also's or calls to it in examples) like 'printf>' or
something. (Without the single quotes, of course :)
Ok, as for the browser, here is what we do:
<ESC> d dir/w
This calls (D)OS and does a dir/w....
Well, it works.... (Hey, we're programmers, we don't want it too easy! ;)
(or do we....? :)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu