blob: 16ba4e37366b9acfdbec05a0de123e4ff2e1226f [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>
kprice9623e9d2007-05-03 03:43:05 +000014<keywords><indexterm>XML editor<indexterm>content assist</indexterm></indexterm>
15<indexterm>XML files<indexterm>content assist</indexterm></indexterm>
16</keywords>
kpriceef160682006-08-29 18:08:31 +000017</metadata></prolog>
18<taskbody>
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>,
23or</li>
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>
28</menucascade> to open the Preferences window, then click <menucascade><uicontrol>Web
29and XML</uicontrol><uicontrol>XML Files </uicontrol><uicontrol>XML Source</uicontrol>
30</menucascade> . In the <uicontrol>Content assist</uicontrol> group box, select
31the <uicontrol>Automatically make suggestions</uicontrol> check box, and supply
32any additional characters that should trigger content assist.</p><p>If your
33cursor is in a position where content assist is available, a pop-up list of
34available choices is displayed when you launch content assist. The list is
35based on the context and whether a DTD or XML schema is associated with the
36XML file being edited. For example, if you have an Address element that can
37contain any of the following children elements: Name, Street, City, Zip Code,
38Country, and Province, and you place your cursor after any of them and launch
39content assist, all of the child elements will be listed in the content assist
40list.</p><p>The content assist list displays all valid tags for the current
41cursor position, including templates. If your grammar constraints are turned
42off, all available tags, not just valid ones are displayed. </p><p> </p><p>As
43you type the first one or two letters of the tag that you want, the list automatically
44refreshes with alphabetized choices that match your input.</p><p><b>Note</b>:
45The list only refreshes as described if you first type <userinput>&lt;</userinput> before
46prompting for content assist.</p><p>Scroll down and select the tag that you
47want to use by double-clicking on it. </p></context>
48</taskbody>
49</task>
50<?Pub *0000003061?>