Page 1 of 2

PHP Editor

Posted: Sat Aug 27, 2005 5:46 am
by s.dot
I've read through the favorite editor thread, and people seem to be announcing what they use, but I can't seem to find one that has what I want

I would like an editor that is almost like notepad but

has syntax highlighting
collapsable code blocks
perhaps support for the PHP manual

That's about all I need, as I don't use the fancy things in editors anyways. My current editor (arachnophilia) is very hard on my system (uses up too much resources). I need something light. 8)

Any suggestions?

Posted: Sat Aug 27, 2005 6:12 am
by n00b Saibot
I would suggest HAPEdit. :D

features include

+ very much like NotePad
+ customizable color-coding
+ FTP Manager
+ SQL Console
+ Code Explorer
+ supports HTML, ASP, PHP, JS, CSS
+ comes with Tiny HTML Validator
+ has support for HTML and PHP help manuals

but

- No Collaspsible Code Blocks

the choice is yours...

Re: PHP Editor

Posted: Sat Aug 27, 2005 6:13 am
by jmut
scrotaye wrote:I've read through the favorite editor thread, and people seem to be announcing what they use, but I can't seem to find one that has what I want

I would like an editor that is almost like notepad but

has syntax highlighting
collapsable code blocks
perhaps support for the PHP manual

That's about all I need, as I don't use the fancy things in editors anyways. My current editor (arachnophilia) is very hard on my system (uses up too much resources). I need something light. 8)

Any suggestions?
Quanta

Posted: Sat Aug 27, 2005 8:44 am
by Chris Corbyn
If you're using windows I can honestly say that Crimson Editor is what you want... it fits on a floppy just about. If you're on Linux... most of the standard editors can be extended (Emacs, Vi).

They are covered in that thread.... I think it's just gotten beyond any use now it's so long.

EDIT | Been a while since I used crimson but it never had collapsable code bloacks last time I used it... it's too light.

Posted: Sat Aug 27, 2005 9:16 am
by s.dot
I downloaded the editors.

So far Crimson looks the best to me. If it had a 'New PHP File' instead of creating a text file it'd be really nice.

HAPedit was good too, but that syntax highlighting and mouseovers were horrid. I'm sure that's configurable though.

Re: PHP Editor

Posted: Sat Aug 27, 2005 10:18 am
by neophyte
scrotaye wrote:I've read through the favorite editor thread, and people seem to be announcing what they use, but I can't seem to find one that has what I want

I would like an editor that is almost like notepad but

has syntax highlighting
collapsable code blocks
perhaps support for the PHP manual

That's about all I need, as I don't use the fancy things in editors anyways. My current editor (arachnophilia) is very hard on my system (uses up too much resources). I need something light. 8)

Any suggestions?

On linux I love Quanta Plus development environment. Has everything in your list and more and it is free!

Posted: Sat Aug 27, 2005 2:59 pm
by Bill H
If it had a 'New PHP File' instead of creating a text file it'd be really nice.
You create a new file. That file is not, by definition, any specific kind of file. As soon as you save it with a "php" extension it becomes a new php file. What's so hard about that?

Posted: Sun Aug 28, 2005 12:28 am
by s.dot
Bill H wrote:
If it had a 'New PHP File' instead of creating a text file it'd be really nice.
You create a new file. That file is not, by definition, any specific kind of file. As soon as you save it with a "php" extension it becomes a new php file. What's so hard about that?
Nothing hard about that. I was learning the editor. I now just open a new blank document, then choose PHP syntax highlighting, and all's good.

I really like Crimson.

Posted: Sun Aug 28, 2005 5:16 am
by shiznatix
but does crimson have colapsable code blocks now?

Posted: Sun Aug 28, 2005 8:13 am
by Bill H
It does not.

Pardon my ignorance, but what are collapsable code blocks?

Posted: Sun Aug 28, 2005 8:42 am
by feyd
basically, it allows you to visually hide a block of code. These are often delimited by {}, but some editors support defining regions of "hidables" as well.

Posted: Sun Aug 28, 2005 9:54 am
by s.dot
My first instance of dealing with collapsable code blocks was writing sample java programs using JCreator. Collapsing a code block when dealing with a long piece of code is extremely nice! It allows you to forget about what that block does and concentrate only on what you're writing.

Posted: Sun Aug 28, 2005 10:50 am
by Bill H
Ah. At the risk of sounding arrogant, it seems to me that keeping code broken into manageable functions avoids the need for anything like that. I've never felt the need to get any code"out of my way" in that fashion, and I've been doing this since 1980 or so, including applications and systems in the hundreds of thousands of lines. That's what functions and includes are for.

Posted: Sun Aug 28, 2005 11:04 am
by nielsene
A few places where code hiding or "folding" can be extemely useful.

If you're using DocBlocks and have well documented code, its nice to be able to hide all the documentation and focus on the code, or vice versa. In a lot of cases the DocBlocks can be much larger than the function body... I often work on a remote server via a simple terminal and within-the-console Emacs. On many occasions the "page-up/page-down" keys get captured in wierd ways, so scrolling through the fine can get painful. If the code or doc blocks can be collapsed its much easier. Alsmost like a index or table of contents.

If you have a collection of small classes in a single file: exceptions, helpers, iterators, etc. I can be nice to have each one folded down when not working on it.

Posted: Sun Aug 28, 2005 12:11 pm
by Bill H
If you have a collection of small classes in a single file
Good point, hadn't thought of that. It would be useful.