blob: f076f67c5068cc135f6c29844c41d8bb28701c66 [file] [log] [blame]
lmandel79573072006-03-30 03:29:16 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html lang="en-us" xml:lang="en-us">
5<head>
6<!-- /*******************************************************************************
7 * Copyright (c) 2000, 2006 IBM Corporation and others.
8 * All rights reserved. This program and the accompanying materials
9 * are made available under the terms of the Eclipse Public License v1.0
10 * which accompanies this distribution, and is available at
11 * http://www.eclipse.org/legal/epl-v10.html
12 *
13 * Contributors:
14 * IBM Corporation - initial API and implementation
15 *******************************************************************************/ -->
16<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
17<title>Setting the XML source suggestion strategy used by content assist</title>
18</head>
19<body id="xmlsourcesuggestionstrategy"><a name="xmlsourcesuggestionstrategy"><!-- --></a>
20<h1 class="topictitle1">Setting the XML source suggestion strategy used by content assist</h1>
21<div><p>You can customize the formatting of the suggestions given by content
22assist by choosing a suggestion strategy preference. When the suggestion strategy
23is set to "Strict", suggestions that are 'strictly' grammatically valid will
24be displayed first in the list of options and highlighted by bold icons. Other
25suggestions that are applicable to this element's scope but are not grammatically
26valid, will be displayed lower in the list with de-emphasized icons. When
27the suggestion strategy is set to "Lax", all suggestions will displayed in
28the list with de-emphasized icons.</p>
29<div class="section">To set the suggestion strategy used by content assist:</div>
30<ol><li><span>From the menu bar, Click <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span></span></span></li>
31<li><span>Select <span class="menucascade"><span class="uicontrol">Web and XML</span> &gt; <span class="uicontrol">XML
32Files</span> &gt; <span class="uicontrol">XML Source</span></span>.</span></li>
33<li><span>Beside Suggestion strategy in the Content assist section, select
34the appropriate setting (for example, <span class="uicontrol">Strict</span>.</span></li>
35</ol>
36<div class="example"><p>The following screen capture demonstrates content assist with
37teh suggestion strategy set to "Strict":</p>
38<br /><img src="../images/suggestion.gif" alt="Example of Strict Suggestion Strategy" /><br /></div>
39</div>
40</body>
41</html>