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