blob: c46009320bf091c7090c030e2eb1b85a2dc05c5d [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>If desired, you can change various aspects of how the XML source
code is displayed in the Source view of the XML editor, such as the colors
the tags will be displayed in.</p>
</p><div class="skipspace"><p>To set highlighting styles for the XML code, follow these steps:</p>
</div>
<ol><li><span>Click <b> <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></b>.</span></li>
<li><span>In the <b> <span class="uicontrol">Content type</span></b> 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 <b> <span class="uicontrol">Foreground</span></b> box.</span></li>
<li><span>Select the color that you want the text of the tag to appear in
and click <b> <span class="uicontrol">OK</span></b>.</span></li>
<li><span>Click the<span class="uicontrol"> <b>Background</b></span> box.</span></li>
<li><span>Select the color that you want to appear behind the tag and click<span class="uicontrol">
<b>OK</b></span>.</span></li>
<li><span>Select the <b> <span class="uicontrol">Bold</span></b> check box if you want to
make the type bold.</span></li>
<li><span>Click <b> <span class="uicontrol">Restore Defaults</span></b> to set
the highlighting styles back to their default values.&nbsp; If you only want to
reset the value for a particular content type, select it in the <b>Content type</b>
field, the click the <b>Restore Default </b>button next to it. </span></li>
<li><span>Click <b> <span class="uicontrol">OK</span></b> to save your changes.</span></li>
</ol>
</div>
<div><div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="../topics/txedtsrc.html" title="You can use the Source view to view and work with a file's source code directly.">Editing in the Source view</a></div>
</div>
</html>