That's important for good documentation, but currently it just doesnt work well. If I copy source code from Xcode editor into OpenOffice Writer, then every single line is an own paragraph. I have a paragraph style for source code, but because of multiple paragraphs I get a lot of unnecessary spaces.

Could i program a macro that combines these source code paragraphs to a single paragraph, or is there an easy-going way to handle that problem? Maybe some setting in Xcode for text-formatting when copying something to the clopboard?

share|improve this question
up vote 3 down vote accepted

Sorry if I'm off the mark here but when you go to paste in Open Office, instead of doing a normal paste, ctrl-v, have you tried using ctrl-shif-v? Paste special, and choose unformatted text.

share|improve this answer
    
Not working for me with NeoOffice on OSX, any idea? – Felix Geisendörfer Jun 12 '09 at 8:33
    
According to docs, the NeoOffice version is Shift-Command-V. – Arnold Spence Jun 12 '09 at 23:19
    
This does not work, they stay paragraph, even when copying as unformated text. – Mecki Nov 27 '09 at 18:14

I guess that your paragraph style for source code includes vertical whitespace before or after the paragraph. You just have to remove that whitespace.

share|improve this answer
    
yes, but it shouldn't happen, that I get multiple paragraphs. It should be one single paragraph. – Thanks Apr 17 '09 at 11:49
    
So you would like to replace End-Of-Paragraph marks with End-Of-Line marks. I suppose this is doable with a macro in OpenOffice. Anyway, nothing is possible from Xcode side. – mouviciel Apr 17 '09 at 13:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.