Copy/Pasting text from exported PDF problem

Hi Forum

I write this since I’m having troubles to prepare a guide for our API users to resort to while onboarding.

The problem comes when this guide groups some code snipets for them to copy and paste somewhere else to make simple code calls to try the API out

This snipets are selectable in the PDF exported, can be copied, but when I paste it in the Visual Studio code, the code pasted is not properly arrange, the lines are all a mess, the code is not displayed as it is in the guide sheet

Any help or ideas of why this is happening?