I would like to ask is there any software or script able to do conversion from
Colon syntax to curly brackets syntax?
From
if ($value):
endif;
To
if ($value) {
}
I am using Netbeans IDE, when I use curly brackets it will highlight the start or the end point. and I personally also prefer curly brackets syntax.
Anyone know where I can get the solution?
Press
Ctrl+HSearch
):and replace with) {Search
endif;and replace with}Also go to
Source->Format, you are done!