| <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html lang="en-us" xml:lang="en-us"> |
| <head> |
| <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> |
| <meta name="copyright" content="Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" /> |
| <meta name="DC.rights.owner" content="(C) Copyright 2000, 2006" /> |
| <meta content="public" name="security" /> |
| <meta content="index,follow" name="Robots" /> |
| <meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> |
| <meta content="task" name="DC.Type" /> |
| <meta name="DC.Title" content="Setting the XML source suggestion strategy used by content assist" /> |
| <meta name="abstract" content="You can customize the formatting of the suggestions given by content assist by choosing a suggestion strategy preference. When the suggestion strategy is set to "Strict", suggestions that are 'strictly' grammatically valid will be displayed first in the list of options and highlighted by bold icons. Other suggestions that are applicable to this element's scope but are not grammatically valid, will be displayed lower in the list with de-emphasized icons. When the suggestion strategy is set to "Lax", all suggestions will displayed in the list with de-emphasized icons." /> |
| <meta name="description" content="You can customize the formatting of the suggestions given by content assist by choosing a suggestion strategy preference. When the suggestion strategy is set to "Strict", suggestions that are 'strictly' grammatically valid will be displayed first in the list of options and highlighted by bold icons. Other suggestions that are applicable to this element's scope but are not grammatically valid, will be displayed lower in the list with de-emphasized icons. When the suggestion strategy is set to "Lax", all suggestions will displayed in the list with de-emphasized icons." /> |
| <meta content="XML editor, setting, source suggestion strategy" name="DC.subject" /> |
| <meta content="XML editor, setting, source suggestion strategy" name="keywords" /> |
| <meta scheme="URI" name="DC.Relation" content="../topics/twcdast.html" /> |
| <meta content="XHTML" name="DC.Format" /> |
| <meta content="xmlsourcesuggestionstrategy" name="DC.Identifier" /> |
| <meta content="en-us" name="DC.Language" /> |
| <link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" /> |
| <title>Setting the XML source suggestion strategy used by content assist</title> |
| </head> |
| <body id="xmlsourcesuggestionstrategy"><a name="xmlsourcesuggestionstrategy"><!-- --></a> |
| |
| |
| <h1 class="topictitle1">Setting the XML source suggestion strategy used by content assist</h1> |
| |
| |
| |
| <div><p>You can customize the formatting of the suggestions given by content |
| assist by choosing a suggestion strategy preference. When the suggestion strategy |
| is set to "Strict", suggestions that are 'strictly' grammatically valid will |
| be displayed first in the list of options and highlighted by bold icons. Other |
| suggestions that are applicable to this element's scope but are not grammatically |
| valid, will be displayed lower in the list with de-emphasized icons. When |
| the suggestion strategy is set to "Lax", all suggestions will displayed in |
| the list with de-emphasized icons.</p> |
| |
| <div class="section">To set the suggestion strategy used by content assist:</div> |
| |
| <ol> |
| <li><span>From the menu bar, Click <span class="menucascade"><span class="uicontrol">Window</span> |
| > <span class="uicontrol">Preferences</span></span></span></li> |
| |
| <li><span>Select <span class="menucascade"><span class="uicontrol">Web and XML</span> > <span class="uicontrol">XML |
| Files</span> > <span class="uicontrol">XML Source</span></span>.</span></li> |
| |
| <li><span>Beside Suggestion strategy in the Content assist section, select |
| the appropriate setting (for example, <span class="uicontrol">Strict</span>).</span> |
| </li> |
| |
| </ol> |
| |
| <div class="example"><p>The following screen capture demonstrates content assist with |
| the suggestion strategy set to "Strict":</p> |
| <br /><img src="../images/suggestion.gif" alt="Example of Strict Suggestion Strategy" /><br /></div> |
| |
| </div> |
| |
| <div><div class="reltasks"><strong>Related tasks</strong><br /> |
| <div><a href="../topics/twcdast.html" title="You can use content assist to help you finish a tag or line of code in the Source view of the XML editor. You can also use content assist to insert templates into your XML code.">Using XML content assist</a></div> |
| </div> |
| </div> |
| |
| </body> |
| </html> |