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.
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)
mfukala and I agreed that handling the "comment line" action for embedded languages should be supported by CSL - reassigning
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.
*** Issue 169571 has been marked as a duplicate of this issue. ***
*** Issue 175147 has been marked as a duplicate of this issue. ***
*** Issue 125925 has been marked as a duplicate of this issue. ***
http://hg.netbeans.org/jet-main/rev/9f96608c6035
God bless Vita!!! Thanks!!!
Integrated into 'main-golden', will be available in build *201002170200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9f96608c6035 User: Vita Stejskal <vstejskal@netbeans.org> Log: #167300: improving CSL's toggle comment action to work with embedded languages