HACKER Q&A
📣 tmaly

Printing Code to Paper?


If you print out code on paper, I am curious which software you use to get the easiest to read format?

I find just printing in a basic text editor does not allow you to adjust font size.

When I try to print in Word, the margins messing things up.


  👤 sargstuff Accepted Answer ✓
Some starter ideas[0] beyond spacing/line numbers.

BNF format is used to describe a programming language. treesitter[5] as a text editor plug in makes use of a language BNF description to be able to know how to parse & format a given lanuage in a text editor (aka pygments[1], gnu source code hightlights[2], clangformat[3], neovim with treesitter[4], zed[6]). aka searching google "treesitter work with microsoft notepade"

---

[0] : http://softwarerecs.stackexchange.com/questions/34387/multil...

[1] : pygments : http://pygments.org/

[2] : gnu source code highlights : http://www.gnu.org/software/src-highlite/source-highlight.ht...

[3] : clang format : http://clang.llvm.org/docs/ClangFormat.html

[4] : linux text editor under windows example reference : http://github.com/nvim-treesitter/nvim-treesitter/wiki/Windo...

[5] : http://tree-sitter.github.io/tree-sitter/

[6] : zed : http://zed.dev/