Identifying preprocessor statements
After you set preferences for preprocessor statements and configure a preprocessor in a property group, you can identify preprocessor statements in an edit session.
Before you begin
- COBOL Editor
- PL/I Editor
- z Systems® LPEX Editor
- Set preferences for preprocessor integration. For instructions, see the related topics.
- Configure a local preprocessor, preprocessor extension, or remote preprocessor. For instructions, see the related topics.
- In the Preferences window, expand the General category and select Compare/Patch.
- Click the Text tab.
- Select Disable capping when comparing large documents.
- Click OK.
About this task
Preprocessor statements are customized language statements that are supported by your environment to extend or simplify the creating of code. For local and remote preprocessors, the editor uses a preprocessor output file that contains the programming language statements that are generated from the preprocessor statements. The location of the output file depends on whether the preprocessor is local or remote. For a local preprocessor, the output file is defined by the Preprocessor Output File Name option on the property group and is in the BuildOutput folder of the local project. The output file for a remote preprocessor is defined by the Preprocessor output location option on the Editor Configurations page of the property group.
- Syntax of the preprocessor statement is not verified.
- Content assist and quick fix for incomplete preprocessor statements is not provided.
- Hover information for a preprocessor statement variable is not provided.
- Syntax coloring for specific keywords in preprocessor statements is not supported. Syntax coloring can be defined for a preprocessor statement and applies to the entire statement.
Procedure
Results
The source file is compared to the preprocessor file and preprocessor statements are added or marked in the source file. The Outline view is also updated to include the preprocessor statements. If no code changes, the preprocessor output does not display in the Outline view. If code changes, after the preprocessor statements are identified, the Outline view is updated to reflect the processed file.
- In z Systems LPEX Editor, if preprocessing is applied to an editor file or removed from an editor file, you need to save the editor file for the Outline view to reflect the content changes.
- The LPEX editor does not support hovering to view remote preprocessor declaration information.