blob: fd3c5bbe2fff3fa9eba4785e85069c9a2ee4d027 [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>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 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 source highlighting styles</title>
</head>
<body id="ttaghilt"><a name="ttaghilt"><!-- --></a>
<h1 class="topictitle1">Setting source highlighting styles</h1>
<div><p>You can change how the XML source code is displayed in the Source
view of the XML editor. </p><div class="skipspace"><p>To set highlighting styles for the XML code, follow these steps:</p>
</div>
<ol><li><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
Styles</span></span>.</span></li>
<li><span>In the <span class="uicontrol">Content type</span> list, select the source
tag type that you wish to set a highlighting style for. You can also
click text in the sample text to specify the source tag type that you wish
to set a highlighting style for.</span></li>
<li><span>Click the <span class="uicontrol">Foreground</span> box.</span></li>
<li><span>Select the color that you want the text of the tag to appear in
and click <span class="uicontrol">OK</span>.</span></li>
<li><span>Click the<span class="uicontrol">Background</span> box.</span></li>
<li><span>Select the color that you want to appear behind the tag and click<span class="uicontrol">OK</span></span></li>
<li><span>Select the <span class="uicontrol">Bold</span> check box if you want to
make the type bold.</span></li>
<li><span>Click <span class="uicontrol">Restore Defaults</span> to set
the highlighting styles back to their default values.</span></li>
<li><span>Click <span class="uicontrol">OK</span> to save your changes. </span></li>
</ol>
</div>
</body>
</html>