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 183395 - Code is often not colored correctly
Summary: Code is often not colored correctly
Status: RESOLVED DUPLICATE of bug 183709
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-02 11:48 UTC by Petr Jiricka
Modified: 2010-04-16 09:03 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of incorrect/incomplete coloring of XML code (70.19 KB, image/png)
2010-04-02 11:48 UTC, Petr Jiricka
Details
screenshot (41.01 KB, image/png)
2010-04-13 14:42 UTC, _ alexpetrov
Details
screenshot (40.87 KB, image/png)
2010-04-13 14:42 UTC, _ alexpetrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2010-04-02 11:48:46 UTC
Created attachment 96589 [details]
Screenshot of incorrect/incomplete coloring of XML code

Often XML code is not properly colored in the editor, see the attached screenshot. Usually this disappears after moving the caret in the file, but it is very unexpected and annoying at first. This happens quite often -> P2.
Comment 1 Sergey Lunegov 2010-04-05 12:25:31 UTC
Alex, please take a look.
Comment 2 Sergey Lunegov 2010-04-13 07:23:23 UTC
Petr, does it occur in "all" xml files or in pom.xml only ?
Comment 3 Milos Kleint 2010-04-13 07:26:44 UTC
AfAIK maven support itself just defines a mimetype and delegates all basic xml functionality to general xml support. There's nothing special there with regard to coloring for sure.
Comment 4 Petr Jiricka 2010-04-13 08:31:15 UTC
I believe I saw this in other xml files as well. Recently I was mostly editing pom files, which is probably why I notice this in pom files more.
Comment 5 _ alexpetrov 2010-04-13 14:42:04 UTC
Created attachment 97210 [details]
screenshot
Comment 6 _ alexpetrov 2010-04-13 14:42:38 UTC
Created attachment 97211 [details]
screenshot
Comment 7 _ alexpetrov 2010-04-13 14:43:25 UTC
I've looked at your screen shot and attached 2 ones more: "caret_row-4_col-9.PNG" and "caret_row-4_col-50(EOL).PNG".
Please, tell me are lines coloured properly there or not?
If not please explain what's wrong and how lines should be coloured?
Please, give me more info...
Comment 8 Petr Jiricka 2010-04-13 14:55:32 UTC
Not sure I understand your question:

> please explain what's wrong and how lines should be coloured?

In the screenshot I attached, XML tags should be blue - some of them are black. In the screenshots you attached, things look good.

Anyway, I also saw this today in other files (not just XML) and I heard it is likely related to the general editing infrastructure - reassigning.
Comment 9 Vitezslav Stejskal 2010-04-16 09:03:15 UTC

*** This bug has been marked as a duplicate of bug 183709 ***