Well, this is not directly programming related! But a friend of mine wants to write a book about programming. Now he asked me if I knew a good software for this, because Word crashes 10 times a day on his machine, and OpenOffice is just very chunky and slow.
I'm not gonna say Word is the best option, far from it, but he should reinstall his machine. It really isn't that bad, and normally it doesn't crash (up to, I don't know, 500 pg documents). I can't remember the last time it died on me.
Also none of them seem to have any useful support for including Code Listings (examples) with useful syntax highlighting or at least some sort of support for inserting code (i.e. indicating line breaks with arrows that turn around, line numbers, etc).
I don't think you'll find a word processor with syntax highlighting capabilities. What you can do, is use an editor with syn. highlighting and export his printout to a compromise format (pdf ?), then try to import it into a word processor.
Latex is out of question since it's incredible hard to use and has no really useful feature for including tables. It's a mess.
Oh, it's not so bad, but I still wouldn't recommend it, expecially if you're not familiar enough with it. When it comes to larger documents with lots of page formatting, tables and pictures of various kinds, it can get ... uhmm, messy.
Maybe some IT authors are here who can give some hints what tools they use. That would be great!
Anyways, apart from Word, and OpenOffice, he can use GoogleDocs (really nice sometimes).
But maybe the better variant would be if he used some kind of HTML editor, and tried to split the chapters into pages. Several programming editors have options to export their ... into html.