Printing

Printing within SlickEdit Core varies slightly between Windows and Linux.

Printing on Windows

To print, from the main menu, click File → Print (or use the gui_print command). The Print dialog is displayed, which allows you to specify the printer to use and set configuration options. After the printer is specified and options configured, click Printto print the selection or active buffer.

Alternately, you can use the print command to immediately print the active buffer, or the print_selection command to immediately print the selection, both based on the current configuration.

Windows Printer Configuration

To configure printing options, from the main menu, click File → Print (or use the gui_print command). The Print dialog is displayed, as pictured below.

To print immediately using the current settings, click Print. To select the font used for printing, click Font. For printer setup, click Setup.

Header/Footer Print Settings

To define the contents of printed headers and footers, use the Header/Footer tab of the Print dialog. Type directly into the text boxes to specify text for the top left, center, and right headers and bottom left, center, and right footers. Click the arrow to the right of each text box pick from a list of escape sequences to be inserted. Escape sequences are values that are replaced with real data, such as %f (which will be replaced with the file name) and %d (which will be replaced with the date).

Print Margin Settings

To define margin spacing, use the Margins tab of the Print dialog. In the After header and Before footer fields, enter the amount of spacing to come between the header and the first line on a page, and the amount of spacing to come between the last line on a page and the footer.

In the top, bottom, left, and right margin fields, enter the amount of spacing in inches to come between the outer edge of the paper and the printed text.

To print the maximum amount of text, specify "0" for all margins.

Print Schemes

Print schemes are a way to manage different printing configurations. For example, you might want to define one scheme that prints two up, landscape, and uses a small font, and another scheme that prints the same configuration with a different font. To define or select a print scheme, use the Print Schemes of the Print dialog, which is pictured below.

The default scheme is named "SlickEdit". When you change the configuration options on the other tabs in the Print dialog, the scheme name changes to append the text "(Modified)" to the end. Click Save to give a name to the modified scheme. Click Delete and Rename to delete and rename schemes, respectively.

System schemes are stored in the print.ini file located at [EclipseInstallDir]/plugins/com.slickedit.windows.libs_[VERSION]/slickedit. User-defined schemes or modified system schemes are stored in the uprint.ini file.

Printing on Linux

To print, from the main menu, click File → Print(or use the command gui_print). The Text Mode Print dialog is displayed, which allows you to specify the device to use and set configuration options. After the device is specified and options configured, click OKto print the active file or buffer.

Alternately, you can use the print command to immediately print the active buffer, or the print_selection command to immediately print the selection, both based on the current configuration.

Linux Printer Configuration

To configure printing options, from the main menu, click File → Print (or use the command gui_print). The Text Mode Print dialog, pictured below, is displayed.

This dialog contains some of the same options as the Windows Print dialog. the available options.

Inserting a Formfeed

The printing facility supports embedded formfeed characters. The formfeed character must be the only character on the line. To insert a formfeed into the current buffer, press Ctrl+Q (quote_key command), and Ctrl+L. Alternatively, you can use the Insert Literal dialog box (Edit → Insert Literal or insert_literal command) to insert a formfeed or any other character (see Inserting Literal Characters).