Editing Project Components as Text

In this section:

How to:

WebFOCUS Maintain provides the following text editors:

You can open and edit code or other text for multiple components in separate editor windows.


Top of page

x
Procedure: How to Open a Project Component as Text

In the Project Explorer, right-click a component and select Edit or Edit source from the shortcut menu.

The editor window displays the underlying code or text for the selected project component.


Top of page

x
Customizing Parsing Activity

How to:

Changes to code in the editor are parsed and automatically incorporated in the corresponding graphical application component.

Developers can now control the lag time for the parser of the editor by customizing how long the parser waits for the developer to stop typing before it automatically parses the Maintain code. Developers can also disable the parser completely to optimize the Maintain Development Environment when they are in a typing-intensive session. They can re-enable the parser to update the Project Explorer tree automatically.



x
Procedure: How to Customize Parsing Activity

To customize parsing:

  1. Change or adjust the parsing option for the Maintain Development Environment (MDE) by selecting Tools, and then Environment Options.

    MDE displays the Environment Options dialog box.

  2. On the General tab, check parse editor to enable parsing of your code in the code Editor, or uncheck it to disable code parsing.

    If the parser is enabled, it waits until you stop typing before it begins to parse your code for changes that might affect the Project Explorer.

    If you disable parsing, changes to your code are not reflected in the Project Explorer until you save them.

  3. Use the spin button to adjust the amount of time (in seconds) the parser waits before starting to parse your code or type the desired wait time into the box.

Top of page

x
Common Editing Functions

How to:

The following is a list of common editing functions that you can perform.



x
Procedure: How to Enter Text

To enter text, place the cursor where you want the text to go and start typing.

Note: The editor does not wrap text automatically, so when you reach the end of a line, you must press Enter.



x
Procedure: How to Select a Range of Text

To select a specific range of text:

  1. Position the cursor at the beginning of the text you want to edit.
  2. Press the left mouse button and drag so that the pointer passes over all the text you want to select.
  3. When the pointer reaches the end of the text, release the left mouse button.


x
Procedure: How to Select All Text

To select all text, do one of the following:



x
Procedure: How to Move Text to Another Location

To move text:

  1. Select the text you want to move.
  2. Use the Cut and Paste commands, or drag the text to its new location.


x
Procedure: How to Copy Text to Another Location

To copy text:

  1. Select the text you want to copy.
  2. Use the Copy and Paste commands, or hold down the Ctrl key and drag the text to its new location.


x
Procedure: How to Undo or Redo an Action

Do one of the following:



x
Procedure: How to Find Text

To locate specific text:

  1. On the Edit menu, click Find, or click the Find button Find button on the Editor toolbar to open the Find dialog box.
  2. In the Find What field, type the word or phrase you want to find.
  3. Select any search criteria that help to narrow or speed your search.

    Note: You can create some powerful searches using regular expression syntax. For more information, try searching the web.

  4. Click Find Next to begin searching for the specified text in the open editor window.

    The text appears highlighted.

  5. Click Find Next in the Find dialog box or press F3 to search for another occurrence of the text.


x
Procedure: How to Replace Text

To replace specific text:

  1. On the Edit menu, click Replace to open the Replace dialog box.
  2. In the Find What field, type the word or phrase you want to replace.
  3. In the Replace With field, type the new word or phrase with which you want to replace the old word or phrase.
  4. Select any search criteria that help to narrow or speed your search.

    Note: You can create some powerful searches using regular expression syntax. For more information, try searching the web.

  5. Click Find Next to begin searching for the specified text.

    WebFOCUS Maintain finds and highlights the text.

  6. Click Replace to replace the highlighted text with your new text or phrase.
  7. WebFOCUS Maintain automatically highlights the next occurrence of the text. Click Replace, if you wish to repeat the substitution.

Note: To replace all occurrences of the text found at one time, click Replace All.



x
Procedure: How to Preview an Application Component as Text

In the File menu, click Print preview.

The text appears on the screen as it will look when printed.



x
Procedure: How to Print an Application Component as Text

To print, do one of the following:


Top of page

x
Using Bookmarks to Move Within the Editor

How to:

The bookmark option places a bullet next to or removes a bullet from any line in the editor. You can place multiple bookmarks in a file by using the Mark All function in the Find dialog box. After a bookmark is added, you can jump to that bookmark from anywhere in a file. If you have multiple bookmarks, the cursor jumps to the very next bookmark.

Bookmarks are temporary. They disappear when you close the editor window.



x
Procedure: How to Apply or Remove a Bookmark

To add or remove bookmarks:

  1. Position the cursor anywhere in a line where you want the bookmark to appear.
  2. Right-click, then select Toggle Bookmark.

    or

    Click the Toggle Bookmark button Toggle Bookmark button on the Editor toolbar.

    or

    Press Ctrl+F2.



x
Procedure: How to Jump to a Bookmark

To jump to another bookmark, click the Next Bookmark button Next Bookmark button or Previous Bookmark button Previous Bookmark button.

The cursor jumps to the next or previous bookmark in the editor.



x
Procedure: How to Apply Multiple Bookmarks

To apply multiple bookmarks:

  1. On the Edit menu, select Find.

    The Find dialog box opens.

  2. In the Find What field, type the word or phrase you want to find, then click Mark All to mark all lines with this text.


x
Procedure: How to Remove All Bookmarks

To remove all the bookmarks, do one of the following:


WebFOCUS