Print headers and footers in TextEdit on Mac
You can display the page number (in the footer) and the date and document title (in the header) when you print a TextEdit document.
In the TextEdit app on your Mac, choose File > Print, then click Show Details.
Select “Print header and footer.”
Note: Headers and footers appear only on printed pages, not on the screen.