News for hackers. Stuff that matters.
Re:Share live code snippets in your browser by unwind on Wednesday April 17, 2013 @09:18AM (#5564262)
The editor on that page doesn't know that selecting something (like the loooong help text that's there from the start) and hitting the DELETE key on my keyboard should delete the selection. That's when I hit my back button.

Aargh, all these re-implemented text editors on the web. :/

Re:Share live code snippets in your browser by fonziguy on Wednesday April 17, 2013 @09:42AM (#5564404)
Looks like a bug on first select. Should be easy fix.
Re:Share live code snippets in your browser by fonziguy on Wednesday April 17, 2013 @10:18AM (#5564592)
Should work better now
Re:Share live code snippets in your browser by hyperenergy on Wednesday April 17, 2013 @09:37AM (#5564375)
It seemed to work for me on Windows Chrome 26
Re:Share live code snippets in your browser by techietrash on Wednesday April 17, 2013 @10:06AM (#5564527)
Almost perfect! The only thing missing (for me) is the ability to edit in one part of the document at the same time as someone else edits a different part of the document, (similar to how firepad.io works). With that addition it would be just wonderful!

Any chance you'll be adding this source code to GitHub?

Re:Share live code snippets in your browser by fonziguy on Wednesday April 17, 2013 @10:21AM (#5564607)
I will definitely. Needs some clean up first.
Re:Share live code snippets in your browser by techietrash on Wednesday April 17, 2013 @11:55AM (#5565147)
Another addition that would be nice to have and informative: a small badge or counter with the number of people currently editing the document? Not sure if that's easily done or more trouble than it's worth!
Re:Share live code snippets in your browser by fonziguy on Wednesday April 17, 2013 @12:07PM (#5565240)
I like it, good thinking
Re:Share live code snippets in your browser by techietrash on Wednesday April 17, 2013 @10:52AM (#5564800)
Cheers, looking forward to it. Stellar job so far, simple but polished.
Re:Share live code snippets in your browser by martin_ on Wednesday April 17, 2013 @10:05AM (#5564522)
I think this is more of a firebase demo than a useful tool. That said, if JSFiddle had real-time support then that could be very cool.
Re:Share live code snippets in your browser by cad on Wednesday April 17, 2013 @02:31PM (#5566138)
you can set an arbitrary url like codeshare.io/hackernews instead of the auto-generated value. its like etherpad + socket.im. nice.
Re:Share live code snippets in your browser by sadkingbilly on Wednesday April 17, 2013 @11:41AM (#5565068)
Interesting. We're finally back to the 1990's BBS days, with real-time sysop chat. I never understood why AIM and other chat messengers removed real-time typing when we always had that with the BBSes. I suppose it was due to latency or flow (you type a sentence hit enter, I type a sentence hit enter), but in 2013, you would think most chat systems would allow character by character typing by now. You can tell a lot from a person by how they type: slow typing, frequent misspellings, interrupting the other user, etc, and can convey more information.

http://codeshare.io/hackernews

Re:Share live code snippets in your browser by spullara on Wednesday April 17, 2013 @11:48AM (#5565100)
They removed it because people don't like it. Every chat system out there has had it at one point or another. As it turns out, people don't like their mistakes broadcast to the person they are chatting with.
Re:Share live code snippets in your browser by anirudhrata on Wednesday April 17, 2013 @11:42AM (#5565073)
Can anyone explain how this works?I opened the URL in two different browsers and it works fine but I don't see any data in Fiddler.
Re:Share live code snippets in your browser by fonziguy on Wednesday April 17, 2013 @12:07PM (#5565237)
You should see a code editor, that looks like Sublime, that you can write or paste code into. What browser are you using?
Re:Share live code snippets in your browser by anirudhrata on Wednesday April 17, 2013 @12:39PM (#5565429)
It is working fine for me. I wanted to know how the application works. I mean there should be HTTP requests going to the server, but I don't find any. The same is the case with the other browser where I am viewing the code.
Re:Share live code snippets in your browser by fonziguy on Wednesday April 17, 2013 @12:59PM (#5565551)
Oh I see. Firebase is the magic behind that https://www.firebase.com/
Re:Share live code snippets in your browser by LLVM_clang on Wednesday April 24, 2013 @04:29AM (#5600437)
Great tool. but sadly Korean not available. when add a comment with Korean, all codes suddenly disappear. Are you have a scheme that support to unicode?
Re:Share live code snippets in your browser by n8ji on Thursday April 25, 2013 @03:59PM (#5609487)
Add support for multiple cursors (like http://socrates.io), then you've really got something.
Re:Share live code snippets in your browser by donpdonp on Wednesday April 17, 2013 @12:04PM (#5565209)
Does this shared editor have advantages over etherpad?
Re:Share live code snippets in your browser by fonziguy on Wednesday April 17, 2013 @12:14PM (#5565291)
Hmm probably not feature wise. This was hacked together on the train. One advantage though is sharing code quickly (no download or reg) in any browser.
Re:Share live code snippets in your browser by callahad on Wednesday April 17, 2013 @01:57PM (#5565923)
As a heavy etherpad user, absolutely.

Etherpad is optimized for text, while Ace (the editing widget CodeShare.io uses) is built for code. It has syntax highlighting, folding, automatic indentation, etc.

It looks like Etherpad Lite may be using Ace, but I don't immediately see a way to turn on the nice programmer-y features.

Re:Share live code snippets in your browser by afshinmeh on Wednesday April 17, 2013 @01:22PM (#5565717)
Good job! I like it, real-time code editing.
Re:Share live code snippets in your browser by denzil_correa on Wednesday April 17, 2013 @09:15AM (#5564250)

    Oops! Google Chrome could not find codeshare.io
Am I missing something?
Re:Share live code snippets in your browser by phawk on Wednesday April 17, 2013 @09:21AM (#5564289)
you might be missing some DNS