editplus+phpCB 簡單的PHP代碼格式化工具____PHP

來源:互聯網
上載者:User

轉自:http://www.lvtao.net/tool/editplus-phpcb.html


phpCB下載:http://download.csdn.net/detail/frt007/9533158


利用editplus+phpCB 打造簡單的PHP代碼格式化工具

phpCB下載:http://download.csdn.net/detail/frt007/9533158

我們每一位開發人員都希望自己能寫出漂亮整潔的代碼,但是由於在開發過程中將過多的心思都放在了開發上了,忽略了代碼的整潔性,怎麼辦呢。我這裡向大家介紹一個:PHP Code Beautifier結合Editplus打造完美代碼工具。

軟體:

PHP Code Beautifie(官方網站:http://www.waterproof.fr/)

Editplus(官方網站:http://www.editplus.com/)

步驟如下:

先把PHP Code Beautifie 下載下來放到Editplus安裝根目錄下。

然後設定參數,在Editplus下點擊:工具=>參數設定=>使用者工具=>添加工具=>應用程式。

1)菜單文本:自己隨便寫一個名字,比如我這裡寫"格式化代碼"

2)命令瀏覽到我們剛放在根目錄的phpCB.exe

3)參數:--space-after-if --glue-arrow --optimize-eol --space-after-switch 
--space-after-while --space-before-start-angle-bracket 
--one-true-brace-function-declaration --one-true-brace 
--extra-padding-for-case-statement --glue-amperscore 
--change-shell-comment-to-double-slashes-comment --indent-with-tab 
--force-large-php-code-tag --force-true-false-null-contant-lowercase 
--comment-rendering-style PEAR --equal-align-position 50 
--padding-char-count 1 "$(FilePath)"

4)初始目錄:$(FileDir)

5)動作:運行為文本過濾器(替換)

參數設定如下圖:

執行:工具=》代碼格式化。

phpCB下載:http://download.csdn.net/detail/frt007/9533158

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.