dongxu7121 2012-03-17 08:23
浏览 100
已采纳

Eclipse缩进PHP

I have a PHP project with mix of HTML and JavaScript. PHP scripts are inserted inline. Can I use Eclipse to indent the project? I just want the code to be properly indented and nor formatted. By formatting, I mean that Eclipse should not replace spaces with $nbsp and other changes.

Suggestions about tools apart from eclipse are also welcomed.

  • 写回答

3条回答 默认 最新

  • duansengcha9114 2012-03-17 09:03
    关注

    I think for PHP you should use Zend Studio and it also based on Eclipse which i think you are already familiar with.

    By default it does not replace spaces with &nbsp and also you can also include your own custom formatting structure

    After Installation Go to

    Preferences -> PHP -> Code Style -> Formatter

    Click on new Enter a Name you can create your own formatting structure

    The same does for your JavaScript or other preferred supported Zend Studio Languages

    :)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效