# Setting source highlighting styles

You can change how the XML source code is displayed in the Source view of the XML editor.

To set highlighting styles for the XML code, follow these steps:

1. Click Window > Preferences > Web and XML > XML Files > XML Styles.
2. In the Content type 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.
3. Click the Foreground box.
4. Select the color that you want the text of the tag to appear in and click OK.
5. Click theBackground box.
6. Select the color that you want to appear behind the tag and clickOK.
7. Select the Bold check box if you want to make the type bold.
8. Click Restore Defaults to set the highlighting styles back to their default values.
9. Click OK to save your changes.

(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.