blob: ba3e727cb28b3ce4f2745c7c7c61238538c889ed [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<!-- /*******************************************************************************
* 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
* 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>
<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>
<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
<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">
<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.</span></li>
<li><span>Click <b> <span class="uicontrol">OK</span></b> to save your changes.</span></li>
<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>