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に入るのに問題があるようですが、htmlがたくさんあるのでechoを使いたくありません。

Netbeans はこの問題に対処します。Aptana Studio でこれを修正するにはどうすればよいですか?

ありがとう

4

0 に答える 0