1. Re: Edita, etc.

On Mon, 27 Jun 2005 20:57:41 -0500, "Pro Krastinashun"
<jxliv7 at hotmail.com> wrote:

>Hey, Pete
>
>Nice day in Texas, although in the 90's. It's almost 9 pm here, which means 
>it's probably 3 am the next day there for you. Where are you on the isle, by 
>the way?
North London
>
>I've noticed a couple of things about Edita I thought I'd ask you about.
>
>First, when I try to F5/run an .exwc file I get an "unrecognized file 
>extension" error window.
Look for this error in Run() in eacons.ew. Add "exwc" to the preceding
list (I simply hadn't thought of that as a valid extension)
>
>On a similar note, when I tried to add "syn" to the file list so I could get 
>the file color formatting to kick in, it told me that "syn" had already been 
>defined. Do I need to add a syn.syn and syn.clr file?
syn is specified in the None.syn file, which seems a mistake; although
it says:
-- The FileExtensions section in None.syn should at least specify syn
-- (otherwise syn comments are not colourised)
That does not happen anyway. So yes, delete "syn" from the None.syn
file (leaving line 29 just "FileExtensions"), and create a syn.syn
file if you want them coloured. It is not necessary to manually create
a syn.clr file, the options/colours function should do that. 

>The colors that one chooses from the Options/Colours menu and the .syn file 
>and/or .clr file have different names for what I think are the same thing, 
>operators and symbols. Can you clarify please?
You are correct. "Symbols" should be replaced with "Operators"
throughout easynld.e, easynclr.e, eatabs.e, and eacolor.ew.
I'll do that for the next release
>
>I'm wondering if inserting a "Reload" menu item would be worthwhile. Playing 
>with the .syn or .clr files means I need to exit Edita to get the changes 
>applied. Sometimes I get a situation where I've been editing a file in 
>notepad, etc., and rather than close it in Edita and reopen it, a "Reload" 
>would be useful. Just a thing to ponder if it's useful or not.
<aside>
Since 0.1.6, I've added a check at the end of saveFile() for
edita.ini, to stop manual edits being trashed on exit.
</aside>
A similar test could be used for .syn files, probably just invoking
initSyn(), as defined in easynld.e, which would need to be made
global, and perhaps a ChangeTo(currfile) or paintall() call. So you
wouldn't really need a manual "Reload" function.
>
>I know that one way to have any color changes applied is to open a supported 
>file type (in this case, only Euphoria so far) and when I change the colors 
>and click on "OK" the choices will be immediately applied. I like that.
>
>And speaking of colors, is it your intention to have any "illegals" appear 
>with the text being the normal background color and the background of the 
>character lit up in the "illegals" color? In other words, reverse 
>highlighted? On my Edita so far, the "^" caret and the combinations "\%" and 
>"%\" do that. After reading the delimiters and illegals section I'm still 
>not quite clear on the concept.
The reverse highlighting was deliberate.

The delimiters, illegals, and operators handling is probably flawed.
Originally I intended that <= would be fine, but => would not. However
a<-1 and similar caused a problem. I should probably have operators
and unaryoperators sections.

>
>One other thing, when I run a Euphoria app from Edita, the window it opens 
>up is non-resizeable, plus it has a gray shadow to the right. Nothing will 
>resize the window, from the mouse to the right-click menu. And when I click 
>the middle maximize/restore button, the window moves to the upper left hand 
>corner. I can move it back with the button. When it moves, it leaves a gray 
>shadow in the middle of the Edita window.
I've never seen anything like that. If you help me reproduce it, I'll
investigate. Do you get that effect with this:
include arwen.ew
constant Test=create(Window,"Test",0,0,10,10,200,200,0)
WinMain(Test,SW_NORMAL)

>
>I successfully added a 6th brace to the .syn file and I've got some 
>interesting colors, but I'm playing with what seems right to me. Again, nice 
>editor.
The different brackets, (, [, and { should really be completely
different colours.

Thanks for the feedback,
Pete

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu