1. Edita Line numbers and Run

Hi Pete

I like to have line numbers. They are there in Edita but there is no space
between the rightmost digit of the line number and the beginning of the code such
as:
12number1 = 8
Would it be possible to have at least one space after the line number? This
would look cleaner to me and less confusing such as:
12 number1 = 8.

Another problem I have is Running a progran. When I load a prog such as your
ealtest.exw, the green light is on and I can run it. Now, if I write some code
such as:

include arwen.ew
with trace
trace(1)
sequence text
text = "Hello world"
puts(1,text)

The green light doesn't show up and the Run command is greyed out.
Can you help?
TIA
Serge
 

When all you have is a hammer, everything starts to look like a nail.

new topic     » topic index » view message » categorize

2. Re: Edita Line numbers and Run

On Sat, 21 Oct 2006 13:39:28 -0700, Serge Lavigne
<guest at RapidEuphoria.com> wrote:

>Hi Pete
>
>I like to have line numbers. They are there in Edita but there is no space
>between the rightmost digit of the line number and the beginning of the code such
>as:
>12number1 = 8
>Would it be possible to have at least one space after the line number? This
>would look cleaner to me and less confusing such as:
>12 number1 = 8.
No problem, there will be a new option (Options/Display, "Space after
margin") in the next release (whenever that might be).

>Another problem I have is Running a progran. When I load a prog such 
>as your ealtest.exw, the green light is on and I can run it. Now, if I 
>write some code such as:
>
>include arwen.ew
>with trace
>trace(1)
>sequence text
>text = "Hello world"
>puts(1,text)
>
>The green light doesn't show up and the Run command is greyed out.
>Can you help?
The green light shows up on files with an extension of "ex", "exw",
"exwc", "htm", "html", or "bat", and what "run" means is dependent on
which - ie ex.exe, exw.exe, exwc.exe, or the default association
(shellExecute "open"). Other file extensions (eg "txt") cannot be
"run". New ("[untitled]") files have Tools/Run and the ToolBar button
disabled, though the equivalent F5 demands you save the file (and
hence specify an extension) before attempting to run it, as of course
it must as (eg) exw.exe needs a 'real' file, not an untitled buffer in
Edita. It might be possible to:
  a) specify (eg) exw.exe as a 'default'/[untitled] run target
  b) write the file to (say) tmpNNNN.exw
  c) invoke "exw.exe tmpNNNN.exw"
  d) delete tmpNNNN.exw once no longer in use.
However I can't say I'll ever feel inclined to add that to Edita,
which is not to say I will refuse to accept changes anyone else wants
to make in this area (including running other file types/extensions).
By means of example, you can open an avi or mpg in Edita, and
(eventually) get gobbledegook on screen, and I could easily make F5
(and the toolbar button) run it, but it would be *SO* wrong for (say)
a Return then F5 to automatically save the file first as it does with
the above list - it would corrupt it pretty much irretrievably.

The next release will have a Tools/Indent option, which I suppose
could be hacked to 'prove' an [untitled] tab is Eu code...

Another, simpler, option is to leave the green light on for [untitled]
tabs, and like F5 force a save when clicked. If that's what you're
after, I can do that.

Now that you've read all that, let me know your reaction, whether you
want that last option or think you might have a bash at something else
yourself, if so I may be able to provide a few pointers.

Regards,
Pete

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

3. Re: Edita Line numbers and Run

Pete Lomax wrote:
> 
> On Sat, 21 Oct 2006 13:39:28 -0700, Serge Lavigne
> <guest at RapidEuphoria.com> wrote:
> 
> >Hi Pete
> >
> >I like to have line numbers. They are there in Edita but there is
> no space between the rightmost digit of the line number and the beginning of
> the code such as:</font></i>
> >12number1 = 8
> >Would it be possible to have at least one space after the line number?
> This would look cleaner to me and less confusing such as:</font></i>
> >12 number1 = 8.
> No problem, there will be a new option (Options/Display, "Space after
> margin") in the next release (whenever that might be).

Thanks. That will be great.

> 
> >Another problem I have is Running a progran. When I load a prog such 
> >as your ealtest.exw, the green light is on and I can run it. Now, if I 
> >write some code such as:
> >
> >include arwen.ew
> >with trace
> >trace(1)
> >sequence text
> >text = "Hello world"
> >puts(1,text)
> >
> >The green light doesn't show up and the Run command is greyed out.
> >Can you help?
> The green light shows up on files with an extension of "ex", "exw",
> "exwc", "htm", "html", or "bat", and what "run" means is dependent on
> which - ie ex.exe, exw.exe, exwc.exe, or the default association
> (shellExecute "open"). Other file extensions (eg "txt") cannot be
> "run". New ("[untitled]") files have Tools/Run and the ToolBar button
> disabled, though the equivalent F5 demands you save the file (and
> hence specify an extension) before attempting to run it, as of course
> it must as (eg) exw.exe needs a 'real' file, not an untitled buffer in
> Edita. It might be possible to:
>   a) specify (eg) exw.exe as a 'default'/[untitled] run target
>   b) write the file to (say) tmpNNNN.exw
>   c) invoke "exw.exe tmpNNNN.exw"
>   d) delete tmpNNNN.exw once no longer in use.
> However I can't say I'll ever feel inclined to add that to Edita,
> which is not to say I will refuse to accept changes anyone else wants
> to make in this area (including running other file types/extensions).
> By means of example, you can open an avi or mpg in Edita, and
> (eventually) get gobbledegook on screen, and I could easily make F5
> (and the toolbar button) run it, but it would be *SO* wrong for (say)
> a Return then F5 to automatically save the file first as it does with
> the above list - it would corrupt it pretty much irretrievably.
> 
> The next release will have a Tools/Indent option, which I suppose
> could be hacked to 'prove' an [untitled] tab is Eu code...
> 
> Another, simpler, option is to leave the green light on for [untitled]
> tabs, and like F5 force a save when clicked. If that's what you're
> after, I can do that.
> 
> Now that you've read all that, let me know your reaction, whether you
> want that last option or think you might have a bash at something else
> yourself, if so I may be able to provide a few pointers.
> 
> Regards,
> Pete

For the time being, I'm just fiddling with Euphoria and just try various
snippets of code ( an inelegant way of saying I'm a newbie). So being forced to
name and save a file before running it and maybe delete it just after because I
understand the concept and don't need the code anymore could be a bit
frustrating.

Ideally, Edita could Run the buffer content of the new "Untitled" code with
another run option "Run but do not Save".

If not possible than "Run but do not Save" option could transparently save a
temp file, run it then delete it.

Other than that, I guess that using F5 is the only solution.

Thanks for your elaborate explanation and for the next version with space before
margin

Regards

Serge
 
When all you have is a hammer, everything starts to look like a nail.

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

4. Re: Edita Line numbers and Run

On Sun, 22 Oct 2006 14:39:44 -0700, Serge Lavigne
<guest at RapidEuphoria.com> wrote:

>I'm a newbie
No problem, though I note you've been here nearly 6 months.
>So being forced to name and save a file before running it
<snip>
>could be a bit frustrating.
Actually, if I let you open a new [untitled] tab, then do 2-3 hrs of
edit-test cycles without saving it, before Edita or the os crashed and
you lost everything, now /that/ would be frustrating!

I think I'll leave the green light on for [untitled] tabs and force a
save if it is clicked.

Regards,
Pete

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

5. Re: Edita Line numbers and Run

If you read my post, I'm not talking about a program of a life time but again
snippets of code to understand basic concepts. so I suggested:

....Ideally, Edita could Run the buffer content of the new "Untitled" code with
another run option "Run but do not Save".

I don't know if this is feasable but to me that would be ideal.

I also have another minor problem with Edita. My system language is French but I
want to use Edita in English so I deleted all the other languages (including
French) except English but because Edita checks the system language, it
automatically wants to run in French and send me it"s little message "can't find
the French language file" I just have to close the message and Edita dutifully
goes to work in English. Nothing serious as I said but I tought you'd like to
know.

Regards

Serge

When all you have is a hammer, everything starts to look like a nail.

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

6. Re: Edita Line numbers and Run

On Mon, 23 Oct 2006 13:36:48 -0700, Serge Lavigne
<guest at RapidEuphoria.com> wrote:

>If you read my post, I'm not talking about a program of a life time 
>but again snippets of code to understand basic concepts. so I 
>suggested:
>
>....Ideally, Edita could Run the buffer content of the new "Untitled" code with
>another run option "Run but do not Save".
>
>I don't know if this is feasable but to me that would be ideal.

Everybody wants something different. That's OK. Discussing this until 
we get some kind of understanding is fine too, of course. That whole 
"my kid tripped over the power cable so Edita lost me 3hrs work" just 
does not sit happy with me (*big time*). Personally, I have a single 
"test.exw" file which must now have some 60 snippets I have tested.
As I still run 2.4, each is delimited by abort(0), which works fine
for me, sadly not in 2.5 and 3.0. [Someone should fix that]

If I want to revive one, I cut/paste it up top. Over 75% of said 
snippets should probably be deleted, but I can't be bothered
 - well it costs me nothing anyway.

So, if "test.exw" is not going to work, how, exactly, do I create 
uniquely named files, automatically and transparently, that act as a 
backup and are also automatically deleted if left undisturbed for N 
days? - It is probably not that hard, just not my bag, dude.

>I also have another minor problem with Edita. My system language is 
>French but I want to use Edita in English so I deleted all the other 
>languages (including French) except English but because Edita checks 
>the system language, it automatically wants to run in French and send 
>me it"s little message "can't find the French language file" I just 
>have to close the message and Edita dutifully goes to work in English. 
>Nothing serious as I said but I tought you'd like to know.
Unexpected!
If you copy ealng_en.txt to ealng_fr.txt it should work fine. 
Alternatively, you could mess with the setting of LANG in eaxlate.e 
(#809 = "British"... =usa/Canada/Aus/NZ/Eire) using whatever tests 
(user_id??) you can think of.

Regards,
Pete

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

7. Re: Edita Line numbers and Run

Pete Lomax wrote:
> 
> On Mon, 23 Oct 2006 13:36:48 -0700, Serge Lavigne
> <guest at RapidEuphoria.com> wrote:
> 
> >If you read my post, I'm not talking about a program of a life time 
> >but again snippets of code to understand basic concepts. so I 
> >suggested:
> >
> >....Ideally, Edita could Run the buffer content of the new "Untitled"
> code with another run option "Run but do not Save".</font></i>
> >
> >I don't know if this is feasable but to me that would be ideal.
> 
> Everybody wants something different. That's OK. Discussing this until 
> we get some kind of understanding is fine too, of course. That whole 
> "my kid tripped over the power cable so Edita lost me 3hrs work" just 
> does not sit happy with me (*big time*). Personally, I have a single 
> "test.exw" file which must now have some 60 snippets I have tested.
> As I still run 2.4, each is delimited by abort(0), which works fine
> for me, sadly not in 2.5 and 3.0. [Someone should fix that]
> 
> If I want to revive one, I cut/paste it up top. Over 75% of said 
> snippets should probably be deleted, but I can't be bothered
>  - well it costs me nothing anyway.
> 
> So, if "test.exw" is not going to work, how, exactly, do I create 
> uniquely named files, automatically and transparently, that act as a 
> backup and are also automatically deleted if left undisturbed for N 
> days? - It is probably not that hard, just not my bag, dude.

Forget it. Your bag of snippets is not a bad idea. I'l just copy the one I'm
intrested in running to a "Test2" file and run it from there.
 
> >I also have another minor problem with Edita. My system language is 
> >French but I want to use Edita in English so I deleted all the other 
> >languages (including French) except English but because Edita checks 
> >the system language, it automatically wants to run in French and send 
> >me it"s little message "can't find the French language file" I just 
> >have to close the message and Edita dutifully goes to work in English. 
> >Nothing serious as I said but I tought you'd like to know.
> Unexpected!
> If you copy ealng_en.txt to ealng_fr.txt it should work fine. 
> Alternatively, you could mess with the setting of LANG in eaxlate.e 
> (#809 = "British"... =usa/Canada/Aus/NZ/Eire) using whatever tests 
> (user_id??) you can think of.

A simple solution that fixed the problem. Should have tought about it myself.

> Regards,
> Pete

Thanks
Serge  
> 


When all you have is a hammer, everything starts to look like a nail.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu