What a good editor should have...
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: What a good editor should have...
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.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)
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.
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)
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
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
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
)
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)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)
Given something like
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
or
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.....
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;
}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;
}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;
}Unfortunately the "editor" I use most (Emacs) does both.....
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
This is how it showed up when i copy pasted it (hitting the format button didn't change a thing)
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 ..)
And this is how it looked like after i hit the format function:
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;
}Code: Select all
if ($foo) {
$bar =<<<END_DOC;
this is blahblhlaal
mucha blalalala
END_DOC;
$bar = 1;
}Code: Select all
if ($foo) {
$bar = <<<END_DOC;
this is blahblhlaal
mucha blalalala
END_DOC;
$bar = 1;
}