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
- To display the Edit Properties dialog box, follow the procedure in Setting Editor Options.
- 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
- Open the program file or code you want to print.
- From the File menu, select Print.
- In the Print dialog box, select your color printer, and then click Properties.
- 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