syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE html |
| 3 | PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 4 | <html> |
| 5 | <head> |
syeshin | 379dd3e | 2005-08-26 04:28:44 +0000 | [diff] [blame^] | 6 | <link rel="stylesheet" type="text/css" href="../org.eclipse.wst.doc.user/common.css" /> |
syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 7 | <title>Structured text editors for markup languages</title> |
syeshin | 379dd3e | 2005-08-26 04:28:44 +0000 | [diff] [blame^] | 8 | </head> |
syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 9 | <body id="csrcedt004"><a name="csrcedt004"><!-- --></a> |
| 10 | |
| 11 | <h1 class="topictitle1">Structured text editors for markup languages</h1> |
| 12 | <div><p><span class="q">"Structured text editor"</span> is any of several text editors that |
| 13 | you can use to edit various markup languages such as HTML, JavaScript, or |
| 14 | XML.</p><p>The structured text editor is represented by various editors that you can |
| 15 | use to edit files coded with markup tags:</p> |
| 16 | |
| 17 | <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> |
| 18 | <th valign="top" id="d0e31">Editor</th> |
| 19 | <th valign="top" id="d0e33">Content assist?</th> |
| 20 | </tr> |
| 21 | </thead> |
| 22 | <tbody><tr><td valign="top" headers="d0e29 ">Cascading style sheet</td> |
| 23 | <td valign="top" headers="d0e31 ">CSS source page editor</td> |
| 24 | <td valign="top" headers="d0e33 ">Yes</td> |
| 25 | </tr> |
| 26 | <tr><td valign="top" headers="d0e29 ">Deployment descriptor (web.xml)</td> |
| 27 | <td valign="top" headers="d0e31 ">Source tab of deployment descriptor editor</td> |
| 28 | <td valign="top" headers="d0e33 ">Yes</td> |
| 29 | </tr> |
| 30 | <tr><td valign="top" headers="d0e29 ">Document type definitions</td> |
| 31 | <td valign="top" headers="d0e31 ">DTD source page editor</td> |
| 32 | <td valign="top" headers="d0e33 ">No</td> |
| 33 | </tr> |
| 34 | <tr><td valign="top" headers="d0e29 ">HTML</td> |
| 35 | <td valign="top" headers="d0e31 ">HTML source page editor</td> |
| 36 | <td valign="top" headers="d0e33 ">Yes</td> |
| 37 | </tr> |
| 38 | <tr><td valign="top" headers="d0e29 ">JavaScript™</td> |
| 39 | <td valign="top" headers="d0e31 ">JavaScript source page editor or source |
| 40 | tab of JavaScript editor</td> |
| 41 | <td valign="top" headers="d0e33 ">Yes</td> |
| 42 | </tr> |
| 43 | <tr><td valign="top" headers="d0e29 ">JSP</td> |
| 44 | <td valign="top" headers="d0e31 ">JSP source page editor</td> |
| 45 | <td valign="top" headers="d0e33 ">Yes</td> |
| 46 | </tr> |
| 47 | <tr><td valign="top" headers="d0e29 ">XML</td> |
| 48 | <td valign="top" headers="d0e31 ">XML source page editor or Source tab of XML editor</td> |
| 49 | <td valign="top" headers="d0e33 ">Yes</td> |
| 50 | </tr> |
| 51 | <tr><td valign="top" headers="d0e29 ">XSD (schema)</td> |
| 52 | <td valign="top" headers="d0e31 ">Source tab of XML schema editor</td> |
| 53 | <td valign="top" headers="d0e33 ">Yes</td> |
| 54 | </tr> |
| 55 | </tbody> |
| 56 | </table> |
| 57 | </div> |
| 58 | <p>You can access the structured text editor by right-clicking on a relevant |
| 59 | file name in Navigator or Package Explorer view and then clicking <span class="uicontrol">Open |
| 60 | With</span> and selecting the editor mentioned above.</p> |
| 61 | <p>The structured text editor provides a consistent interface regardless of |
| 62 | the markup language with which it is associated. It provides capabilities |
| 63 | such as find and replace, undo, redo, a spelling checker, and coding assistance |
| 64 | (unless otherwise noted). It also highlights syntax in different colors. Following |
| 65 | is a brief description of some of the structured text editor's capabilities:</p> |
| 66 | <dl><dt class="bold">syntax highlighting</dt> |
| 67 | <dd>Each keyword type and syntax type is highlighted differently, enabling |
| 68 | you to easily find a certain kind of keyword for editing. For example, in |
| 69 | HTML, element names, attribute names, attribute values, and comments have |
| 70 | different colors; in JavaScript, function and variable names, |
| 71 | quoted text strings, and comments have different colors.</dd> |
| 72 | <dt class="bold">unlimited undo and redo</dt> |
| 73 | <dd>These options allow you to incrementally undo and redo every change made |
| 74 | to a file for the entire editing session. For text, changes are incremented |
| 75 | one character or set of selected characters at a time.</dd> |
| 76 | <dt class="bold">content assist</dt> |
| 77 | <dd>Content assist helps you to insert JavaScript functions, HTML tags, or other |
| 78 | keywords. Choices available in the content assist list are based on functions |
| 79 | defined by the syntax of the language in which the file is coded.</dd> |
| 80 | <dt class="bold">user-defined templates and snippets</dt> |
| 81 | <dd>By using the Snippets view, you can access user-defined code snippets |
| 82 | and (for all code types except JavaScript) templates to help you quickly |
| 83 | add regularly used text strings.</dd> |
| 84 | <dt class="bold">function selection</dt> |
| 85 | <dd>Based on the location of your cursor, the function or tag selection indicator |
| 86 | highlights the line numbers that include a function or tag in the vertical |
| 87 | ruler on the left area of the Source page.</dd> |
| 88 | <dt class="bold">pop-up menu options</dt> |
| 89 | <dd>These are the same editing options available in the workbench <span class="uicontrol">Edit</span> menu.</dd> |
| 90 | </dl> |
| 91 | </div> |
| 92 | <div><p><b class="relconceptshd">Related concepts</b><br /> |
| 93 | <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 /> |
| 94 | </p> |
| 95 | <p><b class="reltaskshd">Related tasks</b><br /> |
| 96 | <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 /> |
| 97 | </p> |
| 98 | </div><p> |
| 99 | (C) Copyright IBM Corporation 2000, 2005. All Rights Reserved. |
| 100 | </p> |
| 101 | </body> |
| 102 | </html> |