From 44f39b628c487af77c0a503d622d57b99748e1e1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 31 May 2023 19:27:38 +0900 Subject: Added UiGuiErrorMessage, UiGuiIniFileParse and some code related to them. Added indenter .ini files. Signed-off-by: Michele Calgaro --- indenters/uigui_phpStylist.ini | 258 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 258 insertions(+) create mode 100755 indenters/uigui_phpStylist.ini (limited to 'indenters/uigui_phpStylist.ini') diff --git a/indenters/uigui_phpStylist.ini b/indenters/uigui_phpStylist.ini new file mode 100755 index 0000000..6374906 --- /dev/null +++ b/indenters/uigui_phpStylist.ini @@ -0,0 +1,258 @@ +[header] +categories="General|Operators|Functions, Classes and Objects|Control Structures|Arrays and Concatenation|Comments" +cfgFileParameterEnding=" " +configFilename= +fileTypes=*.php|*.phpt|*.phps +indenterFileName=phpStylist.php +indenterName=phpStylist (PHP) +inputFileName=indentinput +inputFileParameter=" " +manual=http://sourceforge.net/projects/phpstylist/ +outputFileName= +outputFileParameter=stdout +parameterOrder=ipo +showHelpParameter="-- --help" +stringparaminquotes=false +useCfgFileParameter= +version=1.0 + +[Indent size] +CallName="--indent_size " +Category=0 +Description="Indent the code with the set number of spaces." +EditorType=numeric +Enabled=true +MaxVal=99 +MinVal=0 +ValueDefault=4 + +[Indent with tabs] +Category=0 +Description="Indent with tabs instead of spaces" +EditorType=boolean +TrueFalse="--indent_with_tabs|" +ValueDefault=0 + +[Keep redundant lines] +Category=0 +Description="Keep redundant lines" +EditorType=boolean +TrueFalse="--keep_redundant_lines|" +ValueDefault=0 + +[Space inside parentheses] +Category=0 +Description="Space inside parentheses" +EditorType=boolean +TrueFalse="--space_inside_parentheses|" +ValueDefault=0 + +[Space outside parentheses] +Category=0 +Description="Space outside parentheses" +EditorType=boolean +TrueFalse="--space_outside_parentheses|" +ValueDefault=0 + +[Space after comma] +Category=0 +Description="Space after comma" +EditorType=boolean +TrueFalse="--space_after_comma|" +ValueDefault=0 + +[Space around assignment] +Category=1 +Description="Space around = .= += -= *= /= <<<" +EditorType=boolean +TrueFalse="--space_around_assignment|" +ValueDefault=0 + +[Align block +3 assigned variables] +Category=1 +Description="Align block +3 assigned variables" +EditorType=boolean +TrueFalse="--align_var_assignment|" +ValueDefault=0 + +[Space around comparison] +Category=1 +Description="Space around == === != !== > >= < <=" +EditorType=boolean +TrueFalse="--space_around_comparison|" +ValueDefault=0 + +[Space around arithmetic] +Category=1 +Description="Space around - + * / %" +EditorType=boolean +TrueFalse="--space_around_arithmetic|" +ValueDefault=0 + +[Space around logical] +Category=1 +Description="Space around && || AND OR XOR << >>" +EditorType=boolean +TrueFalse="--space_around_logical|" +ValueDefault=0 + +[Space around colon and question] +Category=1 +Description="Space around ? :" +EditorType=boolean +TrueFalse="--space_around_colon_question|" +ValueDefault=0 + +[Blank line before keyword] +Category=2 +Description="Blank line before keyword" +EditorType=boolean +TrueFalse="--line_before_function|" +ValueDefault=0 + +[Opening bracket on next line] +Category=2 +Description="Opening bracket on next line" +EditorType=boolean +TrueFalse="--line_before_curly_function|" +ValueDefault=0 + +[Blank line below opening bracket] +Category=2 +Description="Blank line below opening bracket" +EditorType=boolean +TrueFalse="--line_after_curly_function|" +ValueDefault=0 + +[Space around ->] +Category=2 +Description="Space around ->" +EditorType=boolean +TrueFalse="--space_around_obj_operator|" +ValueDefault=0 + +[Space around ::] +Category=2 +Description="Space around ::" +EditorType=boolean +TrueFalse="--space_around_double_colon|" +ValueDefault=0 + +[Space before parentheses] +Category=3 +Description="Space between keyword and opening parentheses" +EditorType=boolean +TrueFalse="--space_after_if|" +ValueDefault=0 + +[Keep else/elseif along with bracket] +Category=3 +Description="Keep else/elseif along with bracket" +EditorType=boolean +TrueFalse="--else_along_curly|" +ValueDefault=0 + +[Opening bracket on next line] +Category=3 +Description="Opening bracket on next line" +EditorType=boolean +TrueFalse="--line_before_curly|" +ValueDefault=0 + +[Add missing brackets] +Category=3 +Description="Add missing brackets to single line structs" +EditorType=boolean +TrueFalse="--add_missing_braces|" +ValueDefault=0 + +[Blank line after case "break"] +Category=3 +Description="Blank line after case 'break'" +EditorType=boolean +TrueFalse="--line_after_break|" +ValueDefault=0 + +[Space between "for" elements] +Category=3 +Description="Space between 'for' elements" +EditorType=boolean +TrueFalse="--space_inside_for|" +ValueDefault=0 + +[Extra indent for "Case" and "Default"] +Category=3 +Description="Extra indent for 'Case' and 'Default'" +EditorType=boolean +TrueFalse="--indent_case|" +ValueDefault=0 + +[Opening array parentheses on next line] +Category=4 +Description="Opening array parentheses on next line" +EditorType=boolean +TrueFalse="--line_before_array|" +ValueDefault=0 + +[Non-empty arrays as vertical block] +Category=4 +Description="Non-empty arrays as vertical block" +EditorType=boolean +TrueFalse="--vertical_array|" +ValueDefault=0 + +[Align block +3 assigned array elements] +Category=4 +Description="Align block +3 assigned array elements" +EditorType=boolean +TrueFalse="--align_array_assignment|" +ValueDefault=0 + +[Space around double arrow] +Category=4 +Description="Space around double arrow" +EditorType=boolean +TrueFalse="--space_around_double_arrow|" +ValueDefault=0 + +[Concatenation as vertical block] +Category=4 +Description="Concatenation as vertical block" +EditorType=boolean +TrueFalse="--vertical_concat|" +ValueDefault=0 + +[Space around concat elements] +Category=4 +Description="Space around concat elements" +EditorType=boolean +TrueFalse="--space_around_concat|" +ValueDefault=0 + +[Blank line before multi-line comment] +Category=5 +Description="Blank line before multi-line comment (/*)" +EditorType=boolean +TrueFalse="--line_before_comment_multi|" +ValueDefault=0 + +[Blank line after multi-line comment] +Category=5 +Description="Blank line after multi-line comment (/*)" +EditorType=boolean +TrueFalse="--line_after_comment_multi|" +ValueDefault=0 + +[Blank line before single line comments] +Category=5 +Description="Blank line before single line comments (//)" +EditorType=boolean +TrueFalse="--line_before_comment|" +ValueDefault=0 + +[Blank line after single line comments] +Category=5 +Description="Blank line after single line comments (//)" +EditorType=boolean +TrueFalse="--line_after_comment|" +ValueDefault=0 -- cgit v1.2.1