blob: fb68fc15f1eea0c605970877ffb44545cfe5387b [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, 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="task" name="DC.Type" />
<meta name="DC.Title" content="Getting content assistance in structured text editors" />
<meta name="abstract" content="To get help in adding markup to a file, you can use content assist in a structured text editor. Content assist helps you insert or finish a tag or function or finish a line of code in a structured text editor." />
<meta name="description" content="To get help in adding markup to a file, you can use content assist in a structured text editor. Content assist helps you insert or finish a tag or function or finish a line of code in a structured text editor." />
<meta content="content assistance, structured text editors, structured text editors, text editors" name="DC.subject" />
<meta content="content assistance, structured text editors, structured text editors, text editors" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="csrcedt006.html" />
<meta scheme="URI" name="DC.Relation" content="csrcedt004.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt023.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt027.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt000.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tsrcedt005" 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>Getting content assistance in structured text editors</title>
</head>
<body id="tsrcedt005"><a name="tsrcedt005"><!-- --></a>
<h1 class="topictitle1">Getting content assistance in structured text editors</h1>
<div><p>To get help in adding markup to a file, you can use content assist
in a structured text editor. Content assist helps you insert or finish a tag
or function or finish a line of code in a structured text editor.</p>
<div class="section">Content assist also enables you to select and insert templates in
structured text editors. The placement of the cursor in the source file provides
the context for the content assist to offer suggestions for completion.</div>
<div class="p"><span /> You can request content assist in either of the following
two ways:
<ul>
<li>From the <span class="uicontrol">Edit</span> menu, select <span class="uicontrol">Content
Assist</span></li>
<li>Press Ctrl+Space</li>
</ul>
<div class="p">In addition, you can set a preference that causes content assist
to pop up automatically when certain characters are typed, such as <samp class="codeph">.</samp> in
the case of JavaScriptâ„¢ or <samp class="codeph">&lt;</samp> in the case
of HTML and XML. To set this preference, select <span class="uicontrol">Preferences</span> from
the <span class="uicontrol">Window</span> menu, and then select <span class="uicontrol">Web and
XML Files</span>, followed by one of the following sequences:<ul>
<li><span class="menucascade"><span class="uicontrol">HTML Files</span> &gt; <span class="uicontrol">HTML Source</span>
</span></li>
<li><span class="menucascade"><span class="uicontrol">JavaScript Files</span> &gt; <span class="uicontrol">JavaScript
Source</span></span></li>
<li><span class="menucascade"><span class="uicontrol">XML Files</span> &gt; <span class="uicontrol">XML Source</span>
</span></li>
</ul>
In the <span class="uicontrol">Content assist</span> group box, select the <span class="uicontrol">Automatically
make suggestions</span> check box, and supply any additional characters
that should trigger content assist.</div>
<p>If your cursor is in a position
where content assist is available, a pop-up list of all available choices
is displayed. For each of these choices, a brief description of the code is
provided.</p>
</div>
</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><a href="csrcedt004.html" title="Structured text editor is any of several text editors that you can use to edit various markup languages such as HTML, JavaScript, or XML.">Structured text editors for markup
languages</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="tsrcedt023.html" title="Having the proper files defined in the Java build class path is essential for content assist to work properly in JSP files. It is also essential for the links builder to be able to correctly resolve links to servlets or Java beans in JSP and HTML files.">Making content assist work for JSP
files</a></div>
<div><a href="tsrcedt027.html" title="Content assist provides templates, or chunks of predefined code, that you can insert into a file. You can use the default templates as provided, customize the default templates, or create your own templates.">Adding and removing markup language
templates - overview</a></div>
<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>