What a good editor should have...

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

No, just very didicated.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Yes you are. :lol:

Now back to the discussion

-An editor that lets you define the paramaters of all the aboved mention
-> for example syntax color highlighting may be changed
-> auto complete may be turned off, or a delay on the tooltip
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

->Free
->Skinnable (Because I prefer things to blend into my current OS theme rather than be ungodly.)
Isn't that a biggie?
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Re: What a good editor should have...

Post by nielsene »

tores wrote: - Collapse functions or block of code
- Support for embedded HTML code (typically by having "html" colours on the html and "php" colours on the php)
Just so you know Emacs/XEmacs does have both of those: look up folding-mode for the former. I never got the second to work, but I bleive there is way to use php-mode as a minor-mode within one of the HTML mode packages.


The biggest thing I want now is refactoring support and I'd be willing to pay fiarly decent money for it... But it has to let me cut and paste with keyboard only. (Eclipse/Zend drive me crazy... too used to Emacs and vi almost never need to touch the mouse :) )

Even a very simplistic "refactoring mini-toolkit" find/replace limited only to the current function would be a godsend.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

- needs to support subversion or CVS

I don't like the 'punk-me-up" syntax highlighters either, but Komodo, which I'm using, has very relaxed, very pretty and useful highlighting.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

hands down, must brew a good coffee..
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I don't think an editor should have a debugger or a tool to commit to cvs. It should be a program that allows me to _edit_ files. And make sure it does it as efficient as possible (I don't like to type 40 times [arrow left] to get around the 5th word).

An IDE on the other hand should have a debbuger and a cvs tool. And shortcuts to compile/package code. etc..

Emacs isn't an editor, emacs isn't an IDE either, it's more like a complete OS :) (i'm starting to like emacs in vipermode)
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Convert tab to spaces is always good with the ability to set tab size.
Bracket highlighter also very useful to track those missing brackets (both ( )and {}).
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I've always liked phpeclipse, but now that i've discovered trustudio, a plugin for eclipse (there is a free version too) i think phpeclipse has still a far way to go ;)

here is a screenshot: http://timvw.madoka.be/images/items/eclipse.png

(Also notice the cute green line that is generated by the simpletest plugin. That plugin works with phpeclipse too.. But i'm waiting for the next release of it which will contain a couple of fixes (by me) so you can define your own simpletest files etc ;) )
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

timvw wrote:I've always liked phpeclipse, but now that i've discovered trustudio, a plugin for eclipse (there is a free version too) i think phpeclipse has still a far way to go ;)

here is a screenshot: http://timvw.madoka.be/images/items/eclipse.png

(Also notice the cute green line that is generated by the simpletest plugin. That plugin works with phpeclipse too.. But i'm waiting for the next release of it which will contain a couple of fixes (by me) so you can define your own simpletest files etc ;) )
Hmm does trustudio correctly handle heredoc indenting issues? (Most editors I've used keep wanting to auto-indent the last line)
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

trustudio looks great, however it doesnt have Eclipse 3.1 support :(
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

@nielsene: I don't really understand what you are asking.. (A screenshot of an editor doing the "wrong" thing would be handy, so i can compare ;) )

@deemo: Read better ;) You have to use the maintenance builds..
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Given something like

Code: Select all

if ($foo) {
   $bar=<<<END_DOC
Would you like to play thermonuclear war?
How about a nice game of tic-tac-toe?
END_DOC;

   $baz=1;
}
How does it auto-ident it? All editors I've tried (with the exception of Zend (which has other major indenting issues) render it as either

Code: Select all

if ($foo) {
   $bar=<<<END_DOC
      Would you like to play thermonuclear war?
      How about a nice game of tic-tac-toe?
      END_DOC;

   $baz=1;
}
or

Code: Select all

if ($foo) {
   $bar=<<<END_DOC
Would you like to play thermonuclear war?
How about a nice game of tic-tac-toe?
END_DOC;

$baz=1;
}
That is either they insist of identing successive lines of the Heredoc because they think its missing a semi-colon, OR the lose identing altogether.

Unfortunately the "editor" I use most (Emacs) does both.....
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I just plain don't like auto-indenting. If I'm at an indent of four, you give me an indent of four next line, and I can decide to get rid of it or keep it or go another indent.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

This is how it showed up when i copy pasted it (hitting the format button didn't change a thing)

Code: Select all

if ($foo) {
    $bar=<<<END_DOC
    Would you like to play thermonuclear war?
    How about a nice game of tic-tac-toe?
    END_DOC;
    $baz=1;
}
This is what i manually typed: (Notice, after the END_DOC;[ENTER] i had to manually postion to the left, as it idented under $bar ..)

Code: Select all

if ($foo) {
	$bar =<<<END_DOC;
this is blahblhlaal
mucha blalalala
END_DOC;
$bar = 1;
}
And this is how it looked like after i hit the format function:

Code: Select all

if ($foo) {
	$bar = <<<END_DOC;
this is blahblhlaal
mucha blalalala
END_DOC;
	$bar = 1;
}
Post Reply