blob: a461cfb8cd99a090c47a7a5054abfae342d83f36 [file] [log] [blame]
kpriceef160682006-08-29 18:08:31 +00001<?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">
2<html lang="en-us" xml:lang="en-us">
syeshinbefd53e2005-07-27 18:16:40 +00003<head>
kpriceef160682006-08-29 18:08:31 +00004<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
kpriceb59c9f62008-04-02 21:24:37 +00005<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" />
6<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
kpriceef160682006-08-29 18:08:31 +00007<meta content="public" name="security" />
8<meta content="index,follow" name="Robots" />
9<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))' />
10<meta content="task" name="DC.Type" />
11<meta name="DC.Title" content="Setting source highlighting styles" />
12<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." />
13<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." />
14<meta content="XML editor, setting source highlighting styles" name="DC.subject" />
15<meta content="XML editor, setting source highlighting styles" name="keywords" />
16<meta scheme="URI" name="DC.Relation" content="../topics/txedtsrc.html" />
17<meta content="XHTML" name="DC.Format" />
18<meta content="ttaghilt" name="DC.Identifier" />
19<meta content="en-us" name="DC.Language" />
20<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
syeshinbefd53e2005-07-27 18:16:40 +000021<title>Setting source highlighting styles</title>
syeshin66078272005-09-20 16:53:38 +000022</head>
syeshinbefd53e2005-07-27 18:16:40 +000023<body id="ttaghilt"><a name="ttaghilt"><!-- --></a>
24
kpriceef160682006-08-29 18:08:31 +000025
syeshinbefd53e2005-07-27 18:16:40 +000026<h1 class="topictitle1">Setting source highlighting styles</h1>
kpriceef160682006-08-29 18:08:31 +000027
28
29
30
syeshind0bdb8e2005-10-27 17:44:14 +000031<div><p>If desired, you can change various aspects of how the XML source
32code is displayed in the Source view of the XML editor, such as the colors
33the tags will be displayed in.</p>
kpriceef160682006-08-29 18:08:31 +000034
kpriceb59c9f62008-04-02 21:24:37 +000035<div class="section"><p>To set highlighting styles for the XML code, complete the following
36steps:</p>
syeshinbefd53e2005-07-27 18:16:40 +000037</div>
kpriceef160682006-08-29 18:08:31 +000038
39<ol>
40<li><span>Click <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span>
kpriceb59c9f62008-04-02 21:24:37 +000041</span> and select <span class="menucascade"><span class="uicontrol">XML</span> &gt; <span class="uicontrol">XML
42Files</span> &gt; <span class="uicontrol"> Syntax Coloring</span></span>.</span>
43</li>
kpriceef160682006-08-29 18:08:31 +000044
kpriceb59c9f62008-04-02 21:24:37 +000045<li><span>In the <span class="uicontrol">Syntax Element</span> list, select the source
kpriceef160682006-08-29 18:08:31 +000046tag type that you wish to set a highlighting style for. You can also click
kpriceb59c9f62008-04-02 21:24:37 +000047text in the <span class="uicontrol">Sample text</span> box to specify the source tag
48type that you wish to set a highlighting style for.</span></li>
kpriceef160682006-08-29 18:08:31 +000049
kpriceb59c9f62008-04-02 21:24:37 +000050<li><span>Click the <span class="uicontrol">Foreground</span> box, select the color
51that you want the text of the tag to appear in, and click <span class="uicontrol">OK</span>.</span>
52</li>
kpriceef160682006-08-29 18:08:31 +000053
kpriceb59c9f62008-04-02 21:24:37 +000054<li><span>Click the <span class="uicontrol">Background</span> box, select the color
55that you want to appear behind the tag, and click <span class="uicontrol">OK</span>.</span>
kpriceef160682006-08-29 18:08:31 +000056</li>
57
58<li><span>Select the <span class="uicontrol">Bold</span> check box if you want to
syeshinbefd53e2005-07-27 18:16:40 +000059make the type bold.</span></li>
kpriceef160682006-08-29 18:08:31 +000060
kpriceb59c9f62008-04-02 21:24:37 +000061<li><span> </span></li>
kpriceef160682006-08-29 18:08:31 +000062
63<li><span>Click <span class="uicontrol">OK</span> to save your changes.</span></li>
64
syeshinbefd53e2005-07-27 18:16:40 +000065</ol>
kpriceef160682006-08-29 18:08:31 +000066
kpriceb59c9f62008-04-02 21:24:37 +000067<div class="section">To set the highlighting styles back to their default
68values, click <span class="uicontrol">Restore Default</span>. If you only want to
69reset the value for a particular content type, select it in the <span class="uicontrol">Syntax
70Element</span> field, then click the <span class="uicontrol">Restore Default</span> button.</div>
kpriceef160682006-08-29 18:08:31 +000071
syeshin66078272005-09-20 16:53:38 +000072</div>
kpriceef160682006-08-29 18:08:31 +000073
syeshind0bdb8e2005-10-27 17:44:14 +000074<div><div class="reltasks"><strong>Related tasks</strong><br />
75<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>
76</div>
kpriceef160682006-08-29 18:08:31 +000077</div>
78
79</body>
syeshinbefd53e2005-07-27 18:16:40 +000080</html>