Question

Some of my coworkers happen to live on other continents, and every once in a while we need to have a quick chat over some code snippet. E-mail is too slow, code reviews are clumsy, as for Yahoo Messenger... this says it all:

Yahoo code snippet

My question is: what is a fast and easy way to share some small piece of code, possibly allowing real-time highlighting/editing ?

Anything will do - a program, a website, smoke signals, carrier pigeons... the easier, the better!

Was it helpful?

Solution

collabedit is a browser based collaborative source code editor.

Here's a demo http://collabedit.com/sjbr9.

OTHER TIPS

CodeShare is a new one and seems pretty good so far. It's real-time and everyone connecting gets their own caret to move around and edit code. It's also got syntax highlighting and color schemes.

The unique pages on CodeShare currently don't expire and can't be expired manually. But you can delete the code on the page if you don't want your code sitting up there indefinitely[1].

You could just use Skype but turn off the emoticons (Options->Chats & SMS->Chat Appearance->Show Emoticons). It will not disrupt your formatting and if worse come to worse you could always just send the whole file. Some other IM clients offer this functionality as well but with mixed results. I would assume that tools like Miranda IM would allow you to turn off the emoticons and adjust the font to use a monospace one.

Alternatively you could use Wiki but it's some extra work and I would only advise it if the snippet has any particular value.

Some sort of pastebin could be useful.

Both web based and free editors. Documents can be created and shared instantly and changes are visible in real time.

http://titanpad.com

http://collabedit.com

A collaborative editor like Gobby works nicely.

Some sort of wiki, like trac. It has support for code highlighting. It's easy for others to look at later.

although you have must likely thought of this but is it not possible to have a shared folder that you can all access and then be able to open the document in your preferred editor

or maybe look at a web based project management where you can all login in and share resources?

Jeremy Cantrell's response led me (via google) to the Wikipedia page on collaborative real-time editors.

This is where you can find a comprehensive list of software products that serve the required purpose, along with some interesting explanations of the technical difficulties for implementing such software.

codr.cc is another option. It's kinda barebones but good overall.

Note: To get syntax highlighting append the language to the URL so codr.cc/c3jg3 become codr.cc/c3jg3/cpp

It's a paid option, but CodePen Pro has a collaborative view for collaborative editing (among other things): https://codepen.io/login/pro

Also, Google Apps Script is good option, but only javascript: https://developers.google.com/apps-script/

You also can try the web development community Codepad.co, here you share your code, create collections, hire web developers, comment and like the other snippets, see the rating and more.

Hope it's useful information for you :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top