News for hackers. Stuff that matters.

Ask HN: Best web text editor?

Hi HN. Does anyone use web-based editors? Is there a good online equivalent of TextMate / Notepad++ / Redcar (with Python support, code folding, etc) that I can access from anywhere? Perhaps with git support? Anyone making such a thing?
( 30 comments | 19 points | on HN )
Re:Ask HN: Best web text editor? by edanm on Sunday June 27, 2010 @09:46AM (#1465473)
Out of curiosity, why would you want a web-based text editor?
Re:Ask HN: Best web text editor? by apu on Sunday June 27, 2010 @12:32PM (#1465705)
If you're frequently on-the-go, without your own laptop?

If you're on a restricted machine where you can't install anything, or have other install restrictions (hello, iPad! ;-))?

If you're on a shared computer where it wouldn't be nice to overwrite someone else's config files?

If you're on a mobile device?

If it allowed you do stuff that would be difficult or impossible to do with a local text editor? Like editing and testing web code live, without even perhaps a "save" command?

[Note: I'm not the OP and I don't actually want a web-based text editor for myself, but these are reasons that came to me in the first 2 minutes of thinking about it.]

Re:Ask HN: Best web text editor? by slashcom on Sunday June 27, 2010 @01:57PM (#1465865)
I vote ssh + (vim|emacs) for most of those situations.
Re:Ask HN: Best web text editor? by astine on Sunday June 27, 2010 @01:31PM (#1465808)
Google Docs works for a couple of those.

Emacs, and I'm sure other editors, can do the last one.

Re:Ask HN: Best web text editor? by nailer on Sunday June 27, 2010 @03:15PM (#1466026)
I am an the OP, and you've covered it nicely. :-)
Re:Ask HN: Best web text editor? by jasonkester on Sunday June 27, 2010 @12:46PM (#1465724)
I rolled my own little web IDE back in the day so that I could build out a PHP project while backpacking around the world. Part of that was a text editor that handled block indenting correctly and corrected for TEXTAREA's annoying way of dealing with doubleclicks to select text.

It was actually pretty nice, traveling without a laptop and simply dropping into an internet cafe and firing up any browser to get to work.

Naturally, the main issue was that you could only use interpreted languages like PHP with it. Django and Rails weren't even on the horizon at that point, so once I conclusively proved to myself that PHP is just not worth the hassle, I picked up a fast laptop and a copy of VS.NET and haven't looked back.

Re:Ask HN: Best web text editor? by sanderjd on Sunday June 27, 2010 @05:03PM (#1466215)
Out of curiosity, why wouldn't you? We don't think twice about Google docs being a good idea, or a thousand other things that were once thought to be purely desktop applications, why should coding be any different? I think it's very striking how few good editors there are on the web, and no real IDEs (that I know of).
Re:Ask HN: Best web text editor? by edanm on Tuesday June 29, 2010 @01:43AM (#1470531)
I wouldn't because:

1. You need a lot of computing power for editors/IDEs. You want things to happen instantly, and that usually isn't the case with web-based stuff.

2. Browsers haven't reached the point where you can make really great editors in them.

3. You're usually dealing with local files, and browser-based editors wouldn't do well with that (you have to have local files because there are a lot of files, you need to compile them, etc.).

4. When I sit down to program, I usually sit down on a computer I own which has a lot of very specific programs and a very specific environment. This includes, but is not limited to, the editor. I can't do web dev these days without having Firefox + Firebug installed, not to mention having Python/Django installed for most of my projects, etc. So having a web-based editor won't help me in programming on other machines anyway.

Re:Ask HN: Best web text editor? by sanderjd on Wednesday June 30, 2010 @12:02PM (#1475265)
Thanks for sating my curiosity! Some interesting points.

1. Not sure I agree here, I'd have to see some benchmarks of similar types of operations in local editors and javascript, but I think it should be roughly equivalent to, say, Eclipse's java-driven interface.

2. I think this is a good point, but I wonder what it is they don't yet have. "Can make really great editors in them" is a pretty vague requirement.

3. I personally think this is historical baggage. There is no reason the server hosting the editor (or another server communicated with that server) could not host your files. Hell, most open source projects are already done this way, hosted on github/sourceforge/etc. - downloading the project locally would be an unnecessary step if the code-hosters offered solid editing options.

4. This is probably the main point, to me. It's not enough to just edit through the web, because there are too many other things you need to do as well, which are even more difficult to detach from a local machine.

Re:Ask HN: Best web text editor? by bombs on Sunday June 27, 2010 @10:34AM (#1465523)
As alluded to in another comment, how about your favourite CLI editor accessed via SSH. There are a few web-based SSH clients out there, such as Ajaxterm, Anyterm, WebShell, GotoSSH, etc.
Re:Ask HN: Best web text editor? by interiot on Sunday June 27, 2010 @09:28PM (#1466750)
These are acceptable, but there's enough keystroke lag that using it for coding gets pretty annoying. Editing files locally fixes the most important latency issues.
Re:Ask HN: Best web text editor? by nudge on Sunday June 27, 2010 @09:21AM (#1465450)
Bespin by Mozilla Labs
Re:Ask HN: Best web text editor? by kleiba on Sunday June 27, 2010 @09:45AM (#1465472)
Emacs!

No, wait - vi!

No, wait - what was the question again?

Re:Ask HN: Best web text editor? by mhd on Sunday June 27, 2010 @02:16PM (#1465909)
I'm actually surprised that no one created a web fronted to either of them yet. Both of them support a multitude of interfaces anyway, so the hooks should be there. Running Emacs as a daemon would support simultaneous GUI and terminal editing too.

Yes, web-based VTxxx terminals would probably suffice, too, but I'd prefer a native interface.

Someone should do a EmacsHub, where you've basically got a little VPS running an emacs daemon, a web interface to it etc.

Re:Ask HN: Best web text editor? by wenbert on Sunday June 27, 2010 @12:21PM (#1465689)
Right, I was about to say Vim myself. Especially with the project manager plugin and NERDTree - it works like charm. I am on Windows and Putty is always a life-saver for me.
Re:Ask HN: Best web text editor? by l4u on Sunday June 27, 2010 @10:24AM (#1465509)
editors that can be accessed from the shell, via ssh
Re:Ask HN: Best web text editor? by mkramlich on Sunday June 27, 2010 @01:42PM (#1465831)
web-based text editors feel like a solution in search of a problem, in a world where TextMate, Notepad, vi, emacs, ad infinitum exist
Re:Ask HN: Best web text editor? by nailer on Sunday June 27, 2010 @03:14PM (#1466022)
By that logic, so does Google docs.

* My projects are stored in the cloud at github. My servers are often too.

* I have to use different editors (or no editors at all) on different laptops and phones.

* Having multiple checkouts of my data seems a bit skilly when I could have one.

Appreciate there's a need where the aforementioned exist, just wondering if there's a cloud ver.

Re:Ask HN: Best web text editor? by nirmal on Sunday June 27, 2010 @11:51AM (#1465634)
Sub-question: Are there any good web text editors that support formatting and work with Mobile Safari?
Re:Ask HN: Best web text editor? by cheald on Sunday June 27, 2010 @01:58PM (#1465866)
Try http://kodingen.com/ - it seems to hit all your required features.

Edit: They say they support git, but I'm not seeing options for it anywhere. Blah.

Re:Ask HN: Best web text editor? by kapitti on Sunday June 27, 2010 @10:17AM (#1465504)
Re:Ask HN: Best web text editor? by jasonkester on Sunday June 27, 2010 @12:56PM (#1465745)
Squad, you're killin' me. Couldn't they figure out how to handle the tab key???

If you hit tab, it just eats it (which I guess is better than tabbing you out of the window), but why not simply insert a tab while you're at it? (or is it taking sides on the tabs vs. spaces debate?)

Re:Ask HN: Best web text editor? by snissn on Sunday June 27, 2010 @12:16PM (#1465678)
jsbin! jsbin.com for a demo and http://github.com/remy/jsbin for the source
Re:Ask HN: Best web text editor? by eos_buddy on Sunday June 27, 2010 @10:02AM (#1465491)
google docs?
Re:Ask HN: Best web text editor? by apgwoz on Sunday June 27, 2010 @12:16PM (#1465677)
The Apps Script editor in spreadsheets seems pretty good actually. It does "intellisense" style code completing.
Re:Ask HN: Best web text editor? by nailer on Sunday June 27, 2010 @03:29PM (#1466051)
No code folding, syntax highlighting, etc. unless I'm mistaken.
Re:Ask HN: Best web text editor? by johnnytee on Sunday June 27, 2010 @09:51AM (#1465477)
second Bespin
Re:Ask HN: Best web text editor? by dublinclontarf on Sunday June 27, 2010 @11:16AM (#1465574)
stupid question, how to set ruby syntax highlighting on bespin?
Re:Ask HN: Best web text editor? by nailer on Sunday June 27, 2010 @03:26PM (#1466045)
Third question: 'save test.py' results in 'the current buffer is untitled, please enter a name' when I'm fairly sure I've just specified one.
Re:Ask HN: Best web text editor? by ideamonk on Sunday June 27, 2010 @11:21AM (#1465582)
ymacs looks pretty solid.