Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333212

Summary: 'Toggle Comment' doesn't care if there are heading spaces
Product: z_Archived Reporter: Toshihiro Izumi <euthanasia_waltz>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Toshihiro Izumi CLA 2010-12-26 03:56:53 EST
Toggle Comment(Ctrl+/ or Ctrl+7) doesn't recognize leading spaces.
|<?php
|   // echo 0;
|?>
Move cursor onto the line and hit Ctrl+/.
Line comment will be changed to
| // echo 0;
instead of
|    echo 0;
It indicates 'Toggle Comment' deletes first 2 characters in the line always.
Hit Ctrl+/ again. Line comment will be changed to
|/ echo 0;
and syntax error marker will appear.
Comment 1 Toshihiro Izumi CLA 2010-12-26 22:02:02 EST
Created attachment 185822 [details]
patch
Comment 2 Zhongwei Zhao CLA 2011-04-14 00:45:53 EDT
hi Toshihiro,

thanks for your patch,from wtp 3.2.3,we use new toggle comment extension,and the bug does not exist now
Comment 3 Toshihiro Izumi CLA 2011-04-14 08:57:10 EDT
OK :)

BTW,
Remove Block Comment doesn't work in php part, Toggle Comment/Add Block Comment/Remove Block Comment don't work in html part, on my environment.

EclipseSDK3.7M6
pdt from CVS-HEAD
and other requirements from Indigo repository
Comment 4 Zhongwei Zhao CLA 2011-04-14 22:45:45 EDT
which version of wtp do you use?
Comment 5 Zhongwei Zhao CLA 2011-04-15 00:44:44 EDT
yes,you are right,I have tested it,thanks!we will fix it asap!
Comment 6 Zhongwei Zhao CLA 2011-04-27 01:46:39 EDT
fixed in head
Comment 7 Ilina Stefanova CLA 2011-07-26 02:50:46 EDT
Verified.