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 209443 - Braces highlighting is broken if php is embedded inside Javascript
Summary: Braces highlighting is broken if php is embedded inside Javascript
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-11 21:40 UTC by bluescreenjunky
Modified: 2012-04-08 06:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
braces not being highlighted (25.55 KB, image/png)
2012-03-11 21:40 UTC, bluescreenjunky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bluescreenjunky 2012-03-11 21:40:36 UTC
Created attachment 116566 [details]
braces not being highlighted

If there is some php inside a javascript code, like this :

$(document).ready(function() {
     var message = "<?php echo $message?>";
     alert(message);
});

The braces are not correctly highlighted, which is really frustrating when working with jquery. (the highlighting works correctly in Komodo and phpstorm :-/)
Comment 1 Petr Pisl 2012-03-26 14:00:48 UTC
In the old JS Editor reproducible. There is not the issue in the new Js Editor that will be available after NB 7.2. 

I will look, if it's possible to fix it easy in the old js support.
Comment 2 Petr Pisl 2012-03-27 13:55:19 UTC
Fixed in the web-main http://hg.netbeans.org/web-main/rev/5b75e8f46413
Comment 3 Vladimir Riha 2012-03-30 14:59:47 UTC
verified

Product Version: NetBeans IDE Dev (Build 201203291138)
Comment 4 bluescreenjunky 2012-04-08 06:44:10 UTC
Indeed, it's working just fine in the latest nightlies, thanks a lot !