| <?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> |
| <!-- /******************************************************************************* |
| * 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 |
| *******************************************************************************/ --> |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
| <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 |
| teh suggestion strategy set to "Strict":</p> |
| <br /><img src="../images/suggestion.gif" alt="Example of Strict Suggestion Strategy" /><br /></div> |
| </div> |
| </body> |
| </html> |