[ https://issues.apache.org/jira/browse/NETBEANS-5480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17324952#comment-17324952 ]
Junichi Yamamoto commented on NETBEANS-5480: -------------------------------------------- [~tmysik] Thank you for your help. > IMHO, mixing PHP and HTML in one class/method is definitely not a good way to > go, therefore it can be broken. I think so. [~stefanoai] I see now what you mean. You should create a proper title. I thought that the folding feature for <?php ?> doesn't work correctly. Anyway, I think you should separate HTML(or PHP) from the file. > Wrong folding for "<?php ?>" > ---------------------------- > > Key: NETBEANS-5480 > URL: https://issues.apache.org/jira/browse/NETBEANS-5480 > Project: NetBeans > Issue Type: Bug > Components: php - Formatting & Indentation > Affects Versions: 12.2 > Reporter: Stefano Calabrese > Assignee: Junichi Yamamoto > Priority: Major > Labels: Folding > Attachments: aspected_tmp_code_php.jpg, netbeans-5480-1.jpg, > wrong_tmp_code_php.jpg > > > Hi i have a problem with code folding "<?php ?>" > if you have this PHP code > {code:java} > Segnaposto codice // > <?php > class A { > function B(){ > ?><div>Hello</div><?php > } > } > {code} > when you create it it's ok, but *if you save, close and re-open it* , > you can see collapse <?php -> ?> and break folding as in image > (tmp_code_php.jpg) > > Actual result after save, close & reopen file .php > image attached wrong_tmp_code_php.jpg > > Expected result: > image attached aspected_tmp_code_php.jpg > > > Thank you -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists