Tip 54: Notepad Tricks

Here’s a little trick that might com in handy.
Place .LOG (including the period and all uppercase) on the first line in a Notepad document.

From now on Notepad will append the current time and date as specified by your computer’s clock to the end of the document, every time you open this document.

...try it

Another way of providing extra information in Notepad documents is the use Header and Footer lines. To define this information go to File, Page Setup and in the Header or Footer box type the letter and character combination from the table below:

To Type
Insert the open file’s name or (untitled) if the file has no name &f
Insert the date &d
Insert the time specified by your computer’s clock &t
Insert page numbers &p
Insert an ampersand (&) &&
Align the header or footer to the left &l
Align the header or footer to the center &c
Align the header or footer to the right &r

Notes
You can use more than one combination in the Header or Footer box. Leaving a space or two between each combination will make the header or footer easier to read.

You can also incorporate text with the combinations.
For example, Page &p will print out as Page 1 , Page 2 , and so on.