PHP_Beautifier_Filter_IndentStylesFilter Indent Styles: Indent the code in k&r, allman, gnu or whitesmiths
Use 'style' setting to select the style. You can change the style inside the file, using the callbacks features. The following is a description taken from http://catb.org/~esr/jargon/html/I/indent-style.html
K&R style ['k&r'] Named after Kernighan & Ritchie, because the examples in K&R are formatted this way. Also called kernel style because the Unix kernel is written in it, and the "One True Brace Style" (abbrev. 1TBS) by its partisans. In C code, the body is typically indented by eight spaces (or one tab) per level, as shown here. Four spaces are occasionally seen in C, but in C++ and Java four tends to be the rule rather than the exception.
Allman style ['allman' or 'bsd'] Named for Eric Allman, a Berkeley hacker who wrote a lot of the BSD utilities in it (it is sometimes called BSD style). Resembles normal indent style in Pascal and Algol. It is the only style other than K&R in widespread use among Java programmers. Basic indent per level shown here is eight spaces, but four (or sometimes three) spaces are generally preferred by C++ and Java programmers.
Whitesmiths style ['whitesmiths']? popularized by the examples that came with Whitesmiths C, an early commercial C compiler. Basic indent per level shown here is eight spaces, but four spaces are occasionally seen.
GNU style ['gnu'] Used throughout GNU EMACS and the Free Software Foundation code, and just about nowhere else. Indents are always four spaces per level, with { and } halfway between the outer and inner indent levels.
Located in /Beautifier/Filter/IndentStyles.filter.php (line 75)
PHP_Beautifier_Filter | --PHP_Beautifier_Filter_IndentStyles
mixed
$aAllowedStyles
= array(
mixed
$aSettings
= array(
mixed
$sDescription
= 'Filter the code in 4 different indent styles: K&R, Allman, Whitesmiths and GNU' (line 88)
Inherited from PHP_Beautifier_Filter
PHP_Beautifier_Filter::$aFilterTokenFunctions
PHP_Beautifier_Filter::$aSettingsDefinition
PHP_Beautifier_Filter::$aToken
PHP_Beautifier_Filter::$bOn
PHP_Beautifier_Filter::$oBeaut
Constructor __construct (line 89)
t_close_brace_bsd (line 124)
Close braces in BSD style
t_close_brace_gnu (line 168)
Close braces in GNU style
t_close_brace_ws (line 152)
Close braces in Whitesmiths style
t_else (line 200)
Else for bds, gnu & ws
t_open_brace_bsd (line 113)
Open braces in BSD style
t_open_brace_gnu (line 186)
Open braces in GNU style
t_open_brace_ws (line 140)
Open braces in Whitesmiths style
__call (line 94)
Inherited From PHP_Beautifier_Filter
PHP_Beautifier_Filter::__construct()
PHP_Beautifier_Filter::addSettingDefinition()
PHP_Beautifier_Filter::getDescription()
PHP_Beautifier_Filter::getName()
PHP_Beautifier_Filter::getSetting()
PHP_Beautifier_Filter::handleToken()
PHP_Beautifier_Filter::off()
PHP_Beautifier_Filter::on()
PHP_Beautifier_Filter::postProcess()
PHP_Beautifier_Filter::preProcess()
PHP_Beautifier_Filter::setSetting()
PHP_Beautifier_Filter::__call()
PHP_Beautifier_Filter::__sleep()
PHP_Beautifier_Filter::__toString()
Documentation generated on Mon, 31 May 2010 16:16:08 -0400 by phpDocumentor 1.4.3