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.
Created attachment 113014 [details] Image of bad drawing 1 see how KW are not highlighted on 2 first lines I created a Mark Occurence Highlighter as per the tutorial It worked pretty well up until version 7 Now the painting of the first elements is garbled When I reverse the sequence of regions to highlight, it is the last tokens in the file to suffer I spent 2 whole days on trying many tricks! none would do. It is a timing problem. Calling bag.addHighlight in invokeLater does not change anything. The only stupid trick I found is to add a sleep(1ms), which I have difficulty to admit as a fix! See images of garbled output Thanks if you have any hint
Created attachment 113015 [details] Image of bad drawing 2 here 'from' KW is painted white on white!
This should be resolved by issue #203827. If the problem would persist please reopen the issue. Thanks. *** This bug has been marked as a duplicate of bug 203827 ***