Artificial intelligent assistant

How can I print well formatted code (hardcopy printout) 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 text 2) paste into a text doc 3) format the document as mono 4) print it I would love to find some option like `lp filename.txt -format=mono` ;)

`a2ps` was the answer. I installed it with brew:

`brew install a2ps`

Now 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.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 6d3270d1d532c53a9b5e71e45f046c62