Similar to using markdown on Stack Overflow to create monospace output, how can I do that for my programs.I tried lp filename.txt and was pleasantly please to find that it was able to use the local network printer and print 'as is'The problem is the output is not mono-spaced.Is there an quicker option than...1) copy the text2) paste into a text doc3) format the document as mono4) print it I would love to find some option like lp filename.txt -format=mono ;)
How can I print well formatted code
command line;osx;printing
a2ps was the answer.  I installed it with brew:brew install a2psNow I can a2ps myfilename and it works.Unfortunately it comes out landscape and if I try to make it portrait it's squished over to the left and tiny, only up taking 50% of the page.[upate - found fix to this with parameter -1 (for number of pages to find on one sheet - the default was 2)However as landscaped it worked and the code has the fixed format style I was looking for.