Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

your analysis of CodeMirror is very inaccurate http://codemirror.net/


Would be interested in knowing more detail on this thanks - I had a quick look at their website previously, and their quick summary (which seems to sum the rest up well) is:

CodeMirror is a JavaScript component that provides a code editor in the browser.

NB this does not mean editing files in a filesystem but editing code in a browser (which could then be saved to a db or files by a web app/desktop app). Obviously it's possible to write such an app (like brackets), based on codemirror.

I'd be really interested in a codemirror which did manipulate source code files directly (and was not limited to html,css and js), but got the impression from their website that they offer lots of in-browser editing, but not an app which lets you interact with a local file system and edit files.

Did I get that wrong? If so would love to know more (or any other corrections you'd care to add).


Oh, I guess we differ on definition of "edit". You can edit the files and it's still really useful (http://play.golang.org is an example).

I mean, you're right in that it can't write to the FS, but that's a HTML limitation... you juts need a shim in webkit container to do this, or you could use filepicker.io or similar techniques.


Funny you mention play.golang.org as that's exactly what I'd love to be running locally to edit go and ruby, and run it as I edit. Guess I'm old fashioned but prefer to edit locally.

As you say, in theory at least not too hard to wrap in WebKit, but I have a feeling it might be more work than it first appears, and am too busy right now to attempt it and was hoping someone else had. Maybe one day. Thanks for elaborating.


One of my next projects is to use diff-path-merge to build cloud9 for Go. I want to be able to have collaborative editting combined with Go's fast compiles to have a multi-user cooperative coding environment.

But it will still use a "shim" of sorts. It will basically sync via d-p-m and websockets to a server that will do the saving/building/running and then return the output.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: