Plugin for Sublime Text 2 to format PHP code to meet the WordPress Coding Standards using a modified version of phptidy
- Total 37K
- Win 22K
- OS X 10K
- Linux 5K
|Jun 27||Jun 26||Jun 25||Jun 24||Jun 23||Jun 22||Jun 21||Jun 20||Jun 19||Jun 18||Jun 17||Jun 16||Jun 15||Jun 14||Jun 13||Jun 12||Jun 11||Jun 10||Jun 9||Jun 8||Jun 7||Jun 6||Jun 5||Jun 4||Jun 3||Jun 2||Jun 1||May 31||May 30||May 29||May 28||May 27||May 26||May 25||May 24||May 23||May 22||May 21||May 20||May 19||May 18||May 17||May 16||May 15||May 14||May 13|
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.