cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 167300 - Commenting code by ctrl+/ doesn't match current language.
: Commenting code by ctrl+/ doesn't match current language.
Status: NEW
: editor
CSL (API & infrastructure)
: 6.8
: All All
: P2 (vote)
: 6.8
Assigned To:
:
:
:
: 6.8_WAIVER_APPROVED
:
:
  Show dependency treegraph
 
Reported: 2009-06-18 12:38 by
Modified: 2009-11-10 07:27 (History)
Issue Type: DEFECT
:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-06-18 12:38:35
Pressing ctrl+/ (comment line) in php tag in .html file makes wrong comment
symbol. 
Example code:
<div>
<?php
    echo "test";
?>
</div>

Pressing ctrl+/ on the echo line results in:
<div>
<?php
    <!--echo $response->body;-->?>
</div>
should be: 
    //echo $response->body;


The same happens in .php file, when commenting html tags:
<?php
    echo "test";
?>
<br />

Results in:
//<br />
Should be:
<!--<br />-->

As we comment code very frequently, I think this issue needs higher priority.

IDE about box info:
Product Version: NetBeans IDE Dev (Build 200906081401)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; Cp1250; pl_PL (nb)
------- Comment #1 From 2009-06-23 10:20:26 -------
mfukala and I agreed that handling the "comment line" action for embedded
languages should be supported by CSL - reassigning
------- Comment #2 From 2009-06-23 10:34:40 -------
The current implemenetation of the toggle comment is context (language on/in
caret position/selection) unsensitive, the
original goal was to have at least some toggle comment support for block
comment only languages. Making it language
sensitive is a trivial task, but solving all the corner cases (c/u of more
languages together) not.
------- Comment #3 From 2009-09-09 16:29:52 -------
*** Issue 169571 has been marked as a duplicate of this issue. ***
------- Comment #4 From 2009-10-22 07:35:27 -------
*** Issue 175147 has been marked as a duplicate of this issue. ***
------- Comment #5 From 2009-10-27 16:53:18 -------
*** Issue 125925 has been marked as a duplicate of this issue. ***