2012-03-15 51 views
0

到目前为止,我试着Aptana和CofeeCup肯定,他们工作正常自动完成功能和马比甚至变量,没有尝试过他们如此彻底,但什么即时消息描述不工作...编辑器可以自动完成CSS/JavaScript/Jquery?/ HTML里面的回声

我目前在核电厂(记事本+ +)和iv打开变量自动完成,但与我可以有功能完整,除非我按Ctrl +空格键。而我没有通知任何CSS样式完成。

例如:

<?php 
    $variable = "My text..."; 
    echo '<html>  <-- Fixing tags for me. 
       <head> 
        <style> 
         body { 
          padding: 0px;  <-- Autocomplete CSS inside the styletags within the 
          echo and maby a popup with options like aptana. 
        </style> 
        <script type="text/javascript"> 
          alert("lol");  <-- Autocomplete Javascript inside the scripttag within 
        </script>     <-- the echo maby even jquery. 
       </head> 
       <body>'.$variable.'    <-- Autocomplete previously used variable names would be 
        good here, (like NPP). 
        <div style="width:100%;height200px;" ></div> <-- And maby even CSS 
       </body>       <-- Autocomplete on "style" atributes. 
     </html>'; 
?> 

回答

0

编写JavaScript,CSS代码以外PHP中,然后复制/粘贴PHP的块内。你唯一需要逃避的是引号。简单。一切自动完成和东西 -

+0

或类似的东西<?php function myfunction {?> HTML/CSS/Javascript在这里... 并在php文件中调用该函数,但是如果任何编辑器支持,使用echo也许更容易它。 – user1271152 2012-03-15 10:04:04

0
<? $variable = "My text..."; ?> 
<html> 
    <head> 
     <style> 
      body { padding: 0px; } 
     </style> 
     <script> 
      alert("lol"); 
     </script> 
    </head> 
    <body> 
     <?= $variable ?> 
    </body> 
</html> 
<? /* the end */ ?> 

这样的代码看看。 ob_start +喜欢也可能有帮助。