How to put Objective C code into Word (Office) with syntax highlighting

calendar_today Asked Feb 9, 2011
thumb_up 10 upvotes
history Updated April 16, 2026

Question posted 2011 · +6 upvotes

I am writing documentation about an app and want to explain the code. I want to copy parts of the Objective C code from Xcode to Microsoft Word. I don’t know how to put the code with syntax highlighting (and maybe line numbers, too ?!) into Word.

Does anybody know a usable solution for this little problem?

Accepted answer +10 upvotes

Copy and paste works !

Nevertheless, make sure the option "Copy colors and fonts" in Preferences>Fonts & Colors is checked !

Top ms-word Q&A (6)

+10 upvotes ranks this answer #9 out of 31 ms-word solutions on this site .