How can I get code with syntax highlighting into a word processor?
It's for a manual that will have code examples which should be able to go from page to page so putting images is not an option.
I'd rather do it with OpenOffice but I could also use iWorks or Office. The code is Ruby, Java, Python and maybe others. I could use TextMate to export it if necessary.
XCode does that already, I think. If you copy out of its window and paste into another app that accepts rich text, the formatting comes along with it. I just made a screenshot:
screenshot http://img710.imageshack.us/img710/8756/xcodetextedit.png