Amiga.org

Operating System Specific Discussions => AROS Research Operating System => Topic started by: trekiej on August 23, 2011, 05:59:07 AM

Title: Text Editor
Post by: trekiej on August 23, 2011, 05:59:07 AM
Are there any text editors like Notepad++ for Aros.
I would like to use it for E and PortablE.
Thanks.
P.S. My main machine is at a diff. location.
Title: Re: Text Editor
Post by: Mazze on August 23, 2011, 07:43:47 AM
There aren't much choices. There is Annotate and GVIM. Latter requires learning of a lot of keystrokes but is very efficient.
Title: Re: Text Editor
Post by: trekiej on August 23, 2011, 07:46:55 AM
Thanks, It looks like I will be learning E or PortablE on Amikit or Windows native.
I have to check my system out to see if I have Amikit on it anymore.
Title: Re: Text Editor
Post by: Duce on August 23, 2011, 08:11:44 AM
I like Annotate a lot, but have not used the AROS version but I imagine it's extremely similar to the OS4 version.  I'm extremely happy with Annotate, powerful and runs without a hitch for me.

CygnusED is the classic pick for text editors, but unsure if it's available on AROS.  It's still my fave by far, but I've yet to purchase it for OS4 due to the fact I can't do so via the internet in a direct delivery fashion, it's only sold via web and snail mailed AFAIK.  CED is the best text editor I've ever used on any platform, tbh.
Title: Re: Text Editor
Post by: Mazze on August 23, 2011, 08:27:03 AM
Only possibility to run CED on AROS is with UAE.

Here's what Olaf wrote in this interview:
http://obligement.free.fr/articles_traduction/itwbarthel_en.php

Quote
As for AROS, CygnusEd is too much of an AmigaOS application, developed  for the kind of machine the Amiga was in its 68000 hardware form, to allow it to be ported. I am afraid that a more reasonable  approach would be to start over from scratch instead. That kind of effort is not on my todo-list right now.
Title: Re: Text Editor
Post by: Duce on August 23, 2011, 08:47:44 AM
Ahh cool Mazze, thanks for the CED/AROS update!  Hopefully as AROS matures programs like CED will be ported, or re-written in this case as your linked article describes, to AROS.
Title: Re: Text Editor
Post by: Thomas on August 23, 2011, 10:56:31 AM
IMHO the default editor (which is called "Editor") has many features inspired by CED. Although it is still rather limited, I found it useful enough to use it for coding.
Title: Re: Text Editor
Post by: Hattig on August 23, 2011, 11:43:23 AM
It would really help if people who wrote OS4 (and Aros, etc) software would actually do more than just stick a .lha on Aminet when releasing it. A web page with some details and screenshots can do wonders - and be really helpful for people who might not be on their Amiga at the time.

An Annotate screenshot that I found - http://www.google.co.uk/imgres?q=amiga+annotate&um=1&hl=en&safe=active&sa=N&biw=1222&bih=683&tbm=isch&tbnid=0qxvF8d3ZEsfhM:&imgrefurl=http://thebucketdiary.wordpress.com/category/the-bucket-programming-corner/amiga-os4-x/&docid=3eSBPbkRVb-xdM&w=686&h=504&ei=doNTToWGGo6EhQfe9uWGBg&zoom=1&iact=rc&dur=253&page=1&tbnh=132&tbnw=178&start=0&ndsp=26&ved=1t:429,r:2,s:0&tx=17&ty=88
Title: Re: Text Editor
Post by: trekiej on August 23, 2011, 03:19:20 PM
I have a feeling that Win will be the way to go for now.
I am not for sure how well PortablE works on Aros.
Title: Re: Text Editor
Post by: trekiej on August 24, 2011, 07:00:18 AM
I had to put MinGW in the Path variable to get PEGCC to work.
Title: Re: Text Editor
Post by: develin on August 24, 2011, 08:50:42 AM
The good thing about Annotate is that it has syntax-support for AmigaE from start in your case =) A side note running it on AROS is that the palette is a little bit limited. Maybe a port of "Fullpalette" on AROS would be a great thing to solve this, or that we add RGB-Pen support in Annotate. I've told "Deniil" that I would like to see this in a future version on Annotate and I hope that it won't take too long =)

There is a beta-version of Annotate 3 in a test phase right now (only on OS4 atm.) but it will be available on all Amigasystems when the full release will be done.

This is the first time I got Annotate to compile on AROS btw. : http://twitpic.com/r003z
Title: Re: Text Editor
Post by: trekiej on August 24, 2011, 09:21:40 AM
Thanks Develin, I have found this link to be useful so far.
http://www.amigau.com/c-programming/amigae/etut.htm
Title: Re: Text Editor
Post by: Mazze on August 24, 2011, 10:28:58 AM
Quote from: develin;655970
The good thing about Annotate is that it has syntax-support for AmigaE from start in your case =) A side note running it on AROS is that the palette is a little bit limited. Maybe a port of "Fullpalette" on AROS would be a great thing to solve this, or that we add RGB-Pen support in Annotate. I've told "Deniil" that I would like to see this in a future version on Annotate and I hope that it won't take too long =)

Please, do. Obtaining pens with e.g. ObtainBestPen() is the system friendly way to get pens. If that isn't possible, tell me what specific feature of FullPalette does Annotate need.

Quote
There is a beta-version of Annotate 3 in a test phase right now (only on OS4 atm.) but it will be available on all Amigasystems when the full release will be done.
Great.
Title: Re: Text Editor
Post by: deniil on August 24, 2011, 05:15:05 PM
@Mazze

Obtaining (and therefore locking) a minimum of 15 different pens just for the window itself, then theoretically an infinit amount more for the syntax is not the way to go.

One alternative is to lock one pen exclusively and change it for every gfx element to draw. I do that in Detris when using "RGB mode" but often there is not a single pen left to make an exclusive lock on because programs have been forced to obtaining thousands of pens only because the Amiga gfx API is so increadably crappy when it comes to dealing with colors.

As far as I know there simply doesn't exist any function to draw a pixel/line/rectangle or text using RGB. Even using p96/cgfx there is still no RGB text function.

What do you do in such a crappy system?? :-(
Title: Re: Text Editor
Post by: Piru on August 24, 2011, 05:28:32 PM
Quote from: deniil;656016
programs have been forced to obtaining thousands of pens only because the Amiga gfx API is so increadably crappy when it comes to dealing with colors.

As far as I know there simply doesn't exist any function to draw a pixel/line/rectangle or text using RGB. Even using p96/cgfx there is still no RGB text function.

What do you do in such a crappy system?? :-(
Code: [Select]
SetRPAttrs(rp, RPTAG_PenMode, FALSE, RPTAG_FgColor, 0xFFCC88, TAG_DONE);
Example code here: http://www.sintonen.fi/src/misc/truecolortest.c (while written or MorphOS this extension has been adopted by AROS)
Title: Re: Text Editor
Post by: trekiej on August 24, 2011, 09:07:40 PM
Thank you Piru.
Title: Re: Text Editor
Post by: deniil on August 25, 2011, 03:28:31 PM
@Piru

Quote
SetRPAttrs(rp, RPTAG_PenMode, FALSE, RPTAG_FgColor, 0xFFCC88, TAG_DONE);


Cool! Now let's hope Hype gets their act together and puts this into gfx.lib as well.

I don't need to setup some funky special custom messy bitmap myself to use this, do I?
Title: Re: Text Editor
Post by: Piru on August 25, 2011, 03:34:34 PM
Quote from: deniil;656103
@Piru
I don't need to setup some funky special custom messy bitmap myself to use this, do I?
You don't.

Of course if you wish to support planar modes you should have the code check for the bitmap depth and if <=8 use the old pen code. This assuming your app is opening on a public screen. If you use a custom truecolor screen then you don't need to worry about the pen stuff at all.