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.
Kate, a editor for kde, does the following trick with comments: <html> <body> <?php echo 'teste'; ?> </body> </html> If you select from <html> to </html> a <!-- --> style comment is used and <?php ?> is ignored. Then you need to select inside <?php ?> to use the // style comment. I don't know if it's possible to implement this in netbeans. Maybe more inteligent, using diferente style comments for different languages in selected text.
Another example is the following code: <th colspan="7"> <?php echo __('filters') ?> <?php if($_COOKIE["help"]=="dcontexto"): ?> <a class="dcontexto"> <img src="/sfTcheGeneratorPlugin/images/help.png"/> <span> <?php echo __('This is the search form of') ?> filial, <?php echo __('for field information it locates the hand of mouse on the name of the field.') ?> </span> </a> <?php endif; ?> <?php if ($sf_flash->has('delete')): ?> <h4 class="form-error"> <?php echo __($sf_flash->get('delete')) ?> </h4> <?php endif; ?> </th> If i select and use Ctrl + Shift +C the result will bee: // <th colspan="7"> // <?php echo __('filters') ?> // <?php if($_COOKIE["help"]=="dcontexto"): ?> // <a class="dcontexto"> // <img src="/sfTcheGeneratorPlugin/images/help.png"/> // <span> // <?php echo __('This is the search form of') ?> filial, // <?php echo __('for field information it locates the hand of mouse on the name of the field.') ?> // </span> // </a> // <?php endif; ?> // <?php if ($sf_flash->has('delete')): ?> // <h4 class="form-error"> // <?php echo __($sf_flash->get('delete')) ?> // </h4> // <?php endif; ?> // </th> And nothing is really commented (at last syntax highlight does not change. The sugestion is: <!-- <th colspan="7"> <?php echo __('filters') ?> <?php if($_COOKIE["help"]=="dcontexto"): ?> <a class="dcontexto"> <img src="/sfTcheGeneratorPlugin/images/help.png"/> <span> <?php echo __('This is the search form of') ?> filial, <?php echo __('for field information it locates the hand of mouse on the name of the field.') ?> </span> </a> <?php endif; ?> <?php if ($sf_flash->has('delete')): ?> <h4 class="form-error"> <?php echo __($sf_flash->get('delete')) ?> </h4> <?php endif; ?> </th> --> All html code commented and all php code keep uncomented or receive a /* */ inside the <?php tags.
Would be very useful. Should be implemented in 7.0, I reckon.
reassigning to default owner
batch reassigning
Works properly for me in 7.3dev.