1. Syntax Highlighting Editor

Very nice!
This has very good potential to become complete Euphoria editor which I
would use.
Maybe integrate it into IDE?

One suggestion:
When you press tab and type something and press enter cursor goes to start
of new line,
it would be better if it would make so many spaces as there are in  previous
line at start.

new topic     » topic index » view message » categorize

2. Re: Syntax Highlighting Editor

Don,

I agree with tone, your editor is *very* nice, and I look forward to seeing
it integrated into the IDE  :)

Two questions:
1.  could you add bookmarks?
2.  could you make your font dialog pickup & make available all the fonts
available to a users system?

Dan Moyer

----- Original Message -----
From: <tone.skoda at siol.net>
To: "EUforum" <EUforum at topica.com>
Sent: Monday, June 03, 2002 3:51 AM
Subject: Syntax Highlighting Editor


>
> Very nice!
> This has very good potential to become complete Euphoria editor which I
> would use.
> Maybe integrate it into IDE?
>
> One suggestion:
> When you press tab and type something and press enter cursor goes to start
> of new line,
> it would be better if it would make so many spaces as there are in
previous
> line at start.
>
>
>
>

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

3. Re: Syntax Highlighting Editor

Don,

I lost syntax coloring after changing font (to Courier New), but it came
back when I opened up editor.exw, but only for it, not any other files I
open.

Oh, one more suggestion:
it *might* be nice to be able to toggle from:
"use the horiz scroll bar to see all of a long line" as it is now, to:
"wrap long lines around so everything can be seen at once".

The way you have it now is very useful for seeing the actual organization of
a program, but word wrap of long lines makes it easier to see everything &
make changes to code a little faster.

Just a thought.

Dan Moyer

----- Original Message -----
From: <tone.skoda at siol.net>
To: "EUforum" <EUforum at topica.com>
Sent: Monday, June 03, 2002 3:51 AM
Subject: Syntax Highlighting Editor


>
> Very nice!
> This has very good potential to become complete Euphoria editor which I
> would use.
> Maybe integrate it into IDE?
>
> One suggestion:
> When you press tab and type something and press enter cursor goes to start
> of new line,
> it would be better if it would make so many spaces as there are in
previous
> line at start.
>
>
>
>

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

4. Re: Syntax Highlighting Editor

Ray Smith wrote:

> I am not sure if I have ever seen David Cuny's "EE".  So it 
> is kind of hard to comment on how alike it will be. 

On the other hand, I've seen your Editor, and it's quite nice. 

EE is basically a combination of the DOS editor and the QBasic editor, 
customized for Euphoria. I've also written the feature-incomplete editor 
that's currently in the IDE. It does have two features I'd love to see in 
your editor:

1. Autocompletion of code blocks. So if you type the start of a code block, 
like "while", it automatically generates the "end while", like this:

Type "while" and press the spacebar:

   while _

the "do" and "end while" are automatically filled in:

   while _ do
   end while

type the test "flag" and press enter:

   while flag _ do

and instead of breaking the line in half, you are placed on the next line, 
indented into the block:

   while flag do
      _
   end while

Robert's ED has a similar feature. It's (to my mind) a "must have" feature, 
because once you get used to it, you won't want to go back.


2. Context-sensitive help. A popup appears to show you the arguments a 
routine expects. This isn't as critical, but it's quite nice. So if you type:

   if open(_

then a "hint" appears above or below the current line (depending on the 
amount of space available) with something like this:

    open( FILENAME, mode )

and when you get to the second arg:

   if open( "myfile", 

that one is highlit:

   open( filename, MODE )

not really essential, but nice and helpful. People used to the MS code 
editors will love you for it.

-- David Cuny

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

5. Re: Syntax Highlighting Editor

>On the other hand, I've seen your Editor, and it's quite nice.
>
>EE is basically a combination of the DOS editor and the QBasic editor,
>customized for Euphoria. I've also written the feature-incomplete editor
>that's currently in the IDE. It does have two features I'd love to see in
>your editor:
>
>1. Autocompletion of code blocks. So if you type the start of a code block,
>like "while", it automatically generates the "end while", like this:
>
>Type "while" and press the spacebar:
>
>    while _
>
>the "do" and "end while" are automatically filled in:
>
>    while _ do
>    end while
>
>type the test "flag" and press enter:
>
>    while flag _ do


My copy already does this =)
Works just fine for (for/while/if) statements.


>and instead of breaking the line in half, you are placed on the next line,
>indented into the block:
>
>    while flag do
>       _
>    end while
>


Well I did not think of that.  Not a half bad idea though.  My copy does do 
auto-indent now, but I never thought about hitting a ret in the middle of 
the auto-complete.  Shouldnt be all that hard to code into it though.


>Robert's ED has a similar feature. It's (to my mind) a "must have" feature,
>because once you get used to it, you won't want to go back.


(nods in agreement)


>2. Context-sensitive help. A popup appears to show you the arguments a
>routine expects. This isn't as critical, but it's quite nice. So if you 
>type:
>
>    if open(_
>
>then a "hint" appears above or below the current line (depending on the
>amount of space available) with something like this:
>
>     open( FILENAME, mode )
>
>and when you get to the second arg:
>
>    if open( "myfile",
>
>that one is highlit:
>
>    open( filename, MODE )
>
>not really essential, but nice and helpful. People used to the MS code
>editors will love you for it.
>
>-- David Cuny


Yeah, I was saving that for version three.  Which I have already started on 
btw.  I am attempting to "reverse engineer" the RichEdit control.  My 
Syntax2 control used RichEdit, but I coded it for Version 2 (unknowingly) 
which left out the version one users.  My Syntax3 control is based on 
Version 1 since Ver2 & 3 both have Ver1 emulators.  It will be able to 
handle text size based on which version you have.  The better the bigger :P

I am reverting back (or attempting to) because no matter how I code it in 
Euphoria, the standard windows controls will always be faster.  Also its 
quite nice *not* to have to worry about cursors, scroll bars, selections, 
fonts, etc.  And not only will it be faster, it will be hugely smaller (or 
not I guess depending on how much extra features I can pack into it).

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

6. Re: Syntax Highlighting Editor

Don Philips wrote:

>>1. Autocompletion of code blocks. 
> My copy already does this =)

Excellent! I must have had an old version.

>>2. Context-sensitive help. 
> Yeah, I was saving that for version three.

Sounds great, I'm looking forward to seeing it in the IDE.

D'oh! I forgot the most important feature: allowing the user to set the 
colors. (Let me guess: you've already done that, too.)

-- David Cuny

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

7. Re: Syntax Highlighting Editor

> >>1. Autocompletion of code blocks.
> > My copy already does this =)
>
>Excellent! I must have had an old version.

Everyone does.  I have not as yet posted an update to the RDS website.

> >>2. Context-sensitive help.
> > Yeah, I was saving that for version three.
>
>Sounds great, I'm looking forward to seeing it in the IDE.

Unfortunately, I do not know (at this time) if Version3 will be compatible 
with the IDE.  Version 3 is more along the lines of a true stand alone 
editor and would make integration difficult.  Also supporting the 
integration itself is taxing to say the least :P  Version 2 was not really 
meant as a stand alone editor per se.  I built it up for testing purposes 
into the IDE and well, it looked good and worked good so I thought I would 
post it.

>D'oh! I forgot the most important feature: allowing the user to set the
>colors. (Let me guess: you've already done that, too.)
>
>-- David Cuny

Its in the original version actually :P (ROFL).  Just click on the little 
graphic tool button in the lower right hand corner to set the options for 
undo levels, tab spacing, font, and yes colors.  On the far left side pick 
which list or option you wish to have a color change to and click the color 
button at the bottom.  Enjoy!

Don

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

Search



Quick Links

User menu

Not signed in.

Misc Menu