Note that there is a difference between styling via annotation, and using StyledText, at least in terms of the methods used to do so (the result is not different, AFAIK). In Java, the former works as expected, but the latter has some errors in the API (for instance, insertStyledText() doesn't work properly, it's a bug in the API; Python may not suffer from it). However, it is possible to apply styles with annotations that are the same as styles you could apply using StyledText and StyleType.
Until the StyledText stuff is fixed, annotations are the way to go. However, I look forward to getting StyledText working, because it means I won't have to track annotation ranges when my robot updates the text! -Chris On Oct 25, 3:33 am, voidref <[email protected]> wrote: > Hello all, > > Seeing as there is a lot of confusion around how to make styled text > (well, at least for me there has been), I decided to put up the > current version of a syntax highlighting robot I am working on for > others to use as an example. > > You can find it at: > > http://www.alanwestbrook.com/wavebot/synshedbot.py > > It is most certainly buggy and incomplete and not optimal, but it's a > good example of using annotations for syntax highlighting. > > Alan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~----------~----~----~----~------~----~------~--~---
