Re: Edita Line numbers and Run

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu