1

格式在 Aptana studio 3 中给我带来了问题,这就是我想要的。

<?php
if (condition) {
    if (condition) {
        if (condition) {
            if (condition) {
            } else {
                if (condition) {                    
                    ?>
                        <!--a block of html code would go here
                        a block of html code would go here
                        a block of html code would go here
                        a block of html code would go here
                        a block of html code would go here
                        -->                 
                    <?php

                }
            }
        }
    }
} else {
}
?> 

但是,格式化后,我得到了:

<?php
if (condition) {
    if (condition) {
        if (condition) {
            if (condition) {
            } else {
                if (condition) {                    

?>
<!--a block of html code would go here
a block of html code would go here
a block of html code would go here
a block of html code would go here
a block of html code would go here
-->
<?php
}
}
}
}
} else {
}
?>

看起来格式化程序遇到了我从 php 出来输入 html 的问题,但是我不想使用 echo,因为 html 很多。

Netbeans 处理这个罚款。如何在 Aptana Studio 中解决此问题?

谢谢

4

0 回答 0