I open the code box with following command: shortcut for insert a Program Listing at LyX

I past my code from gedit. But all it takes all breaks out of it and put it all together on one line. How to avoid that?


Go to Edit > Paste Special > Plain Text, or use the shortcut (on Linux it is Ctrl + Shift + V).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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