blob: a461cfb8cd99a090c47a7a5054abfae342d83f36 [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 lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2008 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" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Setting source highlighting styles" />
<meta name="abstract" content="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." />
<meta name="description" content="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." />
<meta content="XML editor, setting source highlighting styles" name="DC.subject" />
<meta content="XML editor, setting source highlighting styles" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/txedtsrc.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="ttaghilt" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<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>
<div class="section"><p>To set highlighting styles for the XML code, complete the following
steps:</p>
</div>
<ol>
<li><span>Click <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span>
</span> and select <span class="menucascade"><span class="uicontrol">XML</span> &gt; <span class="uicontrol">XML
Files</span> &gt; <span class="uicontrol"> Syntax Coloring</span></span>.</span>
</li>
<li><span>In the <span class="uicontrol">Syntax Element</span> list, select the source
tag type that you wish to set a highlighting style for. You can also click
text in the <span class="uicontrol">Sample text</span> box 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, 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, 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> </span></li>
<li><span>Click <span class="uicontrol">OK</span> to save your changes.</span></li>
</ol>
<div class="section">To set the highlighting styles back to their default
values, click <span class="uicontrol">Restore Default</span>. If you only want to
reset the value for a particular content type, select it in the <span class="uicontrol">Syntax
Element</span> field, then click the <span class="uicontrol">Restore Default</span> button.</div>
</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>
</div>
</body>
</html>