简体   繁体   English

main.m的编辑器,保留格式,即颜色

[英]editor for main.m that retains formatting, i.e. colors

Configuration: Mac Mini with OS X 10.9.5, XCode v 6.1.1. 配置:带有OS X 10.9.5,XCode v 6.1.1的Mac Mini。

I'd like to be able to share my main.m and other text files generated by XCode and still maintain the formatting and colors. 我希望能够共享XCode生成的main.m和其他文本文件,并且仍然保持格式和颜色。 Is there a recommendation for doing this or for a particular text editor? 是否有建议这样做或针对特定的文本编辑器? I tried copying and pasting into Libre Office but all the colors are lost, though the tabs and spacing were preserved. 我尝试将其粘贴并粘贴到Libre Office中,但是所有的颜色都丢失了,尽管保留了制表符和间距。

Thanks for any help, 谢谢你的帮助,

Kevin H. 凯文·H

If you paste text copied from Xcode into Pages, it will retain the colors, font selection, and formatting. 如果将从Xcode复制的文本粘贴到Pages中,它将保留颜色,字体选择和格式。 It won't retain the background color, though. 但是,它不会保留背景色。

I'm pretty TextEdit will retain the formatting (minus the background color) if you paste into a rich text document, too. 我很漂亮,如果您也粘贴到RTF文档中,则TextEdit将保留格式(减去背景色)。

You can also try printing the source code to a PDF from Xcode, although I'm not sure how much of the formatting Xcode retains when printing. 您也可以尝试从Xcode将源代码打印为PDF,尽管我不确定在打印时Xcode保留多少格式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM