kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 1 | <?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
|
| 11 | code in the Source view of the XML editor. You can also use content assist
|
| 12 | to 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
|
| 16 | files<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
|
| 21 | for the content assist to offer suggestions for completion.</p><p>You can
|
| 22 | launch content assist in either of the following ways:</p><ul>
|
| 23 | <li>From the <uicontrol>Edit</uicontrol> menu, click <uicontrol>Content Assist</uicontrol>,
|
| 24 | or</li>
|
| 25 | <li>Press Ctrl+Space</li>
|
| 26 | </ul><p>In addition, you can set up an option that causes content assist to
|
| 27 | pop up automatically when certain characters are typed. To set up this option,
|
| 28 | click <menucascade><uicontrol>Window</uicontrol><uicontrol> Preferences</uicontrol>
|
| 29 | </menucascade> to open the Preferences window, then click <menucascade><uicontrol>Web
|
| 30 | and XML</uicontrol><uicontrol>XML Files </uicontrol><uicontrol>XML Source</uicontrol>
|
| 31 | </menucascade> . In the <uicontrol>Content assist</uicontrol> group box, select
|
| 32 | the <uicontrol>Automatically make suggestions</uicontrol> check box, and supply
|
| 33 | any additional characters that should trigger content assist.</p><p>If your
|
| 34 | cursor is in a position where content assist is available, a pop-up list of
|
| 35 | available choices is displayed when you launch content assist. The list is
|
| 36 | based on the context and whether a DTD or XML schema is associated with the
|
| 37 | XML file being edited. For example, if you have an Address element that can
|
| 38 | contain any of the following children elements: Name, Street, City, Zip Code,
|
| 39 | Country, and Province, and you place your cursor after any of them and launch
|
| 40 | content assist, all of the child elements will be listed in the content assist
|
| 41 | list.</p><p>The content assist list displays all valid tags for the current
|
| 42 | cursor position, including templates. If your grammar constraints are turned
|
| 43 | off, all available tags, not just valid ones are displayed. </p><p> </p><p>As
|
| 44 | you type the first one or two letters of the tag that you want, the list automatically
|
| 45 | refreshes with alphabetized choices that match your input.</p><p><b>Note</b>:
|
| 46 | The list only refreshes as described if you first type <userinput><</userinput> before
|
| 47 | prompting for content assist.</p><p>Scroll down and select the tag that you
|
| 48 | want to use by double-clicking on it. </p></context>
|
| 49 | </taskbody>
|
| 50 | </task>
|
| 51 | <?Pub *0000003061?>
|