pdf <pre> equivalent

Posted by ddowns on Stack Overflow See other posts from Stack Overflow or by ddowns
Published on 2010-04-20T18:28:32Z Indexed on 2010/04/20 18:33 UTC
Read the original article Hit count: 208

Filed under:
|

I'm trying to put some code examples in a pdf, but copying them out messes up the formatting and rearranges the lines, there's a lot of manual cleanup needed after pasting.

Is there a equivalent to html's pre for PDFs? For "this" block of text respect line breaks, spacing, and copy as plain text like its shown. The closest thing I can see is adding note annotations next to every code example.

© Stack Overflow or respective owner

Related posts about pdf

Related posts about pdf-generation