Page Layout page (Page Layout dialog box)

The Page Layout page of the Page Layout dialog box provides options to set the page layout, font, line numbering, and line wrapping.

To open the Page Layout dialog box, choose File|Page Layout.

Layout

Prints your document across the length or width of the paper.

Portrait

Prints text across the width of the paper.

Landscape

Prints text across the length of the paper.

Sections Per Page

Specifies the number of sections per page and if the section number is printed.

Preview

Previews the document with the current settings.

Font

Controls the font face and size. You can use the default font and size or select your own.

Line numbering

Prints the line number of each line of code. The line numbers can be set to print every 1, 5, 10, 15, 20, or 25 lines.

Line wrapping

Uses multiple lines to print characters beyond the page width.

No Wrapping

Code lines are truncated and characters beyond the page width do not print.

Wrap At Word Breaks

Lines of text are wrapped to the next line after the last word that can fit on the page.

Wrap At End Of Page

Lines of text are wrapped to the next line after the last character that can fit on the page.

Advanced page (Page Layout dialog box)

The Advanced page of the Page Layout dialog box provides options to set margins, borders, and page headers.

To open the Page Layout dialog box, choose File|Page Layout.

Margins

Sets the margins for the file.

Measure In

Sets the margins for the file in inches or centimeters.

Current Margin Values

Displays the current margin values for the left, right, top, and bottom margins.

Draw A Border Along Margins

Check this option to print a border at the margins.

Page Headers

Sets options for printing page headers. When this option is checked, choose from the following options:

Print Page Headers

Prints the page header. If this option is turned off, the other page header options are disabled.

Display On First Page Only

Prints the page header on the first page only.

Enclose Header In Shaded Box

Prints the page header in a shaded box.

Header Contents

Use the following variables to control what is printed in the page header.

Page header variables

Variable Description
%f Filename and path
%g Filename only
%p Page number
%n Total page count
%t Time
%d Date (long version)
%s Date (short version)
%u Username

Header Font

Sets the header font and size.