Plugin for Sublime Text 2 to format PHP code to meet the WordPress Coding Standards using a modified version of phptidy
- Total 36K
- Win 21K
- OS X 10K
- Linux 5K
|Mar 26||Mar 25||Mar 24||Mar 23||Mar 22||Mar 21||Mar 20||Mar 19||Mar 18||Mar 17||Mar 16||Mar 15||Mar 14||Mar 13||Mar 12||Mar 11||Mar 10||Mar 9||Mar 8||Mar 7||Mar 6||Mar 5||Mar 4||Mar 3||Mar 2||Mar 1||Feb 28||Feb 27||Feb 26||Feb 25||Feb 24||Feb 23||Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9|
PHP code formatter for Sublime Text editor with phptidy
This is a Sublime Text 2 plugin allowing you to format your PHP code.
It uses wp-phptidy, which is a little tool for formatting PHP code to conform the WordPress Coding Standards.
It is based on the phptidy script by Magnus Rosenbaum.
Modifications were made by Eoin Gallagher and described here:
ctrl + shift + P and type
Tidy PHP, or you can use the ctrl + alt + T keybinding.
Custom settings file (for choosing between original phptidy and wp-phptidy).
Running phptidy on your file will clear all bookmarks and foldings.
The easiest way to install this is with Package Control.
- If you just went and installed Package Control, you probably need to restart Sublime Text 2 before doing this next bit.
- Bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
- Select “Package Control: Install Package” (it'll take a few seconds)
- Select PhpTidy when the list appears.
Package Control will automatically keep phptidy up to date with the latest version.
If you have some problems or improvements with it, contact me via GitHub.