| <?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> |
| <head> |
| <link rel="stylesheet" type="text/css" href="../org.eclipse.wst.doc.user/common.css" /> |
| <title>Getting content assistance in structured text editors</title> |
| </head> |
| <body id="tsrcedt005"> |
| |
| <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="skipspace">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></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"><</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> > <span class="uicontrol">HTML Source</span></span></li> |
| <li><span class="menucascade"><span class="uicontrol">JavaScript Files</span> > <span class="uicontrol">JavaScript |
| Source</span></span></li> |
| <li><span class="menucascade"><span class="uicontrol">XML Files</span> > <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><p><b class="relconceptshd">Related concepts</b><br /> |
| <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 /> |
| <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><br /> |
| </p> |
| <p><b class="reltaskshd">Related tasks</b><br /> |
| <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><br /> |
| <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><br /> |
| <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 /> |
| </p> |
| </div><p> |
| (C) Copyright IBM Corporation 2000, 2004. All Rights Reserved. |
| </p> |
| </body> |
| </html> |