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 50102 - Support for JSP scriptlet background area
Summary: Support for JSP scriptlet background area
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker with 2 votes (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 89483
  Show dependency tree
 
Reported: 2004-10-07 15:20 UTC by _ viendu
Modified: 2016-07-07 08:53 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ viendu 2004-10-07 15:20:58 UTC
Currently JSP scriptlet background can only be set
partially by setting the background of the code of
the scriptlet, resulting in spotty area in the
code, making the eyes very stressful.  Please
support this as the default setting.  Below, I
will try to explain further to make sure there is
no confusion:


I have a jsp page like this:

<%
//comment, first line of the jsp scriptlet
int i;
for(i = 0; i < 100; i++){
   System.out.println("Hello");
}
//comment, last line of the jsp scriptlet
%>

<table>
<tr>
<td>some value</td>
</tr>
</table>

Currently (default), the background between
(inclusive) the lines: //comment, first line ...
to the //comment, last line...
is mixed between  beige and white depending on
there's text there or not.  If there's text, then
the color is beige, if not, then white:

For example above, the color area for the "int i;"
would be from the left of the editor up to the
right side of the ";" (that is the background of
the text).  I want the background color to go from
the left of the editor, go straight to the right
screen.

In general, I want a rectangular background of
beige/whatever color with the top left coordinate
of the first //comment line, and bottom left
coordinate of the 2nd //comment line. and the top
right and bottom right coordinate of the right
hand side of the editor (with the same y
coordinate accordingly).  Put it another way, a
rectangle background enclosing all scriptlet
between the <% and %> and no white color anywhere
between.

For example, I want this background:
<%
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
%>

but not this:
<%
...............................................

...........................
........
.......................................................................

..................................
%> 

Thank you very much.
Comment 1 athompson 2004-10-07 16:18:49 UTC
i've been wanting to submit this myself for a while. it would make the
text appear much nicer.
Comment 2 athompson 2004-10-07 16:20:27 UTC
also it should apply to any 'block style' syntax highlighting.
Comment 3 Petr Pisl 2004-10-07 16:58:07 UTC
Hi, I was thinking about this half year ago, but i didn't enough time
for implementing this. I will try to put this in the plan for next
release. Thanks
Comment 4 Martin Balin 2016-07-07 08:53:00 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss