Topics: |
Once you have created a procedure, you can open the text editor to view or revise it. The text editor provides sophisticated search and replace functions, code folding, and autocompletion options.
You can open a Master or Access File in the text editor by right-clicking the synonym on the file list and clicking Edit as Text (to edit the Master File) or Edit Access File as Text (to edit the Access File).
Some types of files open in ready-only imode in the text editor, such as when you open a Master File for viewing in Data Assist. In those situations, some text editor options are not available.
Tip: In addition to editing procedure code, you can copy, delete, or move a procedure component using options on the Applications resources tree or file list.
You can edit procedures from the Web Console or the DMC.
On the Web Console, the Applications page opens.
The procedure opens in the text editor.
Tip: Double-clicking the procedure will also open the text editor.
The text editor menu bar is shown in the following image.
The following functions are available.
Certain syntax components in FOCEXECs and Master Files are color-coded in the text editor.
Clicking Find (magnifying glass) on the menu bar opens the search panel. Clicking the plus sign (+) under the Search for text box opens the Replace section, as shown in the following image.
The following Find options are available.
Note: The bottom row of the Find panel identifies which instance has the focus and the total number of matches found, in the form n of m.
The following image shows a regular expression search for the characters colon, left brace, and left bracket, with the focus on instance 2 of 40.
To close the Find function, click x at the right of the Search for row.
Pointing to the down arrow at the right end of the text editor menu bar and clicking Text Editor Options opens the Editor Options dialog box, as shown in the following image.
The following options are available. Click the check box next to an option to toggle the selection on and off.
When you have finished selecting the options you want, click OK.
When code folding is enabled, certain commands and syntax components that flow onto multiple lines can be rolled up so their content is hidden. Lines that can be folded display a down arrow to the left of the line, as shown in the following image.
The following image shows the same content with the DEFINE FILE command folded.
The arrow next to the DEFINE FILE command has changed to a right-facing arrow. Clicking it unfolds the command.
The following commands and characters can be folded.
Autocompletion opens a list of supported keywords as you enter text in the Text Editor. Autocompletion is context sensitive. That is, it will only display keywords available in the portion of the syntax that has the focus. If you select a keyword, autocompletion does not parse the syntax to make sure it is correct.
You can enable autocompletion on an as requested basis (Ctrl+Space autocompletion) or whenever a you are entering text where a keyword is available (live autocompletion).
The following image shows an autocompletion list within a GRAPH FILE command.
Click a keyword on the list to insert it into the syntax.
WebFOCUS | |
Feedback |