

BBEdit and TextWrangler
Text Filter Plugin Collection

Version 1.1 (2016-08-10)
Compiled by Adam Bjornson (bitfume.com)
Tested with Mac OS X 10.9.5


Overview

	A set of text filter plugins for BBEdit and TextWrangler from Bare Bones Software.

Installing The Filters

	Text filter plugins go in the following folder:

	~/Library/Application Support/BBEdit (or TextWrangler)/Text Filters/
	
	If you don't see this folder in the Finder, you can use the Go > Go to Folder... menu option and type it in. An alias to the folder is also included here.
	
Important Note

	Be sure to also copy to Unix Support folder into the root BBEdit Application Support Folder. This contains files used by the PHP and CSS plugins.

Using The Filters

	Installed filters appear in the Text > Apply Text Filter menu in BBEdit, and apply to either the current selection or all text (if there's no selection). No prompt appears, but the action is undoable. Custom hotkeys may be assigned to each filter.

Included Files

	This collection includes the following filters, which may be customized manually if desired, by opening them in a text editor. A recommended set of hotkeys appears next to each.

	Minifiy JavaScript		Ctrl-Cmd-M
	Tidy Up CSS				Ctrl-Cmd-C
	Tidy Up HTML			Ctrl-Cmd-H
	Tidy Up JavaScript		Ctrl-Cmd-J
	Tidy Up JSON			Ctrl-Cmd-S
	Tidy Up PHP				Ctrl-Cmd-P
	Tidy Up XML				Ctrl-Cmd-X
	
Creating Your Own Filters

	BBEdit text filter plugins can be in any executable format, but should run transparently in the background. They take input (stdin) and return output (stdout) using a standard command line interface. Common formats are Python, Ruby, and Shell. The files must be CHMOD/permission set to be executable.

Credits

	All filters are released either as public domain or under a free and open-source license. See each filter file for full credit and license info. Minify JavaScript by U. Latynski, based on work by D. Crockford. Tidy Up JavaScript by E. Lielmanis. Tidy Up CSS by F. Schmitz.

