Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
12.  Using Text Editor Searching a Document To Find and Change Text  Previous   Contents   Next 
   
 

To Find and Delete Text

  1. Choose Find/Change from the Edit menu or press Control+F.

  2. Type the text you want to delete in the Find field.

  3. Leave the Change To field blank.

  4. Press Return or click Find to locate the next occurrence.

  5. Click Change to delete a single occurrence.

  6. To find and change additional occurrences, click Find and then Change.

    Or, click Change All to replace all occurrences.

  7. Click Close when you are done.

Formatting and Printing Documents

Once your editing is complete, format your document by choosing margins and text alignment.

To Format a Document

  1. Choose Settings from the Format menu.

    Figure 12-13 Format Settings dialog box

  2. Enter margins.

    The default left margin is 0 and the right margin is dynamically set to the width of the Text Editor window. Margins are specified as a number of character columns.

  3. Select left, right, justify (block style), or center alignment.

  4. Determine the scope of the formatting:

    • To format a single paragraph, place the cursor in the paragraph, then click Paragraph.

    • To format the entire document, click All.

  5. After closing the dialog box, choose Paragraph or All from the Format menu to apply the settings.

To Print an Open Document

  1. Open the document in Text Editor.

  2. Choose Print from the File menu or press Control+P.

    The Print dialog box displays the name of your system's printer and enables you to set printing options. By default, your document is printed on your system printer. If desired, you can direct your job to a different printer.

    Figure 12-14 Print dialog box

  3. Optional. Set any of these printing options:

    • Type the number of copies to print.

    • Type text to appear on the printer banner page.

    • Click Print Page Numbers if you want to number the pages.

    • Type command-line printer options.

  4. Click Print.

    The Print dialog box closes when you print your document. To close the dialog box without printing your file, click Cancel.

To Print a Closed Document

  1. Display the document's file icon in File Manager.

  2. Drag the file icon to the Printer control in the Front Panel.

    The Print dialog box is opened.

  3. Optional. Set printing options.

  4. Click Print.

Recovering a File

If Text Editor is interrupted due to a system error, it attempts to save your changes in a recovery file in your current folder. The recovery file is named #filename#, where filename is the name of the document. If you had never named your document, the recovery file name is #UNTITLED#.

To Recover a File

  1. Start Text Editor.

  2. Open the recovery file.

  3. Save the document using your original file name or provide a new name for a previously unsaved document.

Text Editor and Other Applications

Other applications can use Text Editor as a tool to edit documents or other types of information. Under certain conditions, an application may choose to restrict your editing choices. In the example below, the File menu has been modified. The Save As command has been replaced with a Copy To File command and the New and Open commands are not available.

Figure 12-15 Text Editor with modified File menu

Using Text Note

When you click the Text Note control on the Front Panel, Text Editor opens in note mode; this enables you to type some text and post it on the Workspace for fast retrieval. If you exit Text Editor while it is in note mode, the text note is saved in your home folder and displayed as an icon on the Workspace backdrop. You can reopen a text note by double-clicking its icon on the Workspace.

To Type a Text Note

  1. Click the Text Note control on the Front Panel.

    Text Editor is opens in note mode.

  2. Type your note.

  3. Choose Close from the File menu.

    The Save dialog box is displayed.

  4. Choose Yes to save changes.

    The text note is put on the Workspace.

To Put a Note on the Workspace

  • Exit Text Editor while you are editing the text note, making sure you choose to save current changes if prompted by the Save dialog box.

    The note icon is displayed in the upper right corner of the workspace.

 
 
 
  Previous   Contents   Next