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.
FCS build #200505031930 of NetBeans 4.1 Windows XP, JDK 1.5.0_03 build #06 Description: ============ DTD syntax highlighting gets corrupted when reference entities are used in DTD definition. Everything behind % gets blue color. Please see attached screenshot to get what I mean. Steps to reproduce: =================== 1. Create new sample web application and create new DTD file underneath. 2. Copy below attached DTD source and replace your DTD with it. 3. Everything behind % character will inherit blue color and tags are not recognized. DTD source code for step 2 above: ================================= <?xml version="1.0" encoding="UTF-8"?> <!-- Error: Missing " char. Should be: encoding="UTF-8" --> <!ENTITY %days SYSTEM "sub/days.dtd"> <!-- DTD comment --> <!ELEMENT root ANY> <!ATTLIST root private CDATA #REQUIRED> %days;
Created attachment 22819 [details] Screenshot of incorrect DTD syntax highlighting.
*** Issue 66511 has been marked as a duplicate of this issue. ***
I know this one is tough but could you please take a look at it ? It looks ugly and actually is regression.
fixed. Checking in javacc/DTDSyntax.jj; /cvs/xml/text-edit/src/org/netbeans/modules/xml/text/syntax/javacc/DTDSyntax.jj,v <-- DTDSyntax.jj new revision: 1.5; previous revision: 1.4 done Checking in javacc/DTDSyntaxConstants.java; /cvs/xml/text-edit/src/org/netbeans/modules/xml/text/syntax/javacc/DTDSyntaxConstants.java,v <-- DTDSyntaxConstants.java new revision: 1.4; previous revision: 1.3 done Checking in javacc/DTDSyntaxTokenManager.java; /cvs/xml/text-edit/src/org/netbeans/modules/xml/text/syntax/javacc/DTDSyntaxTokenManager.java,v <-- DTDSyntaxTokenManager.java new revision: 1.4; previous revision: 1.3 done
Works fine in development build #200511031900 of NetBeans 5.0.
*** Issue 68174 has been marked as a duplicate of this issue. ***