Sublime text2安装php beautifier的方法(windows, xampp开发环境)
2014-05-14 22:59
501 查看
4000
摘自:http://www.lijinquan.com/sublime-text2%E5%AE%89%E8%A3%85php-beautifier%E7%9A%84%E6%96%B9%E6%B3%95windows-xampp%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/
1. 终端下使用pear安装php beautifier ,按照官方说明, cmd后进入xampp的php目录, 敲入:
pear update-channels
pear upgrade-all
pear install –alldeps channel://pear.php.net/php_beautifier-0.1.15
2. 在Sublime text中安装beautifier插件, 按ctrl+shift+p 在package control中搜索安装
3. 安装成功后重启Sublime,同样ctrl+shift+p 后输入 Fomat:Php,发现格式化没反应.
4. 按ctrl+shift+p后list, 进入beautifier插件的目录, 修改php_beautifier.py中的cmd为绝对路径, 如:
cmd = "G:\\xampp\\php\\php_beautifier.bat"
5. 打开xampp下php的beautifier目录, 如 G:\xampp\php\PEAR\PHP\Beautifier\Filter
注释掉 Pear.filter.php , phpBB.filter.php 中的 require_once("PEAR/Config.php");
5. 返回Sublime,输入 Format:Php ,格式化成功
摘自:http://www.lijinquan.com/sublime-text2%E5%AE%89%E8%A3%85php-beautifier%E7%9A%84%E6%96%B9%E6%B3%95windows-xampp%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/
1. 终端下使用pear安装php beautifier ,按照官方说明, cmd后进入xampp的php目录, 敲入:
pear update-channels
pear upgrade-all
pear install –alldeps channel://pear.php.net/php_beautifier-0.1.15
2. 在Sublime text中安装beautifier插件, 按ctrl+shift+p 在package control中搜索安装
3. 安装成功后重启Sublime,同样ctrl+shift+p 后输入 Fomat:Php,发现格式化没反应.
4. 按ctrl+shift+p后list, 进入beautifier插件的目录, 修改php_beautifier.py中的cmd为绝对路径, 如:
cmd = "G:\\xampp\\php\\php_beautifier.bat"
5. 打开xampp下php的beautifier目录, 如 G:\xampp\php\PEAR\PHP\Beautifier\Filter
注释掉 Pear.filter.php , phpBB.filter.php 中的 require_once("PEAR/Config.php");
5. 返回Sublime,输入 Format:Php ,格式化成功
相关文章推荐
- Windows7下PHP开发环境安装配置图文方法
- 搭建Windows系统下php开发环境有很多种方式,比如LAMP的配置、php IDE和调试工具的选择等等。根据每个人喜好不同有很多配置方式。这里主要介绍的是利用XAMPP集成安装和配置apache、
- PHP开发环境的搭建——XAMPP的安装与配置(Windows)
- PHP开发环境的搭建——XAMPP的安装与配置(Windows 7)
- windows 环境安装wamp软件实现php开发环境
- GSL安装使用方法MinGW 、 VC、Borland C++ Builder、Windows开发环境下的使用
- Ubuntu(Linux)+XAMPP(LAMPP)+eclipse+PHP+XDebug 完整的开发环境配置方法 -
- PHP环境配置:Windows下XAMPP的安装说明与使用
- 在 Windows 下安装 PHP 开发环境(基于 Appserv)
- PHP环境配置:Windows下XAMPP的安装说明与使用
- Poechant 快速安装配置教程:Windows 7下Apache+MySQL+PHP开发环境
- Windows7下PHP开发环境安装配置图文方
- 在Windows下应用AppServ(2.6.0)安装PHP开发环境
- Debian(Linux)+XAMPP(LAMPP)+Zend Studio + PHP +XDebug 完整的开发环境配置方法。
- windows下wxPython开发环境安装与配置方法
- PHP环境配置:Windows下XAMPP的安装说明与使用
- 在windows上安装PHP开发环境
- windows 环境安装wamp软件实现php开发环境
- Poechant 快速安装配置教程:Windows 7下Apache+MySQL+PHP开发环境
- windows+xampp+php5.4下安装memcache使用session的方法