Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: eec08670d857f1ba7c152dc1c7d8db33de42448a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?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, 2008 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, 2008" />
<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="N10086">File type</th>

<th valign="top" width="45.89041095890411%" id="N1008E">Editor</th>

<th valign="top" width="23.63013698630137%" id="N10096">Content assist?</th>

</tr>

</thead>

<tbody>
<tr>
<td valign="top" width="30.47945205479452%" headers="N10086 ">Cascading style sheet</td>

<td valign="top" width="45.89041095890411%" headers="N1008E ">CSS source page editor</td>

<td valign="top" width="23.63013698630137%" headers="N10096 ">Yes</td>

</tr>

<tr>
<td valign="top" width="30.47945205479452%" headers="N10086 ">Document type definitions</td>

<td valign="top" width="45.89041095890411%" headers="N1008E ">DTD source page editor</td>

<td valign="top" width="23.63013698630137%" headers="N10096 ">No</td>

</tr>

<tr>
<td valign="top" width="30.47945205479452%" headers="N10086 ">HTML</td>

<td valign="top" width="45.89041095890411%" headers="N1008E ">HTML source page editor</td>

<td valign="top" width="23.63013698630137%" headers="N10096 ">Yes</td>

</tr>

<tr>
<td valign="top" width="30.47945205479452%" headers="N10086 ">JavaScript™</td>

<td valign="top" width="45.89041095890411%" headers="N1008E ">JavaScript source page editor or source
tab of JavaScript editor</td>

<td valign="top" width="23.63013698630137%" headers="N10096 ">Yes</td>

</tr>

<tr>
<td valign="top" width="30.47945205479452%" headers="N10086 ">JSP</td>

<td valign="top" width="45.89041095890411%" headers="N1008E ">JSP source page editor</td>

<td valign="top" width="23.63013698630137%" headers="N10096 ">Yes</td>

</tr>

<tr>
<td valign="top" width="30.47945205479452%" headers="N10086 ">XML</td>

<td valign="top" width="45.89041095890411%" headers="N1008E ">Source tab of XML editor</td>

<td valign="top" width="23.63013698630137%" headers="N10096 ">Yes</td>

</tr>

<tr>
<td valign="top" width="30.47945205479452%" headers="N10086 ">XSD (schema)</td>

<td valign="top" width="45.89041095890411%" headers="N1008E ">Source tab of XML schema editor</td>

<td valign="top" width="23.63013698630137%" headers="N10096 ">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>

Back to the top