Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332609

Summary: [preferences] Add ability to set background color for different types of text editor
Product: [Eclipse Project] JDT Reporter: Timothy Mowlem <tmowlem>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Timothy Mowlem CLA 2010-12-15 05:28:44 EST
Build Identifier: 3.7M3

It is not possible to set a different background color (or foreground, or selection fg/bg colors) for different types of text editor (e.g. the java editor and the XML editor).

It would be nice to be able to set background color (and maybe the others) as an option on a per editor basis rather than globally for all text editors as at present.

Reproducible: Always
Comment 1 Dani Megert CLA 2010-12-15 05:54:34 EST

*** This bug has been marked as a duplicate of bug 103163 ***
Comment 2 Eric Moffatt CLA 2010-12-15 10:02:11 EST
Perhaps this could be addressed by using the new CSS capabilities. In order to do this we'd need some 'tag' (CSS pseudo-class) that could be styled against.

If we were to 'tag' the editor's widget with (for example) its editor's ID we should be able to write styling code against it.