Common Text Editing Functions and Tools

Select the text you want to edit and then do any of the following:

  • Click the right mouse button to display a pop-up menu of edit commands.
  • Click the appropriate button in the Stylus Studio tool bar.
  • Press the standard control keys to copy, cut, paste, undo, or redo.

You can select a portion of text and move it to a new location by dragging it. You can drag text from one document to another. You can drag text from documents outside Stylus Studio to a document in Stylus Studio.

In addition, Stylus Studio provides tools that

  • Prompt you with the possible tags that you can insert at a given location. This feature is available if the document is associated with a schema. As soon as you type a tag open bracket, Stylus Studio displays a scrollable list of the elements that are allowed at that location. Double-click the tag you want. For example, suppose you have a schema where the book element can contain author or title elements. If you add a book element, the Sense:X list displays only the author and title tags.
  • Indent XML tags to show the hierarchy relationships. Click Indent XML Tags . Stylus Studio indents all text in the active XML document window.
    Note

     

    After you click the Indent XML Tags button, you cannot automatically undo or redo any changes you have been making. After you make more changes, you can press Ctrl+Z and Ctrl+Y to automatically undo and redo those changes until you click Indent XML tags again.

  • Change the font of the text display in Stylus Studio. This change affects only the Stylus Studio display. Beyond personal preference, you might choose to change the font for localization purposes - the available fonts are the fonts that can display the characters in your XML file. For example, in a Japanese file, only two or three font names appear. Click Font Change to display a list of fonts.
  • Enclose selected text in comment tags. Select the text that you want to be a comment. In the Stylus Studio tool bar, click Comment/Uncomment Selection . To remove comment tags, select the comment element and its contents, and click Comment/Uncomment Selection.
  • Set bookmarks in the XML display. Bookmarks allow you to jump to important lines in your file. See Using Bookmarks.
  • Search for and replace text you specify. Click Find and Replace in the tool bar.
 
Free Stylus Studio XML Training: