我一直在使用aptana一段时间了,我有一个小问题,因为它让我发疯。如果在首选项选项(Windows-> Preferences-> Aptana studio-> Formmatter)中没有选项,则可以重新编码formmat规则。Aptana 3格式的phtml文件
我想重新编码.phtml文件的格式规则为一个简单的规则,<?php ... ?>
标记。每当我自动生成.phtml文件时,“标签”?>
添加一行。我不想要这条新线,我想要它保持在与最初标签相同的位置。
如果我写的一个.phtml文件是这样的:
<?php if ($this->x > 10) : ?>
<p> It is not greater than 10 </p>
<?php else : ?>
<p> It is greater than 10 </p>
<?php endif : ?>
,做自动套用格式,自动套用格式返回此:
<?php if ($this->x > 10) :
?>
<p> It is not greater than 10 </p>
<?php else :
?>
<p> It is greater than 10 </p>
<?php endif :
?>
我希望你能理解我的问题。任何人如何重新编码格式规则或向我展示选项,我可以说不要在?>
标记中添加新行。
在此先感谢。
P.D. 不好意思,如果我有一些语法错误,如果有一段时间,因为我必须用英文写。
对不起,感谢您的回答,并确保我会看到这个问题。 – Tolke
没问题:) 这个实现起来可能有点棘手,但我希望我们能拿出一个好的解决方案。 – sgibly