Printing a file

You can perform a print preview by selecting File ▸ Print Preview. This will render the current file and present a preview of the print. Source code which is highlighted in the editor is also highlighted similarly in the preview (and subsequent print). The Printing tab of your editor plugin preferences contains additional options which let you print with line numbers, wrapped lines and/or headers.

Figure 3-18Print preview of a C file

Figure 3-19Print Preferences

When you are ready to print and satisfied with the preview, select File ▸ Print or Print from the print preview window. This will bring up the actual print dialog as shown below. Select the appropriate print parameters and press Print to print the file.

You can also set landscaped or portrait page layout and the paper size, page orientation and paper type. Remember to set them up properly according to your printer, otherwise printing may not look correct.

Figure 3-20Print Dialog