Any way to paste code as text, instead of adding at the top as a part of file?

Let’s say I need to add a small piece of code from a file, but when I paste it in the chat, it pastes it as a read-only block with the file name attached at the top. So I cannot edit it, and I cannot explain to the AI which block of code I want to edit, because it all gets pasted at the top, instead of under my explanation paragraphs.

Hello, could I please receive an answer?
This causes problems with explaining the AI what to do, as the code is pasted out of context.