How to collaborate on a Ruby file (or any other code) in real-time
The other day I asked about real-time collaborative Ruby editing. I mean, I found Amy Editor, but it just wasn't good enough. It was too slow and wonky, and didn't work well.
Well, I still needed a tool for coding collaboratively over the net, so I kept hunting and searching. And what do you know – it turns out Notepad++ has a plug-in that does exactly what I need.
Notepad++ is an awesome text editor in itself, and it's extremely versatile. It's one of the many editors I went through before finally settling down with Komodo Edit (for now, at least). It has themes, syntax highlighting for numerous languages, macros, endless configuration options, and, of course, plug-ins.
The plug-in that helped us out is called NppDocShare, and it comes completely devoid of any documentation whatsoever. What I did to make it work:
- Put it in Notepad++ plugins folder.
- Ran Notepad++, clicked Plugins > NppDocShare > Show Dialog.
- Configured my router to forward any traffic it gets on a certain port (I'm not telling which) to port 20081 on my own computer.
- Clicked Serve on the NppDocShare dialog.
- Got a Windows Firewall warning, and allowed NppDocShare to accept connections.
- Gave my IP address to my friend, who connected, and we could then cobble some Ruby together very smoothly and quickly.
The pros:
- It's fast. Way faster than any Web-based editor.
- You get to enjoy the full power of Notepad++.
- Each participant gets their own color.
The cons:
- Requires a bit of knowledge to set up.
- Absolutely undocumented (what you've just read is probably the most extensive documentation that currently exists for NppDocShare).
- When you switch to a different tab, you lose the syntax highlighting! This is a really annoying bug, which I hope will get fixed.
All in all, I'm very happy with this solution, and it worked. Maybe next time I will check out Gobby, which is supposed to be even better for collaborative editing (but lacks the power of Notepad++); if I do, I'll be sure to let you know how that worked out.














Comments
4
Subscribe to commentsdot.fullstopJul 25th 2010 3:47PM
FYI nppNetNote supersedes this:
http://sourceforge.net/projects/notepad-plus/forums/forum/331754/topic/3703808?message=8381577
Erez ZukermanJul 26th 2010 3:23AM
Actually, when you go to http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Plugin_Central and try to download NppNetNote, it links right to the NppDocShare file...
I wish NPP plugins weren't such a mess, really. Seems like very useful stuff is obscured by how difficult it is to find stuff.
sammeke288Jul 25th 2010 4:21PM
everybody knows
ZintinioJul 25th 2010 7:29PM
There is also a collaborative text editor called Gobby. Features (according to site) include:
Realtime Collaboration through encrypted channels (version 0.4.0 and up)
Each user has its own changeable colour to be identified by others
IRC-like chat for communicating with your partners while coding
Syntax highlighting for most programming languages
Session password protection
Multiple documents in one session
Drag'n'drop of documents into Gobby
Document synchronisation on request
Zeroconf support
Unicode support
Cross-platform: runs on Microsoft Windows, Linux, Mac OS X (albeit not natively) and other flavours of UN*X
Gobby is free software and licenced under the GPL 2