Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332609 - [preferences] Add ability to set background color for different types of text editor
Summary: [preferences] Add ability to set background color for different types of text...
Status: CLOSED DUPLICATE of bug 103163
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-15 05:28 EST by Timothy Mowlem CLA
Modified: 2010-12-15 10:02 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.