3

I am looking for a text editor with the following functionalities for php, html and css coding:

  • code folding
    • based on indentation (best example is EditPlus)
    • start at an indentation level and stop at the next indentation of same level or level up
  • line/block duplication
  • brace highlight
  • syntax highlight
  • selection highlight (occurrences)
  • toggle comment line/block
  • good file browser (several directories opened)
  • code snippets

Those are the basic I am looking for. I tried several editors and found them all wanting at some point.

  • Gedit with plugins
  • Geany with plugins
  • Juffed
  • jEdit
  • scite
  • ultraedit ...

The only one really close to have it all is Netbeans except for the code folding based on indentation.

I read that vim is highly configurable but I'm a bit afraid of the learning curve.

If anyone know of my dream editor, please inform me.

4
  • For some reason, code folding based on indentation is hard to find. Have you tried seeing if there's a Netbeans plugin that offers at least close to what you want? The closest I've seen otherwise is Microsoft's Visual Studio, and even that I don't think is exactly what you're looking for (though you can make custom code folding regions; that's one thing I do miss in my move from .Net to PHP).
    – Shauna
    Jul 26, 2011 at 13:19
  • 1
    geany has indention based folding on python files
    – enzotib
    Jul 26, 2011 at 14:18
  • If you are not using a version control system start considering about it, although its always convenient to handle the source control from a terminal I like my editor having a support for it. Git mercurial svn cvs you name it.
    – topless
    Jul 26, 2011 at 14:19
  • i already use git for personnal projects and svn at work, all in command lines, so it can be a good addition.
    – GMO
    Jul 27, 2011 at 8:13

5 Answers 5

3

Vim, or Vi IMproved, provides all of the features you've mentioned (and more) at a relatively low performance hit.

I highly recommend the program vimtutor to get you started. It always comes with Vim, and you can run it from a terminal.

I've used Vim for about a year now, and it's saved me loads of time.

There's a wiki, too.

After you pick up on the basics, it's faster than most editors out there.

2
1

It is worth giving a try to eclipse, its cross platform, open source and there is a plugin for everything, although the functionality you are looking for is already natively supported. More information here.

Vim is great too, as long as your wrap you brain around the keystrokes and the input modes its pretty cool to work with it, especially in a command line environment where a powerful editor sometimes is more than necessary. I would advise you to print a vim shortcut cheat sheet and give it a try on your free time.

2
  • I agree with Eclipse. It's a good deal heavier than some of the other things you've tried, but it's quite mature and can do everything you want. Vim takes a lot of patience buts its users love it.
    – Oli
    Jul 26, 2011 at 13:11
  • Eclipse is way too slow, even on ubuntu. An no folding on indent level.
    – GMO
    Jul 27, 2011 at 15:55
0

Emacs will do all of that and much, much more. It does have a bit of a learning curve, but is quite a bit more user friendly than vim, and has a graphical front end and an excellent built in manual.

3
  • I wouldn't exactly call Lisp and Perl programming user friendly. As long as it concerns the learning curve IMO emacs will take further long than vim. The power that raises from emacs is well worth it, still requires a lot of time to configure and find your way around, as getting a better grasp in scripting. I wouldn't recommended for users with little or no experience all IMO always, the best thing to do is to try and see which product fits your needs.
    – topless
    Jul 26, 2011 at 14:17
  • 1
    @Chris-Top what does lisp and perl programming have to do with anything? Much of emacs is written in lisp but you hardly have to learn the language an editor is written in to use it. Perl has nothing to do with emacs.
    – psusi
    Jul 26, 2011 at 15:33
  • You are absolutely right, it was me few years ago trying to pick up Perl and Emacs just to enrich my tools divercity and since then still hunts me down, I lost my sleep at night... Thank you for the clarifications. I cannot handle the pressure!
    – topless
    Jul 27, 2011 at 12:14
0

You can use sublime text editor for all of your stuff.Its a good development platform .Also as a web developer I am using this on my device.

You can explore more of it here.

Hope you like my suggestion.

3
  • It should be noted that this is paid, proprietary software. Most of the same features are found in the open source, hackable Atom editor too. Jul 29, 2017 at 7:47
  • Well the fact is I am using it as free. It gives you an option to donate but it totally yours wish. I am using it without paying a single penny@Andrea Jul 30, 2017 at 16:00
  • “Sublime Text 2 may be downloaded and evaluated for free, however a license must be purchased for continued use.” The fact that “There is currently no enforced time limit for the evaluation” does not mean that people should use it without paying. It just means that the author assumes people to behave honestly according to the EULA. askubuntu.com/a/352467/271 Jul 30, 2017 at 17:11
0

Surely Emacs. Here's the best Emacs tutorial I've ever seen:

http://xahlee.info/emacs/emacs/emacs.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.