The Page Setup command allows you to control the layout of text on printed pages that are printed with the Print command.
Columns
Specifies the number of columns to print per sheet of paper. Each column will get its own page number. For example, if you have two columns, then each sheet of paper will get two pages of source code printed on it. This is more useful if you print in landscape mode (where the paper is wider than tall).
Borders around page
If enabled, then a single line border will be drawn around the text on the page.
Moreā¦
Click this button to open the standard system Page Setup dialog box. This dialog box allows you to set paper size, margins, and orientation (i.e. Portrait vs. Landscape). You can also change the current printer settings from this dialog box.
Title Strings Options
The items in this group affect the titles printed on the cover page, the top of the page (header), and the bottom of the page (footer).
Cover, Header, Footer
These text boxes specify the formatting codes to be used for the cover page, and the header and footer on each page. See Header and Footer Codes for details on the format of the strings.
Include cover page
If enabled, then a single cover page will be printed before all other pages. Typically, you would put your name in the Cover string text box so that someone at the printer could identify the source of your print job. If not enabled, then no cover page is printed.
Header per column
If enabled, then a header will be printed above each column. This only has an effect if the number of columns is set to two or more. If not enabled, then a single header is printed at the top of the page.
Footer per column
If enabled, then a footer will be printed below each column. This only has an effect if the number of columns is set to two or more. If not enabled, then a single footer is printed at the bottom of the page.
Formatting Options
The formatting options control how syntax formatting is output to the printer. These options work independently of the screen settings, which you control in the Preferences: Syntax Formatting dialog box.
Print Syntax Formatting
If enabled, all syntax formatting effects will be printed, as well as displayed on the screen.
Print in color
If enabled, then color is used for printing. If your printer is not a color printer, then colors will be displayed in shades of gray. If you disable this option, then all text, regardless of on-screen color, is printed in full black or white. However, text that is colored near a neutral gray is printed in gray.
A header is a title printed at the top of the page. A footer is a title printed at the bottom of the page.
You can customize headers and footers for printed pages with the Page Setup command. You do this by using the following codes in the Header and Footer text boxes:
Code |
Result |
&L |
Left-align characters that follow. This is the default. |
&C |
Center characters that follow. |
&R |
Right-align characters that follow. |
&/ |
Move to the next line. |
&B |
Print the characters that follow in Bold. |
&I |
Print the characters that follow in Italic. |
&U |
Print the characters that follow in Underline style. |
&D |
Print the current Date. |
&T |
Print the current Time. |
&F |
Print the File name. |
&P |
Print the Page number. |
&N |
Print the total Number (N) of pages in the document. For example, in a file 12 pages in length, you would type Page &P of &N to have Page 1 of 12, Page 2 of 12, Page 3 of 12, etc., printed on the pages. |
&& |
Print a single ampersand (&) as a literal character rather than as an instruction. |
For example, to print "Confidential" at the left margin, center the page number, and print current date at the right margin, type:
&LConfidential&C&P&R&D