This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 107104

Summary: Allow multiple colors for caret row and text selection highlights
Product: editor Reporter: Vitezslav Stejskal <vstejskal>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Vitezslav Stejskal 2007-06-19 00:21:12 UTC
So far there has been only one color for highlighting a line with the caret and another color for highlighting selected
text. While this is ok for most text files in some situations this is not enough. There are files with internal
structures that are highlighted to a user by a special background color (eg. CSS blocks in JSP file, CDATA sections in
XML file, preprocessor blocks in C/C++ and some java files, guarded blocks in java GUI forms, etc.). Using the same
color for caret row highlight outside and inside those sections does not look nice. The same holds true for the text
selection highlight. Ideally we would like to have special colors for caret row and text selection highlights inside
those section that would alight better with the section's background color.

Please see the UI spec here:
Comment 1 Vitezslav Stejskal 2007-06-19 00:26:29 UTC
A couple of things to consider:

- Background color for the sepecial sections is customizable by users, therfore the highlighs for caret row and text
selection that apply inside those sections must be customizable too. Or they must be defined in a way that allows them
to adapt to the change of the section's background color.

- The special sections are *not* embbeded mime types. Or at least not in all cases (eg. active vs. inactive preprocessor
blocks are certainly not two embedded sections with different mime path; the same for guarded blocks).
Comment 2 Vitezslav Stejskal 2007-09-18 09:40:54 UTC
*** Issue 115708 has been marked as a duplicate of this issue. ***
Comment 3 Vitezslav Stejskal 2007-09-18 09:44:40 UTC
There was yet another valid usecase presented in issue #115708.
Comment 4 Jiri Prox 2008-04-11 00:43:47 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 5 Vitezslav Stejskal 2008-08-05 11:16:37 UTC
*** Issue 136299 has been marked as a duplicate of this issue. ***