1. Edita updated
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jan 26, 2005
- 509 views
- Last edited Jan 27, 2005
Version 0.0.4 26/01/2005 Alpha version. Still no file save, undo/redo... New since 0.0.3: cursor + mouse handling largely rewritten delete, backspace, character&tab insert, home, end, return indent/unindent showSpecials (Ctrl+Shift+H) option added database.e and win32lib sections added to syn/Euphoria.syn syn load made much more robust. new syn/None.syn file added several integers were changed to be atoms. http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html A modified copy of arwen is included. Unpack to any directory and run edita.exw Thanks to all who responded with bug reports and suggestions. Some selected replies: Tommy Carlier wrote: >I just tried Edita, and I have to say it's very fast. Thanks >The only problem is that it crashes a lot. You should change all the >variables that are used for storing pointers or handles from Windows: >use atoms instead of integers. I'm not a complete idiot. Parts of me are missing. SNCR, these are fixed in 0.0.4 Juergen Luethje wrote: >Look how things are done in ConTEXT. Thanks for the tip, I've installed a copy. >I also like a keyboard shortcut and/or toolbar icon for toggling between >normal view, and showing the characters that are "really" in the file >(i.e. making Space, Tab, Linebreak characters visible by showing special >symbols for them). I hope this is understandable. I've added this for 0.0.4 ) >For general purpose usage, the only thing missing for me in ConTEXT is >automatic highlighting of URLs and making them "clickable" ... Interesting idea, this can be done. I've added a list of tokens (ftp,http,mailto,...) to the new None.syn file so I'll be able to trap that and process the rest of the url, so I can underline it. I haven't written the doubleclick processing (as per MEditor) yet, so I'll do this at the same time. > >Make everything as simple and straight-forward as possible. > >Concerning the SYN files, it's IMHO simpler when Edita defines its own >comment character(s), which is/are the same for all SYN files, rather >than defining individual comment character(s) in each SYN file. >This also would avoid the following current disadvantage, that you >mention in 'Euphoria.syn': >"If the language does not support line comments then you can't comment >the syn file!" The "problem" I was trying to address is that in C/C++ -- is an operator. If it is not in the operator list, Edita will use the illegal colour (which it will on ++ in Euphoria files) You may have a point, but I'll leave it alone for now. >Is it possible to add user-defined sections to a SYN file? People would >like to add syntax higliting for Win32Lib or ARWEN routines, for global >routines of their own often used private libraries etc. Yes. Just add a section (use any name, it is only used on the Colour window) starting in column 1 and a bunch of tokens (not in column 1). I've copied in sections for win32lib and database.e for 0.0.4 Feel free to rename, split up, or merge the sections, though a .syn file from one machine won't work with a .clr file from somewhere else, so start by pasting the .clr details into the Scheme section at the end of the .syn, and deleting the .clr file, which is (over)written one exit from the Colours window. >I compiled Edita version 0.04 (25/01/2005), Oops, I must have gotten out of sync somewhere. I've just packaged 0.0.4 so there'll be a wee bit of confusion over version nos, but no doubt 0.0.5 will be out fairly shortly. (not as if it matters in something which can't save files). I didn't get round to trying them, maybe tomorrow. Regards, Pete
2. Re: Edita updated
- Posted by "Juergen Luethje" <j.lue at gmx.de> Jan 27, 2005
- 477 views
Pete Lomax wrote: > Version 0.0.4 26/01/2005 > > Alpha version. Still no file save, undo/redo... > > New since 0.0.3: > cursor + mouse handling largely rewritten I suppose the mouse cursor will later look like | when it's over the text area. <snip> > Juergen Luethje wrote: > >> Look how things are done in ConTEXT. > Thanks for the tip, I've installed a copy. [showSpecials option] > I've added this for 0.0.4 ) Nice! >> For general purpose usage, the only thing missing for me in ConTEXT is >> automatic highlighting of URLs and making them "clickable" ... > Interesting idea, this can be done. I've added a list of tokens > (ftp,http,mailto,...) to the new None.syn file so I'll be able to trap > that and process the rest of the url, so I can underline it. I haven't > written the doubleclick processing (as per MEditor) yet, so I'll do > this at the same time. Cool, thank you. I was afraid that it's hard to implement, and so I'm happy now to read that it can be done. >> Make everything as simple and straight-forward as possible. >> >> Concerning the SYN files, it's IMHO simpler when Edita defines its own >> comment character(s), which is/are the same for all SYN files, rather >> than defining individual comment character(s) in each SYN file. >> This also would avoid the following current disadvantage, that you >> mention in 'Euphoria.syn': >> "If the language does not support line comments then you can't comment >> the syn file!" > The "problem" I was trying to address is that in C/C++ -- is an > operator. If it is not in the operator list, Edita will use the > illegal colour (which it will on ++ in Euphoria files) > You may have a point, but I'll leave it alone for now. How about using ';' as character for line comments, like e.g. in INI files? >> Is it possible to add user-defined sections to a SYN file? People would >> like to add syntax higliting for Win32Lib or ARWEN routines, for global >> routines of their own often used private libraries etc. > Yes. Just add a section (use any name, it is only used on the Colour > window) starting in column 1 and a bunch of tokens (not in column 1). Very nice! Now I realized that Edita's syntax highliting is powerful, e.g. it highlights matching braces, using different colors for different levels. I also saw, that a choice in the Colours window (as well as in the Fonts window) is immediately applied for preview. Good job, Pete! If you'll keep such a high quality until Edita is mature, I'll probably throw ConTEXT out of my Window(s). <snip> >> I compiled Edita version 0.04 (25/01/2005), > Oops, I must have gotten out of sync somewhere. I took that info from the "readme.txt" file. The name of the regarding archive is "Z003.zip". > I've just packaged > 0.0.4 so there'll be a wee bit of confusion over version nos, but > no doubt 0.0.5 will be out fairly shortly. (not as if it matters > in something which can't save files). I didn't get round to trying > them, maybe tomorrow. No problem. I'll keep the files on the server for a while. Regards, Juergen
3. Re: Edita updated
- Posted by "Juergen Luethje" <j.lue at gmx.de> Jan 27, 2005
- 501 views
Me wrote: <snip> > Very nice! Now I realized that Edita's syntax highliting is powerful, > e.g. it highlights matching braces, using different colors for different > levels. I also saw, that a choice in the Colours window (as well as in > the Fonts window) is immediately applied for preview. I forgot to mention, that I realized that the Colours and the Fonts window are not modal. Just in case that this was not intended: You know that modal Windows can easily be simulated in ARWEN? See "demo_memo.exw" for an example ( lines at the beginning of function handler_MAIN() ). I also would like to be able to highlight the current line. <snip> Regards, Juergen