On 17/11/2021 10:01, Steve Litt wrote:
Hi all,

I have a C program I want to show in a book. So I use the LyX-Code
environment, but when I copy the C file to the clipboard and paste it
into the LyX-Code environment, all the newlines are removed. What's the
right way to show a C program file within LyX?

Thanks,

SteveT

Steve Litt
Spring 2021 featured book: Troubleshooting Techniques of the Successful 
Technologist
http://www.troubleshooters.com/techniques


You could try

"Edit" > "Paste Special" > "Plain Text" or Ctrl+Shift+V.

I never understood what "Plain Text" does not among other things it should keep the line breaks. I guess keeping line-breaks should be the default...

Daniel

--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to