Samstag, 12. Dezember 2009

Robot: Javalighter for Google Wave

JavaLighter - javalighter@appspot.com

This bot is very useful to highlight Java sourcecode inside a Blip.
If you like it, you may add it to your conversation and try!

Here is the sourcecode, in the next time it'll be found on SourceForge and GoogleCode. But for now Blogspot is satisfying for me.

The mainfunction takes care about the event blip.submitted. If a Blip is submitted the bot will search for the regex $$_java and save the position in the Textview string. If it finds the substring in the Textview, it works through the array in the other class and check for the keywords.
Afterwards it will highlight them. It's quite a bunch of code, but there are no known bottlenecks and it performs very well.

Keine Kommentare:

Kommentar veröffentlichen