Class SyntaxThemeConstants

java.lang.Object
org.eclipse.ui.editors.text.SyntaxThemeConstants

public final class SyntaxThemeConstants extends Object
Theme color ids for syntax coloring. Editors should resolve them against the workbench ColorRegistry instead of defining colors of their own, so that editors follow the active theme consistently.

For the color of unstyled text use the editor foreground color instead.

Since:
3.23
  • Field Details

    • TAG_COLOR

      public static final String TAG_COLOR
      Color of element and tag names.
      See Also:
    • ATTRIBUTE_NAME_COLOR

      public static final String ATTRIBUTE_NAME_COLOR
      Color of attribute names.
      See Also:
    • STRING_COLOR

      public static final String STRING_COLOR
      Color of quoted values, for example attribute values and string literals.
      See Also:
    • COMMENT_COLOR

      public static final String COMMENT_COLOR
      Color of comments.
      See Also:
    • DIRECTIVE_COLOR

      public static final String DIRECTIVE_COLOR
      Color of directives, for example an XML declaration, a document type declaration, a preprocessor statement or a shebang line.
      See Also: