File

This section describes items on the File menu and associated dialogs and views.

File Menu

The table below describes the items added to the standard Eclipse File menu by SlickEdit core.

File Menu Item

Description

Command

New Item from SlickEdit Template

Displays the Add New Item dialog, which allows you to create a new file from a template. See Code Templates.

add_item

Print

Displays the Print dialog (or Text Mode Print dialog for Mac/Linux/UNIX), which contains options to print the current file or selection and provides setup options. See Print Dialog for Windows and Print Dialog for Mac, Linux, and UNIX.

gui_print

SlickEdit Template Manager

Create, edit, and delete your templates. See Code Templates.

template_manager

File Dialogs and Views

This section describes the dialogs that are associated with File menu items.

Print Dialog for Windows

On Windows, this is the default dialog used to configure print options and send text or files to a printer. It is displayed when you click File → Print or use the gui_print command. Linux has a different print dialog (see Print Dialog for Mac, Linux, and UNIX for its description. See Printing for more information about printing from within SlickEdit Core).

The general settings on the Print dialog for Windows are described below.

  • Print - Sends the selection or active buffer to the printer specified in the Print Setup dialog (print command).

  • Font - Displays the Fonts option screen, which allows you to specify the font for the printed text. See Font Options for more information.

  • Setup - Displays the Print Setup dialog, which allows you to specify the printer to use (printer_setup command). The Print Setup dialog box is built into the operating system, and its contents might vary depending on the print driver that you are using.

  • Preview - Displays a preview of what the printed file will look like (print_preview command).

  • Files - Expands the Print dialog to allow you to pick another file or multiple files for printing (as opposed to the active file).

The remaining options are categorized into the following tabs:

General Tab

This tab on the Print Dialog for Windows is used to set general print options.

  • Selection only - When this option is selected, only the selection is printed. To print the selection immediately using the default configuration, use the print_selection command.

  • Visible lines only y - When this option is selected, only visible lines are printed. This option allows you to print selective display.

  • Print color coding - When this option is selected, language-specific color coding is printed using the same font attributes (bold, italic, underline).

  • Print color - When this option is selected, language-specific color coding is printed using the same colors.

  • Print hex - When this option is selected, printed output is displayed as if it were the hex display mode.

  • Two up - When this option is selected, it specifies two columns where one page is printed in the left column and the next page is printed in the right column. This is useful when printing in landscape mode, especially when you are using a small font.

  • Orientation - Specifies whether text is printed top to bottom (portrait) or left to right (landscape).

  • Space between - This text specifies the width between columns, in inches. This text box is unavailable unless the Two Up check box is marked.

  • Number lines every - When the value is not zero, lines at intervals of this value are printed with line numbers.

  • Number of copies - This value specifies the number of copies to print.

Header/Footer Tab

This tab on the Print Dialog for Windows is used to configure header/footer printing options.

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).

Margins Tab

This tab on the Print Dialog for Windows is used to configure print margins.

  • After header/Before footer - Specifies 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.

  • Margins - The Top, Bottom, Left, and Right margin fields specifies 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.

Schemes Tab

This tab on the Print Dialog for Windows lets you to save the current printer settings as a scheme. See Print Schemes for more information.

Print Dialog for Linux

On Linux, the Text Mode Print dialog is the default dialog used to configure print options and send text or files to a printer. It is displayed when you click File → Print or use the gui_print command. Windows uses a different print dialog. See Print Dialog for Windows for its description. See Printing for more information about printing from within SlickEdit®.

The Text Mode Print dialog contains the following general settings:

  • OK - Sends the selection or active buffer to the print device.

  • Save Settings - Saves the settings that are configured in the Text Mode Print dialog. The next time a print command or this dialog is invoked, the previously saved settings are restored.

  • Files - Expands the Text Mode Print dialog to allow you to pick another file or multiple files for printing (as opposed to the active file).

The remaining options are categorized into the following tabs:

General Tab

This tab on the Print Dialog for Mac, Linux, and UNIX contains general print settings.

  • Selection Only - When this option is selected, only the selection is printed. To print the selection immediately using the default configuration, use the print_selection command.

  • Visible lines only - When this option is selected, only visible lines are printed. This option allows you to print selective display.

  • Print hex - When this option is selected, printed output is displayed as if it were the hex display mode.

  • Form feed after last page - Determines whether the built-in print text formatting prints a form feed after the last page.

  • Use PostScript (Enscript) - When this option is selected, the enscript program is used to print a source file. This allows for print formatting such as fonts, page layout, etc. To specify the options for enscript, see Advanced Tab. Activating this option will make the following settings available:

    • Print color coding - When this option is selected, language-specific color coding is printed using the same font attributes (bold, italic, underline).

    • Print color - When this option is selected, language-specific color coding is printed using the same colors.

    • Two Up - When this option is selected, it specifies two columns where one page is printed in the left column and the next page is printed in the right column.

  • Number Lines Every - When the value is not zero, lines at intervals of this value are printed with line numbers.

  • Lines per page - Maximum number of lines that can be printed. This includes header, footer, and blank lines.

  • Columns per line - Maximum number of columns that can be printed on a line.

Header/Footer Tab

This tab on the Print Dialog for Mac, Linux, and UNIX is the same as the Header/Footer Tab on the Print Dialog for Windows.

Advanced Tab

This tab on the Print Dialog for Mac, Linux, and UNIX is used to configure advanced print options.

  • Print command - Specifies the program that will be executed to print the formatted text. If no print command is specified, the text is written to the Print Device specified. The default print command is lp -c -o nobanner %f. The %fspecifies the file to be printed. If the print program is not found, the command lpr %f is used instead.

  • PostScript Options - To use PostScript options, you must first select the option Use PostScript (Enscript) on the General print settings tab. The default options are --media=Letter --no-header --quiet. For a list of all available enscript options, see the enscript man page.

  • Print filter - Specifies an external program to format text before it is printed and overrides the built-in print text formatting. The program specified here must accept input from standard in and writes its output to standard out. A typical print filter command is pr -1 -w76 -o0 -l50.

  • Print device - Specifies a printer device file name in which to write the formatted text. This text box is ignored if a Print Command has been specified. The default print device is /dev/lp0.