blob: 7053ccb06fdea43bf890dd2df4c98d4b8001c8ae [file] [log] [blame]
<?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>
<head>
<link rel="stylesheet" type="text/css" href="../../com.ibm.help.doc/swg_info_common.css" />
<title>Defining XML editor preferences</title>
<script language="JavaScript">
function popup_window( url, id, width, height )
{
popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + ',left=,top=' );
popup.focus();
}
</script><script language="JavaScript" src="help/liveHelp.js"></script></head>
<body id="txprefs"><a name="txprefs"><!-- --></a>
<h1 class="topictitle1">Defining XML editor preferences</h1>
<div><p>You can set various preferences for the Source view of the XML
editor such as the formatter indentation style, line wrapping rules, and content
assist rules.</p><div class="skipspace"><p>The following instructions were written for the XML perspective,
but they will also work in many other perspectives.</p>
<p>To define XML preferences,
perform the following steps:</p>
</div>
<ol><li class="skipspace"><span>Click <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span> &gt; <span class="uicontrol">Web and XML</span> &gt; <span class="uicontrol">XML Files</span> &gt; <span class="uicontrol">XML
Source</span></span>.</span></li>
<li class="skipspace"><span>Enter a maximum width for formatted lines in the <span class="uicontrol">Line
width</span> field</span> The default value is 72. </li>
<li class="skipspace"><span>Select <span class="uicontrol">Split multiple attributes each on a new line</span> to
start every attribute on a new line.</span></li>
<li class="skipspace"><span>The <span class="uicontrol">Indent using tabs</span> check box is selected
by default.</span> If you clear it, spaces are used instead of tab characters.</li>
<li class="skipspace"><span>If you want blank lines to be removed when the document is formatted,
select the <span class="uicontrol">Clear all blank lines</span> check box. </span> By default, blank lines are preserved in a formatted document.</li>
<li class="skipspace"><span>You can specify certain characters ('&lt;' is default) that will
cause the content assist list to pop up automatically.  Ensure the <span class="uicontrol">Automatically
make suggestions</span> check box is selected and specify the characters
in the <span class="uicontrol">Prompt when these characters are inserted</span> field. </span></li>
<li class="skipspace"><span>The <span class="uicontrol">Use inferred grammar in absence of DTD/Schema </span>check
box is selected by default. </span> If this box is selected, when you
have an XML file that is not associated with a DTD or XML schema, you will
still be able to get content assist - the tool will infer what should come
next in your file based on the existing content.</li>
<li class="skipspace"><span>Click <span class="uicontrol">Apply</span> and then <span class="uicontrol">OK</span> to
save your changes.</span></li>
</ol>
</div>
<p>
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
</p>
</body>
</html>