Setting source highlighting styles

If desired, you can change various aspects of how the DTD source code is displayed in the Source view of the DTD editor, such as the colors the tags will be displayed in.

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

  1. Click Window > Preferences > Web and XML > DTD Files > DTD 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 the Background box.
  6. Select the color that you want to appear behind the tag and click OK.
  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.  If you only want to reset the value for a particular content type, select it in the Content type field, the click the Restore Default button next to it.
  9. Click OK to save your changes.