Last active
February 21, 2023 11:21
Revisions
-
Rarst revised this gist
Dec 13, 2014 . 3 changed files with 1 addition and 280 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,270 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Now Native PhpStorm now bundles WordPress coding style natively, starting from version 8. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +0,0 @@ -
Rarst revised this gist
Oct 8, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,6 @@ PhpStorm now bundles WordPress coding style natively, starting from version 8. 1. Go to `Project Settings` > `Code Style` > `PHP`. 2. Select `Set From...` (top right of window) > `Predefined Style` > `WordPress`. No longer need to muck with this import! :) -
Rarst revised this gist
Oct 8, 2014 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # Important PhpStorm now bundles WordPress coding style natively, starting from version 8. 1. Go to `Project Settings` > `Code Style` > `PHP`. 2. Select `Set From...` (top right of window) > `Predefined Style` > `WordPress` No longer need to muck with this import! :) -
Rarst revised this gist
Jan 13, 2014 . 1 changed file with 15 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,9 @@ <option name="IGNORE_SAME_INDENTS_FOR_LANGUAGES" value="true" /> <option name="OTHER_INDENT_OPTIONS"> <value> <option name="INDENT_SIZE" value="4" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> @@ -17,6 +17,9 @@ <option name="HTML_ATTRIBUTE_WRAP" value="0" /> <option name="HTML_TEXT_WRAP" value="0" /> <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" /> <CssCodeStyleSettings> <option name="VALUE_ALIGNMENT" value="2" /> </CssCodeStyleSettings> <JSCodeStyleSettings> <option name="ALIGN_OBJECT_PROPERTIES" value="2" /> </JSCodeStyleSettings> @@ -33,9 +36,7 @@ </XML> <codeStyleSettings language="CSS"> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> @@ -54,23 +55,19 @@ </codeStyleSettings> <codeStyleSettings language="HTML"> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="JavaScript"> <indentOptions> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="LESS"> <indentOptions> <option name="INDENT_SIZE" value="4" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> @@ -93,8 +90,6 @@ <option name="WHILE_BRACE_FORCE" value="3" /> <option name="FOR_BRACE_FORCE" value="3" /> <indentOptions> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> <arrangement> @@ -253,18 +248,23 @@ </codeStyleSettings> <codeStyleSettings language="Twig"> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="XML"> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> <arrangement> <rules> <rule> <match> <NAME>xmlns:.*</NAME> </match> </rule> </rules> </arrangement> </codeStyleSettings> </code_scheme> -
Rarst revised this gist
Nov 19, 2013 . 1 changed file with 36 additions and 36 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -77,7 +77,6 @@ <codeStyleSettings language="PHP"> <option name="CLASS_BRACE_STYLE" value="1" /> <option name="METHOD_BRACE_STYLE" value="1" /> <option name="SPACE_AROUND_UNARY_OPERATOR" value="true" /> <option name="SPACE_WITHIN_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_METHOD_CALL_PARENTHESES" value="true" /> @@ -89,6 +88,7 @@ <option name="SPACE_WITHIN_SWITCH_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACES" value="true" /> <option name="SPACE_AFTER_TYPE_CAST" value="true" /> <option name="IF_BRACE_FORCE" value="3" /> <option name="DOWHILE_BRACE_FORCE" value="3" /> <option name="WHILE_BRACE_FORCE" value="3" /> <option name="FOR_BRACE_FORCE" value="3" /> @@ -111,129 +111,129 @@ <rules> <rule> <match> <CONST /> </match> </rule> <rule> <match> <AND> <FIELD /> <PUBLIC /> <STATIC /> </AND> </match> </rule> <rule> <match> <AND> <FIELD /> <PROTECTED /> <STATIC /> </AND> </match> </rule> <rule> <match> <AND> <FIELD /> <PRIVATE /> <STATIC /> </AND> </match> </rule> <rule> <match> <AND> <FIELD /> <PUBLIC /> </AND> </match> </rule> <rule> <match> <AND> <FIELD /> <PROTECTED /> </AND> </match> </rule> <rule> <match> <AND> <FIELD /> <PRIVATE /> </AND> </match> </rule> <rule> <match> <CONSTRUCTOR /> </match> </rule> <rule> <match> <AND> <METHOD /> <PUBLIC /> <STATIC /> </AND> </match> </rule> <rule> <match> <AND> <METHOD /> <PROTECTED /> <STATIC /> </AND> </match> </rule> <rule> <match> <AND> <METHOD /> <PRIVATE /> <STATIC /> </AND> </match> </rule> <rule> <match> <AND> <METHOD /> <PUBLIC /> </AND> </match> </rule> <rule> <match> <AND> <METHOD /> <PROTECTED /> </AND> </match> </rule> <rule> <match> <AND> <METHOD /> <PRIVATE /> </AND> </match> </rule> <rule> <match> <TRAIT /> </match> </rule> <rule> <match> <INTERFACE /> </match> </rule> <rule> <match> <CLASS /> </match> </rule> </rules> -
Rarst revised this gist
Nov 19, 2013 . 1 changed file with 148 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,6 +26,7 @@ <option name="ALIGN_PHPDOC_COMMENTS" value="true" /> <option name="ALIGN_ASSIGNMENTS" value="true" /> <option name="PHPDOC_BLANK_LINES_AROUND_PARAMETERS" value="true" /> <option name="BLANK_LINE_BEFORE_RETURN_STATEMENT" value="true" /> </PHPCodeStyleSettings> <XML> <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" /> @@ -96,6 +97,147 @@ <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> <arrangement> <groups> <group> <type>GETTERS_AND_SETTERS</type> <order>KEEP</order> </group> <group> <type>DEPENDENT_METHODS</type> <order>DEPTH_FIRST</order> </group> </groups> <rules> <rule> <match> <TYPE>CONST</TYPE> </match> </rule> <rule> <match> <AND> <TYPE>FIELD</TYPE> <MODIFIER>PUBLIC</MODIFIER> <MODIFIER>STATIC</MODIFIER> </AND> </match> </rule> <rule> <match> <AND> <TYPE>FIELD</TYPE> <MODIFIER>PROTECTED</MODIFIER> <MODIFIER>STATIC</MODIFIER> </AND> </match> </rule> <rule> <match> <AND> <TYPE>FIELD</TYPE> <MODIFIER>PRIVATE</MODIFIER> <MODIFIER>STATIC</MODIFIER> </AND> </match> </rule> <rule> <match> <AND> <TYPE>FIELD</TYPE> <MODIFIER>PUBLIC</MODIFIER> </AND> </match> </rule> <rule> <match> <AND> <TYPE>FIELD</TYPE> <MODIFIER>PROTECTED</MODIFIER> </AND> </match> </rule> <rule> <match> <AND> <TYPE>FIELD</TYPE> <MODIFIER>PRIVATE</MODIFIER> </AND> </match> </rule> <rule> <match> <TYPE>CONSTRUCTOR</TYPE> </match> </rule> <rule> <match> <AND> <TYPE>METHOD</TYPE> <MODIFIER>PUBLIC</MODIFIER> <MODIFIER>STATIC</MODIFIER> </AND> </match> </rule> <rule> <match> <AND> <TYPE>METHOD</TYPE> <MODIFIER>PROTECTED</MODIFIER> <MODIFIER>STATIC</MODIFIER> </AND> </match> </rule> <rule> <match> <AND> <TYPE>METHOD</TYPE> <MODIFIER>PRIVATE</MODIFIER> <MODIFIER>STATIC</MODIFIER> </AND> </match> </rule> <rule> <match> <AND> <TYPE>METHOD</TYPE> <MODIFIER>PUBLIC</MODIFIER> </AND> </match> </rule> <rule> <match> <AND> <TYPE>METHOD</TYPE> <MODIFIER>PROTECTED</MODIFIER> </AND> </match> </rule> <rule> <match> <AND> <TYPE>METHOD</TYPE> <MODIFIER>PRIVATE</MODIFIER> </AND> </match> </rule> <rule> <match> <TYPE>TRAIT</TYPE> </match> </rule> <rule> <match> <TYPE>INTERFACE</TYPE> </match> </rule> <rule> <match> <TYPE>CLASS</TYPE> </match> </rule> </rules> </arrangement> </codeStyleSettings> <codeStyleSettings language="SCSS"> <indentOptions> @@ -106,6 +248,12 @@ </codeStyleSettings> <codeStyleSettings language="SQL"> <indentOptions> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="Twig"> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> -
Rarst revised this gist
Feb 7, 2013 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,9 @@ 1. Download [`WordPress.xml`](https://gist.github.com/Rarst/1370155/raw/WordPress.xml) configuration file from this gist. 2. Place into `.WebIdeXX/config/codestyles` in your user profile directory, [differs by operating system](http://www.jetbrains.com/phpstorm/webhelp/project-and-ide-settings.html). 3. Select `Settings` > `Project Settings` > `Code Style` > `Use global settings` > `Scheme name` > `"WordPress"`. 4. Format via `Code` > `Reformat Code...` in menu. 5. Please vote for ticket [WI-12040 WordPress coding style support](http://youtrack.jetbrains.com/issue/WI-12040) to show support for PhpStorm having WordPress coding style ruleset out of the box! -
Rarst revised this gist
Dec 19, 2012 . 2 changed files with 17 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,9 +30,6 @@ <XML> <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" /> </XML> <codeStyleSettings language="CSS"> <indentOptions> <option name="INDENT_SIZE" value="2" /> @@ -54,16 +51,32 @@ <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="HTML"> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="JavaScript"> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="LESS"> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="PHP"> <option name="CLASS_BRACE_STYLE" value="1" /> <option name="METHOD_BRACE_STYLE" value="1" /> <option name="ELSE_ON_NEW_LINE" value="true" /> <option name="SPACE_AROUND_UNARY_OPERATOR" value="true" /> <option name="SPACE_WITHIN_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_METHOD_CALL_PARENTHESES" value="true" /> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ 1. Download this WordPress.xml configuration file. 2. Place into `.WebIde50/config/codestyles` in your user profile directory, can differ for OS and PhpStorm version. 3. Select `Settings` > `Project Settings` > `Code Style` > `Use global settings` > `Scheme name` > `"WordPress"`. -
Rarst revised this gist
Apr 25, 2012 . 2 changed files with 20 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <code_scheme name="WordPress"> <option name="USE_SAME_INDENTS" value="true" /> <option name="IGNORE_SAME_INDENTS_FOR_LANGUAGES" value="true" /> <option name="OTHER_INDENT_OPTIONS"> <value> <option name="INDENT_SIZE" value="2" /> @@ -16,6 +17,9 @@ <option name="HTML_ATTRIBUTE_WRAP" value="0" /> <option name="HTML_TEXT_WRAP" value="0" /> <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" /> <JSCodeStyleSettings> <option name="ALIGN_OBJECT_PROPERTIES" value="2" /> </JSCodeStyleSettings> <PHPCodeStyleSettings> <option name="ALIGN_KEY_VALUE_PAIRS" value="true" /> <option name="ALIGN_PHPDOC_PARAM_NAMES" value="true" /> @@ -29,12 +33,6 @@ <ADDITIONAL_INDENT_OPTIONS fileType="haml"> <option name="INDENT_SIZE" value="2" /> </ADDITIONAL_INDENT_OPTIONS> <codeStyleSettings language="CSS"> <indentOptions> <option name="INDENT_SIZE" value="2" /> @@ -49,6 +47,13 @@ <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="Gherkin"> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="JavaScript"> <indentOptions> <option name="INDENT_SIZE" value="2" /> @@ -60,6 +65,7 @@ <option name="CLASS_BRACE_STYLE" value="1" /> <option name="METHOD_BRACE_STYLE" value="1" /> <option name="SPACE_AROUND_UNARY_OPERATOR" value="true" /> <option name="SPACE_WITHIN_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_METHOD_CALL_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_METHOD_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_IF_PARENTHESES" value="true" /> @@ -78,6 +84,13 @@ <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="SCSS"> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="SQL"> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ 1. Download this WordPress.xml configuration file. 2. Place into `.WebIde40/config/codestyles` (in your user profile directory, OS-specific). 3. Select `Settings` > `Project Settings` > `Code Style` > `Use global settings` > `Scheme name` > `"WordPress"`. -
Rarst revised this gist
Mar 24, 2012 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ 1. Download this WordPress.xml configuration file. 2. Place into `.WebIde10/config/codestyles` (in your user profile directory, OS-specific). 3. Select `Settings` > `Project Settings` > `Code Style` > `Use global settings` > `Scheme name` > `"WordPress"`. 4. Format via `Code` > `Reformat Code...` in menu. -
Rarst revised this gist
Dec 3, 2011 . 1 changed file with 26 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,9 +3,9 @@ <option name="USE_SAME_INDENTS" value="true" /> <option name="OTHER_INDENT_OPTIONS"> <value> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> @@ -37,20 +37,22 @@ </ADDITIONAL_INDENT_OPTIONS> <codeStyleSettings language="CSS"> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="CoffeeScript"> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="JavaScript"> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> @@ -71,7 +73,23 @@ <option name="WHILE_BRACE_FORCE" value="3" /> <option name="FOR_BRACE_FORCE" value="3" /> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="SQL"> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="XML"> <indentOptions> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="4" /> <option name="TAB_SIZE" value="2" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> -
Rarst revised this gist
Nov 29, 2011 . 1 changed file with 33 additions and 81 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,96 +16,44 @@ <option name="HTML_ATTRIBUTE_WRAP" value="0" /> <option name="HTML_TEXT_WRAP" value="0" /> <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" /> <PHPCodeStyleSettings> <option name="ALIGN_KEY_VALUE_PAIRS" value="true" /> <option name="ALIGN_PHPDOC_PARAM_NAMES" value="true" /> <option name="ALIGN_PHPDOC_COMMENTS" value="true" /> <option name="ALIGN_ASSIGNMENTS" value="true" /> <option name="PHPDOC_BLANK_LINES_AROUND_PARAMETERS" value="true" /> </PHPCodeStyleSettings> <XML> <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" /> </XML> <ADDITIONAL_INDENT_OPTIONS fileType="haml"> <option name="INDENT_SIZE" value="2" /> </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="sass"> <option name="INDENT_SIZE" value="2" /> </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="yml"> <option name="INDENT_SIZE" value="2" /> </ADDITIONAL_INDENT_OPTIONS> <codeStyleSettings language="CSS"> <indentOptions> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="CoffeeScript"> <indentOptions> <option name="INDENT_SIZE" value="4" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="JavaScript"> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> <codeStyleSettings language="PHP"> <option name="CLASS_BRACE_STYLE" value="1" /> <option name="METHOD_BRACE_STYLE" value="1" /> @@ -122,5 +70,9 @@ <option name="DOWHILE_BRACE_FORCE" value="3" /> <option name="WHILE_BRACE_FORCE" value="3" /> <option name="FOR_BRACE_FORCE" value="3" /> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="USE_TAB_CHARACTER" value="true" /> </indentOptions> </codeStyleSettings> </code_scheme> -
Rarst created this gist
Nov 16, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,126 @@ <?xml version="1.0" encoding="UTF-8"?> <code_scheme name="WordPress"> <option name="USE_SAME_INDENTS" value="true" /> <option name="OTHER_INDENT_OPTIONS"> <value> <option name="INDENT_SIZE" value="4" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> <option name="LABEL_INDENT_ABSOLUTE" value="false" /> <option name="USE_RELATIVE_INDENTS" value="false" /> </value> </option> <option name="HTML_ATTRIBUTE_WRAP" value="0" /> <option name="HTML_TEXT_WRAP" value="0" /> <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" /> <ADDITIONAL_INDENT_OPTIONS fileType="css"> <option name="INDENT_SIZE" value="4" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> <option name="LABEL_INDENT_ABSOLUTE" value="false" /> <option name="USE_RELATIVE_INDENTS" value="false" /> </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="haml"> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="false" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> <option name="LABEL_INDENT_ABSOLUTE" value="false" /> <option name="USE_RELATIVE_INDENTS" value="false" /> </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="js"> <option name="INDENT_SIZE" value="4" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> <option name="LABEL_INDENT_ABSOLUTE" value="false" /> <option name="USE_RELATIVE_INDENTS" value="false" /> </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="jsp"> <option name="INDENT_SIZE" value="4" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="false" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> <option name="LABEL_INDENT_ABSOLUTE" value="false" /> <option name="USE_RELATIVE_INDENTS" value="false" /> </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="php"> <option name="INDENT_SIZE" value="4" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="true" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> <option name="LABEL_INDENT_ABSOLUTE" value="false" /> <option name="USE_RELATIVE_INDENTS" value="false" /> </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="sass"> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="false" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> <option name="LABEL_INDENT_ABSOLUTE" value="false" /> <option name="USE_RELATIVE_INDENTS" value="false" /> </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="sql"> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="false" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> <option name="LABEL_INDENT_ABSOLUTE" value="false" /> <option name="USE_RELATIVE_INDENTS" value="false" /> </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="xml"> <option name="INDENT_SIZE" value="4" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="false" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> <option name="LABEL_INDENT_ABSOLUTE" value="false" /> <option name="USE_RELATIVE_INDENTS" value="false" /> </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="yml"> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> <option name="TAB_SIZE" value="4" /> <option name="USE_TAB_CHARACTER" value="false" /> <option name="SMART_TABS" value="false" /> <option name="LABEL_INDENT_SIZE" value="0" /> <option name="LABEL_INDENT_ABSOLUTE" value="false" /> <option name="USE_RELATIVE_INDENTS" value="false" /> </ADDITIONAL_INDENT_OPTIONS> <codeStyleSettings language="PHP"> <option name="CLASS_BRACE_STYLE" value="1" /> <option name="METHOD_BRACE_STYLE" value="1" /> <option name="SPACE_AROUND_UNARY_OPERATOR" value="true" /> <option name="SPACE_WITHIN_METHOD_CALL_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_METHOD_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_IF_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_WHILE_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_FOR_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_CATCH_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_SWITCH_PARENTHESES" value="true" /> <option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACES" value="true" /> <option name="SPACE_AFTER_TYPE_CAST" value="true" /> <option name="DOWHILE_BRACE_FORCE" value="3" /> <option name="WHILE_BRACE_FORCE" value="3" /> <option name="FOR_BRACE_FORCE" value="3" /> </codeStyleSettings> </code_scheme>