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