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