blob: 65ece16b745c5c3a1f4533a84949f5a457508393 [file] [log] [blame]
kpriceef160682006-08-29 18:08:31 +00001<?xml version="1.0" encoding="utf-8"?>
2<!--Arbortext, Inc., 1988-2005, v.4002-->
3<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
4<?Pub Inc?>
5<task id="twcdast" xml:lang="en-us">
6<title>Using XML content assist</title>
7<titlealts>
8<searchtitle>Using XML content assist</searchtitle>
9</titlealts>
10<shortdesc>You can use content assist to help you finish a tag or line of
11code in the Source view of the XML editor. You can also use content assist
12to insert templates into your XML code.</shortdesc>
13<prolog><metadata>
14<keywords><indexterm>XML editor<indexterm>editing<indexterm>content assist</indexterm></indexterm></indexterm>
15<indexterm>XML editor<indexterm>content assist</indexterm></indexterm><indexterm>XML
16files<indexterm>editing<indexterm>content assist</indexterm></indexterm></indexterm>
17</keywords><?Pub Caret1?>
18</metadata></prolog>
19<taskbody>
20<context><p>The placement of the cursor in your source file provides the context
21for the content assist to offer suggestions for completion.</p><p>You can
22launch content assist in either of the following ways:</p><ul>
23<li>From the <uicontrol>Edit</uicontrol> menu, click <uicontrol>Content Assist</uicontrol>,
24or</li>
25<li>Press Ctrl+Space</li>
26</ul><p>In addition, you can set up an option that causes content assist to
27pop up automatically when certain characters are typed. To set up this option,
28click <menucascade><uicontrol>Window</uicontrol><uicontrol> Preferences</uicontrol>
29</menucascade> to open the Preferences window, then click <menucascade><uicontrol>Web
30and XML</uicontrol><uicontrol>XML Files </uicontrol><uicontrol>XML Source</uicontrol>
31</menucascade> . In the <uicontrol>Content assist</uicontrol> group box, select
32the <uicontrol>Automatically make suggestions</uicontrol> check box, and supply
33any additional characters that should trigger content assist.</p><p>If your
34cursor is in a position where content assist is available, a pop-up list of
35available choices is displayed when you launch content assist. The list is
36based on the context and whether a DTD or XML schema is associated with the
37XML file being edited. For example, if you have an Address element that can
38contain any of the following children elements: Name, Street, City, Zip Code,
39Country, and Province, and you place your cursor after any of them and launch
40content assist, all of the child elements will be listed in the content assist
41list.</p><p>The content assist list displays all valid tags for the current
42cursor position, including templates. If your grammar constraints are turned
43off, all available tags, not just valid ones are displayed. </p><p> </p><p>As
44you type the first one or two letters of the tag that you want, the list automatically
45refreshes with alphabetized choices that match your input.</p><p><b>Note</b>:
46The list only refreshes as described if you first type <userinput>&lt;</userinput> before
47prompting for content assist.</p><p>Scroll down and select the tag that you
48want to use by double-clicking on it. </p></context>
49</taskbody>
50</task>
51<?Pub *0000003061?>