blob: ec3d55efa7ec46a756f5060ff6c6734fcd23ba5c [file] [log] [blame]
<?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 lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2006" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="concept" name="DC.Type" />
<meta name="DC.Title" content="Structured text editors for markup languages" />
<meta name="abstract" content="Structured text editor is any of several text editors that you can use to edit various markup languages such as HTML, JavaScript, or XML." />
<meta name="description" content="Structured text editor is any of several text editors that you can use to edit various markup languages such as HTML, JavaScript, or XML." />
<meta content="source editors" name="DC.subject" />
<meta content="source editors" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="csrcedt006.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt000.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="csrcedt004" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<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="tablenoborder"><table summary="" cellspacing="0" cellpadding="4" frame="border" border="1" rules="all">
<thead align="left">
<tr>
<th valign="top" width="30.47945205479452%" id="N1008A">File type</th>
<th valign="top" width="45.89041095890411%" id="N10092">Editor</th>
<th valign="top" width="23.63013698630137%" id="N1009A">Content assist?</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" width="30.47945205479452%" headers="N1008A ">Cascading style sheet</td>
<td valign="top" width="45.89041095890411%" headers="N10092 ">CSS source page editor</td>
<td valign="top" width="23.63013698630137%" headers="N1009A ">Yes</td>
</tr>
<tr>
<td valign="top" width="30.47945205479452%" headers="N1008A ">Document type definitions</td>
<td valign="top" width="45.89041095890411%" headers="N10092 ">DTD source page editor</td>
<td valign="top" width="23.63013698630137%" headers="N1009A ">No</td>
</tr>
<tr>
<td valign="top" width="30.47945205479452%" headers="N1008A ">HTML</td>
<td valign="top" width="45.89041095890411%" headers="N10092 ">HTML source page editor</td>
<td valign="top" width="23.63013698630137%" headers="N1009A ">Yes</td>
</tr>
<tr>
<td valign="top" width="30.47945205479452%" headers="N1008A ">JavaScriptâ„¢</td>
<td valign="top" width="45.89041095890411%" headers="N10092 ">JavaScript source page editor or source
tab of JavaScript editor</td>
<td valign="top" width="23.63013698630137%" headers="N1009A ">Yes</td>
</tr>
<tr>
<td valign="top" width="30.47945205479452%" headers="N1008A ">JSP</td>
<td valign="top" width="45.89041095890411%" headers="N10092 ">JSP source page editor</td>
<td valign="top" width="23.63013698630137%" headers="N1009A ">Yes</td>
</tr>
<tr>
<td valign="top" width="30.47945205479452%" headers="N1008A ">XML</td>
<td valign="top" width="45.89041095890411%" headers="N10092 ">Source tab of XML editor</td>
<td valign="top" width="23.63013698630137%" headers="N1009A ">Yes</td>
</tr>
<tr>
<td valign="top" width="30.47945205479452%" headers="N1008A ">XSD (schema)</td>
<td valign="top" width="45.89041095890411%" headers="N10092 ">Source tab of XML schema editor</td>
<td valign="top" width="23.63013698630137%" headers="N1009A ">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="dlterm">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="dlterm">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="dlterm">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="dlterm">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="dlterm">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="dlterm">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><div class="relconcepts"><strong>Related concepts</strong><br />
<div><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></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><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.">Editing text coded in markup languages - overview</a></div>
</div>
</div>
</body>
</html>