Oct
19
Add code highlighting to your Google Waves
By Antonio Cangiano. Filed under General, Quick Tips
Google Wave is still rough around the edges, but it has a lot of potential in terms of becoming a great collaboration tool. As a developer, your first question will probably be: “How do I add code highlighting to my waves?”. The answer is straightforward, however not very easy to find if you google it. I hope this post will help fellow developers who are experimenting with Google Wave.
The following steps are required to obtain syntax highlighting for your code:
- Create a new wave and add the Syntaxy robot to your wave. Use the wave address: kasyntaxy@appspot.com.
- Reply to your first message or within it, thereby creating a reply (called “blip” in Google lingo).
- Specify your code’s language, prefixing the name with a hash and exclamation mark, like #!python or #!ruby.
At this point, as you type the code in your blip it will be highlighted by the Syntaxy bot as shown in the picture below:

More advanced automatic syntax highlighting bots will probably appear as Google Wave progresses, but this one should do the trick for now. On a side note, if you copy and paste code from XCode, the code formatting will be kept in your waves and blips without the need for bots.
Related Articles:
- On Scala’s future
- DB2 support for Django is coming
- Ruby’s Biggest Challenge for 2009
- Better Software 2009 and Pycon Italia Tre
- Enabling support for DB2 and Python/Django/SQLAlchemy on Mac OS X Snow Leopard
If you enjoyed this post, then make sure you subscribe to our RSS Feed.
Comments
4 Responses to “Add code highlighting to your Google Waves”
Leave a Reply























Interesting, thanks, I’ll have to give it a try. Here’s a link to the Wave Sample Gallery page: http://wave-samples-gallery.appspot.com/about_app?app_id=14008 which also has a 1:46 video demonstration.
Can’t get it to do squat for me… Yet I find no evidence in searching the web that it’s completely broken, which leads me to believe either (a) something I’m doing wrong or (b) an incompatibility w/ Ubuntu Karmic and Firefox.
Does not work with C code!
the bot doesn’t work right now, it is over quota.