Highlight syntax from xcode paste to Pages not working

Before I upgrade Pages, I was able to simply copy and paste my code from xcode


and the hightlight syntax would stay.


But now it prompt to "body" style text. and all the hightlighted were gone.


How can I fix this issue ?


Thanks,

iMac, iOS 8.4

Posted on Jul 14, 2015 8:30 AM

Reply
1 reply

Jul 14, 2015 9:54 AM in response to iamjeannie_apple

Use Pages '09 v4.3, as the functionality to preserve color syntax pasted directly from Xcode 6.4 into Pages v5.5.3 does not exist. The latest LibreOffice v4.4.4.3 also permits direct paste with preserved syntax color.


For Pages v5.5.3, one must copy/paste directly from Xcode into TextEdit — which preserves the syntax colors. Then select/copy/paste the TextEdit content directly into Pages v5.5.3 for preserved syntax colors.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Highlight syntax from xcode paste to Pages not working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.