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?
Go to the Insert tab, click the Object drop-down arrow, and pick “Object.” On the Create New tab, select “OpenDocument Text” as the Object Type. Click “OK.” A new Word document will open for you to insert your code or command.
Right click and select Plugin commands -> Copy Text with Syntax Highlighting; Paste it into MS Word and you are good to go!
Copy and paste works !
Nevertheless, make sure the option "Copy colors and fonts"
in Preferences>Fonts & Colors
is checked !
If you need this in Pages you can paste into textedit then copy/paste from textedit into pages. I have yet to find a way to paste directly into pages and preserve the text color etc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With