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 225737 - Embedded JavaScript keeps flicking background colour
Summary: Embedded JavaScript keeps flicking background colour
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: REGRESSION
: 230274 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-05 07:06 UTC by brettryan
Modified: 2016-07-08 12:01 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brettryan 2013-02-05 07:06:09 UTC
When embedding JS inside a HTML document the background colour flicks between the configured colour and white. Simply clicking in the area will cause strange behaviour where the colorisation ends up mixed between white and (default) green.

The syntax colorisation of the JS is not affected, just the background.

A workaround is to set the "HTML > Javascript Embedded in HTML" background colour to "Inherited".
Comment 1 Vladimir Riha 2013-05-27 06:13:07 UTC
*** Bug 230274 has been marked as a duplicate of this bug. ***
Comment 2 MackSix 2013-05-27 13:30:42 UTC
*** Bug 230274 has been marked as a duplicate of this bug. ***
Comment 3 Marek Fukala 2013-05-27 14:24:15 UTC
This is IMO caused by some bug in the highlighting layer. Possibly related to Bug 225341 - Syntax highlighting in JSP occasionally stops working
Comment 4 MackSix 2013-08-28 03:16:33 UTC
This is working for me now in:

Product Version: NetBeans IDE Dev (Build 201308270854)
Updates: Updates available
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b40
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 5 MackSix 2013-08-28 03:36:13 UTC
I do see a minor problem still with some green highlighting appear on the white space before the ending script tag, that is not there in earlier versions. But it goes away if you click on the editor above the ending script tag.

See video:

http://youtu.be/0gjUWLW2SE0
Comment 6 Martin Balin 2016-07-07 07:31:11 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
Comment 7 brettryan 2016-07-08 12:01:59 UTC
Confirmed this seems cool now. Changing to fixed though as it was actually fixed by someone.