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 144153 - [65cat] [core] Incorrect highlighting when using embedded ruby in layout.
Summary: [65cat] [core] Incorrect highlighting when using embedded ruby in layout.
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-16 05:29 UTC by esmithbss
Modified: 2011-01-28 20:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
improper text highlighting in IDE (76.68 KB, text/plain)
2008-08-16 05:30 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2008-08-16 05:29:57 UTC
[ BUILD # : 200808141419 ]
[ JDK VERSION : 1.6.0_07 ]

As you can see in the attached screenshot, when I use some dynamic
code to assist in determining the source folder for a stylesheet, the
subsequent code on the same line is not highlighted properly.

You can compare lines 10 and 11 in the screenshot to see the
difference between wrong coloration (line 10) and proper coloring
(line 11).
Comment 1 esmithbss 2008-08-16 05:30:35 UTC
Created attachment 67610 [details]
improper text highlighting in IDE
Comment 2 esmithbss 2008-08-16 05:33:40 UTC
It appears that the triggering code is the <%= %> combination and not the #{...}.  If you add the <%= %> around the href
string in line 11, the remainder of the line is highlighted incorrectly.