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 198269 - Comment out shortcut (CTRL + '/') doesn't work in certain cases on PHP/HTML code
Summary: Comment out shortcut (CTRL + '/') doesn't work in certain cases on PHP/HTML code
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-03 07:53 UTC by melight
Modified: 2011-11-04 15:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description melight 2011-05-03 07:53:26 UTC
When the cursor is on a PHP snippet enclosed in '<?' '?>', like this:

<? echo 'Hello world' ?>

When the shortcut is hit, it will produce '//' BEFORE the snippet, i.e. resulting in something like this:

//<? echo 'Hello world' ?>

When hit again will add more '//':
////<? echo 'Hello world' ?>.

If the cursor is not "touching" the snippet (the pipe '|' stands for the cursor position):

<div>HTML Cont|ent</div> <? echo 'Some PHP code' ?>

The shortcut when hit will do nothing at all.

Product Version = NetBeans IDE 7.0 (Build 201104080000)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) Client VM 17.1-b03
Comment 1 Marek Fukala 2011-11-01 15:52:40 UTC
PHP issue, it works fine in html.
Comment 2 Petr Pisl 2011-11-03 12:09:29 UTC
Fixed in web-main
http://hg.netbeans.org/web-main/rev/0dc1602bf8bb
Comment 3 Quality Engineering 2011-11-04 15:06:17 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/0dc1602bf8bb
User: Petr Pisl <ppisl@netbeans.org>
Log: #198269 - Comment out shortcut (CTRL + '/') doesn't work in certain cases on PHP/HTML code