I was wondering what are the existing service for sharing code. The only one I know is http://pastebin.ca/

What are the other alternative and what feature do they have ?

  • Perhaps you could clarify: are you looking for options for sharing projects and incorporating source control, or are you looking for options for sharing code snippets as a pastebin? I seem to have interpreted the question differently than others. Commented Jul 8, 2010 at 15:23
  • ohloh Commented Jul 9, 2010 at 12:53

11 Answers 11


There are 4 that I know of:

  1. http://bitbucket.org/ (for Mercurial Version Control)
  2. http://github.com/ (for Git Version Control)
  3. http://www.codeplex.com/
  4. http://sourceforge.net/

The big difference in features are that options 1 and 2 seamlessly integrate version control and allow you to have public and private projects. So you will be able to work with others on code without the whole world seeing it.

Options 3 and 4 allow version control but I am not sure how tightly integrated they are with certain version control systems. Also, my understanding is that you can't keep projects private in those 2 systems.

In general the Ruby community used github, the python community uses bitbucket, microsoft runs codeplex, and sourceforge is all about open source. Though I believe you can use any language with any of them.

For code snippets I think http://ideone.com/, http://friendpaste.com/, and http://jsfiddle.net/ are good. JSFiddle is especially awesome for editing and sharing Javascript.

  • 3
    github also have something called gist to share smaller pieces of code. It's like pastebin, but with version control. Commented Jul 8, 2010 at 15:17

If you literally just want duplicate pastbin functionality I use Friend Paste. It allows you go comment on lines of code, edit friend's code, and even set a password that people have to enter to view it.


Forrst allows you to share code (and screenshots/links) and discuss them, currently in beta and invite-only but due to open up soon.

Here's an example post: Forrst screeny http://cl.ly/1aVE/Screen_shot_2010-07-08_at_16.38.25.png


See this question that also brings in executing the code. Answers regarding IDEOne and JSFiddle both offer pastebin functionality. Some of the others may as well.


For sharing, writing simple JS code http://www.jsbin.com/ is pretty cool!!


I use jsFiddle all the time for javascript prototyping or code snippet sharing.


Assembla is a good one. http://www.assembla.com It offers Git and SVN source code control, tickets, private/public options, user management, web viewing, etc. Prices start at free and move upwards from there. ;)



Features Include:

  • Real time editing
  • Syntax highlighting
  • Sidebar Chat
  • History

If you want to share between fewer than ten people, then take a look at Fisheye: http://www.atlassian.com/software/fisheye/ - it's $10.

It hooks into a subversion repository, so you can see changesets of people's checkins. Another application which works well with Fisheye is Crucible, http://www.atlassian.com/software/crucible/ which works for code reviews.


Try Liveweave for HTML5, CSS3 & JS coding. It is awesome!

Not the answer you're looking for? Browse other questions tagged or ask your own question.