ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Php​Tidy

Plugin for Sublime Text 2 to format PHP code to meet the WordPress Coding Standards using a modified version of phptidy

Details

  • 2014.09.06.08.25.25
  • github.​com
  • github.​com
  • 10 years ago
  • 2 hours ago
  • 13 years ago

Installs

  • Total 37K
  • Win 22K
  • Mac 10K
  • Linux 5K
Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

PHP code formatter for Sublime Text editor with phptidy

Sublime Text 2

About

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:

http://magp.ie/2011/01/10/tidy-and-format-your-php-and-meet-wordpress-standards-on-coda-and-textwrangler/

Usage

ctrl + shift + P and type Tidy PHP, or you can use the ctrl + alt + T keybinding.

Customize

Custom settings file (for choosing between original phptidy and wp-phptidy).

Known issues

Running phptidy on your file will clear all bookmarks and foldings.

Install

Package Control

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.