次の方法で共有


Displaying and Printing Source Code Files in Color

Visual FoxPro can display color syntax in the editing window for program files, methods, stored procedures, and memos. However, to display color syntax in run-time applications, Visual FoxPro must be configured to display color syntax. Additionally, run-time applications display only the default color settings because run-time applications do not check the registry for options that you change in the Options dialog box, which contains the default color settings for color syntax.

Displaying Color Syntax

To display color syntax

  1. To display the Edit Properties dialog box, follow the procedure in Setting Editor Options.
  2. In the Edit Properties dialog box, select the Syntax coloring check box.

For more information about preferences you can set for the editing window and default settings for color syntax, see Edit Properties Dialog Box and Editor Tab, Options Dialog Box.

Enabling Color Syntax Printing

You can print source code files in colors that match the appearance of code syntax in the editing window. Visual FoxPro supports color printing for source code where color syntax appears, including program files, methods, stored procedures, and memos.

To print your code files in color, you must have a color printer to select the color printing options available for your printer.

Note    Background colors set in the Editor tab of the Options dialog box are not printed.

To make color printing available for source code files

  1. Open the program file or code you want to print.
  2. From the File menu, select Print.
  3. In the Print dialog box, select your color printer, and then click Properties.
  4. Select the color printing options available for your printer.

If you select color printing for source code files, hyperlinks appear underlined.

To display your file in color to the screen, use the TYPE command. To send your file to a connected color printer, use TYPE ... TO PRINTER.

See Also

Visual FoxPro Environment Settings | Editing Window | Print Dialog Box | TYPE Command