Recommend me a text editor!

I use 2:
JEdit (typically for Java work, not sure if it has JavaScript syntax)
Crimson Editor (simple PC editor with built in FTP interface so I can edit scripts from Unix, AS400, etc. in one editor).

Question: why do I see people talking about “vi”??? Is this the same 1950’s style editor I used long ago (which was about as painful as when I used to program in Hex before I could afford an assembler (not joking))?

Because it is always available on any Unix box (not everyone gets to choose where they do their development/support). It doesn’t need a Gui. It will work over telnet/dialup. It’s a better code editor than Notepad*, it has bracket matching and line numbers and can open multiple files.

It does have a rather harsh user interface.

  • what isn’t?

That’s exactly right. The only other editor I can think of that is (almost) always available (at least on any Linux box) is pico (or nano, depending), which is painful to use.

If you’re on Windows, Crimson Editor is another option; I use it extensively for Java. It supports JavaScript syntax highlighting, line numbers, is pretty fast, and free. It also helps you match braces and parantheses, with some nifty automated tab management (you open a brace, and it tabs out; close a brace, and it tabs back).

Decent user review rating on Download.com, too.

I use it for looking in data files rather than coding, but I was also going to suggest UltraEdit32 . Well worth the small payment for the standard version, and also now has plugins and extensions added by the user community (tag lists, autocomplete, macros, etc.).

More vi[m] love: Once you get the basic commands down, it’s faster than any other editor I’ve ever used.

I manipulate files directly from the command line probably 95% of the time, even on the machines where I’ve got access to a GUI. It’s a helluva lot quicker to type, eg:

vi /var/www/blah/whatever.js

…than to open Nautilus or Konq, click my way to the directory, right-click on the file, select “open with”, then select a graphical editor. Or open the editor, click “open”, navigate to the directory, and select the file.

The same holds true for the Windows, which is why I use vim in Cygwin whenever possible.

Not to mention the actual editing commands. How do you tell a graphical editor to “copy the next 11 lines, insert them at line 100, and stick two tabs at the beginning of each one” without taking your hands off the keyboard?

I’m not a programmer, but I guess the integration of an IDE might be better for developing actual applications. But for straight ASCII-based stuff, nothing beats vim.

YMMV.

TextPad is pretty popular with HTML writers, but I’ve never tried it. NoteTab Lite is a pretty good freebie, includes regexp search and replace. Pay a little and get more in upgrade versions.

This programmer also swears by UltraEdit (and occassionally swears at it, but that’s a different story)

A mouse-based text editor makes about as much sense as a keyboard-based paint program. Really, just use vi or Emacs.

Yes, I agree.

Using a mouse to highlight, copy and paste text is a major pain in the ass.

Rare is the text editor that won’t let you do that. Of the text editors that I’ve used recently, Gedit, Kate, the nix distrobution of jEdit, and SciTE all allow you to open a file from the command line in just such a way as you describe above.

Additionally … let me add a recommendation for Kate as a nix text editor. It is the shiznit, and I’m not sure how I forgot to mention it in the first place. Kate for KDE, SciTE for Windows and Gnome, and jEdit for OS X. Those be me updated recommendations, arrgh.

I second notepad++. I’ve just started using this, and although I haven’t done programming in it yet, I like it a lot.