| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE html |
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html> |
| <head> |
| <link rel="stylesheet" type="text/css" href="../org.eclipse.wst.doc.user/common.css" /> |
| <title>Structured text editors for markup languages</title> |
| </head> |
| <body id="csrcedt004"><a name="csrcedt004"><!-- --></a> |
| |
| <h1 class="topictitle1">Structured text editors for markup languages</h1> |
| <div><p><span class="q">"Structured text editor"</span> is any of several text editors that |
| you can use to edit various markup languages such as HTML, JavaScript, or |
| XML.</p><p>The structured text editor is represented by various editors that you can |
| use to edit files coded with markup tags:</p> |
| |
| <div class="skipspace"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" id="d0e29">File type</th> |
| <th valign="top" id="d0e31">Editor</th> |
| <th valign="top" id="d0e33">Content assist?</th> |
| </tr> |
| </thead> |
| <tbody><tr><td valign="top" headers="d0e29 ">Cascading style sheet</td> |
| <td valign="top" headers="d0e31 ">CSS source page editor</td> |
| <td valign="top" headers="d0e33 ">Yes</td> |
| </tr> |
| <tr><td valign="top" headers="d0e29 ">Deployment descriptor (web.xml)</td> |
| <td valign="top" headers="d0e31 ">Source tab of deployment descriptor editor</td> |
| <td valign="top" headers="d0e33 ">Yes</td> |
| </tr> |
| <tr><td valign="top" headers="d0e29 ">Document type definitions</td> |
| <td valign="top" headers="d0e31 ">DTD source page editor</td> |
| <td valign="top" headers="d0e33 ">No</td> |
| </tr> |
| <tr><td valign="top" headers="d0e29 ">HTML</td> |
| <td valign="top" headers="d0e31 ">HTML source page editor</td> |
| <td valign="top" headers="d0e33 ">Yes</td> |
| </tr> |
| <tr><td valign="top" headers="d0e29 ">JavaScript™</td> |
| <td valign="top" headers="d0e31 ">JavaScript source page editor or source |
| tab of JavaScript editor</td> |
| <td valign="top" headers="d0e33 ">Yes</td> |
| </tr> |
| <tr><td valign="top" headers="d0e29 ">JSP</td> |
| <td valign="top" headers="d0e31 ">JSP source page editor</td> |
| <td valign="top" headers="d0e33 ">Yes</td> |
| </tr> |
| <tr><td valign="top" headers="d0e29 ">XML</td> |
| <td valign="top" headers="d0e31 ">XML source page editor or Source tab of XML editor</td> |
| <td valign="top" headers="d0e33 ">Yes</td> |
| </tr> |
| <tr><td valign="top" headers="d0e29 ">XSD (schema)</td> |
| <td valign="top" headers="d0e31 ">Source tab of XML schema editor</td> |
| <td valign="top" headers="d0e33 ">Yes</td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <p>You can access the structured text editor by right-clicking on a relevant |
| file name in Navigator or Package Explorer view and then clicking <span class="uicontrol">Open |
| With</span> and selecting the editor mentioned above.</p> |
| <p>The structured text editor provides a consistent interface regardless of |
| the markup language with which it is associated. It provides capabilities |
| such as find and replace, undo, redo, a spelling checker, and coding assistance |
| (unless otherwise noted). It also highlights syntax in different colors. Following |
| is a brief description of some of the structured text editor's capabilities:</p> |
| <dl><dt class="bold">syntax highlighting</dt> |
| <dd>Each keyword type and syntax type is highlighted differently, enabling |
| you to easily find a certain kind of keyword for editing. For example, in |
| HTML, element names, attribute names, attribute values, and comments have |
| different colors; in JavaScript, function and variable names, |
| quoted text strings, and comments have different colors.</dd> |
| <dt class="bold">unlimited undo and redo</dt> |
| <dd>These options allow you to incrementally undo and redo every change made |
| to a file for the entire editing session. For text, changes are incremented |
| one character or set of selected characters at a time.</dd> |
| <dt class="bold">content assist</dt> |
| <dd>Content assist helps you to insert JavaScript functions, HTML tags, or other |
| keywords. Choices available in the content assist list are based on functions |
| defined by the syntax of the language in which the file is coded.</dd> |
| <dt class="bold">user-defined templates and snippets</dt> |
| <dd>By using the Snippets view, you can access user-defined code snippets |
| and (for all code types except JavaScript) templates to help you quickly |
| add regularly used text strings.</dd> |
| <dt class="bold">function selection</dt> |
| <dd>Based on the location of your cursor, the function or tag selection indicator |
| highlights the line numbers that include a function or tag in the vertical |
| ruler on the left area of the Source page.</dd> |
| <dt class="bold">pop-up menu options</dt> |
| <dd>These are the same editing options available in the workbench <span class="uicontrol">Edit</span> menu.</dd> |
| </dl> |
| </div> |
| <div><p><b class="relconceptshd">Related concepts</b><br /> |
| <a href="csrcedt006.html" title="Content assist helps you insert or finish a tag or function or finish a line of code in a structured text editor. The placement of the cursor in the source file provides the context for the content assist to offer suggestions for completion.">Content assist</a><br /> |
| </p> |
| <p><b class="reltaskshd">Related tasks</b><br /> |
| <a href="tsrcedt000.html" title="You can edit text coded in markup languages with a structured text editor. This is a generic term for several editors that you can use to edit any of several markup languages such as HTML or XML.">Editing text coded in markup languages - overview</a><br /> |
| </p> |
| </div><p> |
| (C) Copyright IBM Corporation 2000, 2005. All Rights Reserved. |
| </p> |
| </body> |
| </html> |