From 44f39b628c487af77c0a503d622d57b99748e1e1 Mon Sep 17 00:00:00 2001
From: Michele Calgaro The -a command-line option causes all tags containing more that one attribute to be broken over multiple lines, each with a single attribute. The attributes are aligned vertically with the first attribute. A similar attribute break will occur by default, but only on tags exceeding the column 80 limit, and each line may contain more than one attribute. The -b command-line option causes all tag attributes to be broken on succeeding lines. The attributes are aligned vertically with the last character in the tag name. When the current indenting and appearance of your tagged document is acceptable, the -k command-line option may be used to change only the case of the tag names and attributes with no other changes applied. The -l command-line option changes all HTML tag names and their attributes to lower case. Combine with the -m (mixed case) option to keep the tag names lower case, but make the attribute names upper case. The -r command-line option strips any tag which is not part of the HTML 4.01 specification (and a group of widely recognized, commonly used legacy tags) from the output. Its a convenient way to separate HTML from hybrid files like ASP, JSP, XSL or files containing custom tags. The stripped tags are reported along with any errors to "standard error". The -u command-line option changes all HTML tag names and their attributes to upper case. Since this is the default behavior of HTB, it is not required. Use the -m (mixed case) option to keep the tag names upper case, but make the attribute names lower case. HTB automatically detects XML compliant files and is able to apply reformatting to unknown tags since they meet the predictable behavior of the XML specification. If the input document is not strictly XML compliant, but does contain custom tagging which may be considered "well-formed" XML, the -x option may be used to apply XML handling on these otherwise ignored tags. If XML is detected, either automatically, or with the -x option, the tag case is NOT changed for these non-HTML tags, since they are often case-sensitive. Also, the attributes of unknown tags will remain in original order instead of being sorted as with HTML attributes. To turn off XML auto-detection and apply case changes and attribute sorting to all tags known and unknown, use the -y option. HTB automatically detects XML compliant files and treats the unknown tags differently than HTML tags. XML tags are indented as whitespace permits and case changes & attribute sorting are not applied. To turn off this default behavior and apply case changes & sorting to all tags known and unknown, specify the -y option. By default, perltidy will add line breaks when necessary to create continuations of long lines and to improve the script appearance. Use -nanl or --noadd-newlines to prevent any new line breaks. This flag does not prevent perltidy from eliminating existing line breaks; see --freeze-newlines to completely prevent changes to line break points. Setting -asc allows perltidy to add any missing optional semicolon at the end of a line which is followed by a closing curly brace on the next line. This is the default, and may be deactivated with -nasc or --noadd-semicolons. Setting this option allows perltidy to add certain whitespace improve code readability. This is the default. If you do not want any whitespace added, but are willing to have some whitespace deleted, use -naws. (Use -fws to leave whitespace completely unchanged). And finally, curly braces which contain blocks of code are controlled by the parameter -bbt=n or --block-brace-tightness=n as illustrated in the example below. The -bbvt=n flag is just like the -vt=n flag but applies to opening code block braces. It is necessary to also use either -bl or -bli for this to work, because, as with other vertical tightness controls, it is implemented by simply overwriting a line ending with an opening block brace with the subsequent line. For example: By default this applies to blocks associated with keywords if, elsif, else, unless, for, foreach, sub, while, until, and also with a preceding label. This can be changed with the parameter -bbvtl=string, or --block-brace-vertical-tightness-list=string, where string is a space-separated list of block types. For more information on the possible values of this string, see Specifying Block Types For example, if we want to just apply this style to There is no vertical tightness control for closing block braces; with the exception of one-line blocks, they will normally remain on a separate line. The flag -bli is the same as -bl but in addition it causes one unit of continuation indentation ( see -ci ) to be placed before an opening and closing block braces. For example, By default, this extra indentation occurs for blocks of type:if, elsif, else, unless, for, foreach, sub, while, until, and also with a preceding label. The next item shows how to change this. Use this parameter to change the types of block braces for which the -bli flag applies; see Specifying Block Types. For example, -blil='if elsif else' would apply it to only Curly braces which do not contain code blocks are controlled by the parameter -bt=n or --brace-tightness=n. The -vt=n and -vtc=n parameters apply to each type of container token. If desired, vertical tightness controls can be applied independently to each of the closing container token types. In fact, the parameter -vt=n is actually just an abbreviation for -pvt=n -bvt=n sbvt=n, and likewise -vtc=n is an abbreviation for -pvtc=n -bvtc=n sbvtc=n. The -vt=n and -vtc=n parameters apply to each type of container token. If desired, vertical tightness controls can be applied independently to each of the closing container token types. In fact, the parameter -vt=n is actually just an abbreviation for -pvt=n -bvt=n sbvt=n, and likewise -vtc=n is an abbreviation for -pvtc=n -bvtc=n sbvtc=n. The -baao sets the default to be to break after all of the following operators: and the -bbao flag sets the default to break before all of these operators. These can be used to define an initial break preference which can be fine-tuned with the -wba and -wbb flags. For example, to break before all operators except an = one could use --bbao -wba='=' rather than listing every single perl operator except = on a -wbb flag. The -baao sets the default to be to break after all of the following operators: and the -bbao flag sets the default to break before all of these operators. These can be used to define an initial break preference which can be fine-tuned with the -wba and -wbb flags. For example, to break before all operators except an = one could use --bbao -wba='=' rather than listing every single perl operator except = on a -wbb flag. 0 - None.
-EditorType=multiple
-Enabled=false
-ValueDefault=1
-
-[Compress colors]
-Category=0
-Description=Compress colors.
-EditorType=boolean
-TrueFalse="--compress_colors=true|--compress_colors=false"
-ValueDefault=1
-
-[Compress font-weight]
-Category=0
-Description=Compress font weight.
-EditorType=boolean
-TrueFalse="--compress_font=true|--compress_font=false"
-ValueDefault=1
-
-[Lowercase selectors]
-Category=0
-Description=Lowercase selectors names needed for XHTML.
-EditorType=boolean
-TrueFalse="--lowercase_s=true|--lowercase_s=false"
-ValueDefault=0
-
-[Optimise shorthands]
-Category=0
-Choices="--optimise_shorthands=0|--optimise_shorthands=1|--optimise_shorthands=2"
-Description=
1 - Lowercase.
2 - Uppercase. 0 - Do not optimise.
-EditorType=multiple
-Enabled=false
-ValueDefault=1
-
-[Preserve CSS]
-Category=0
-Description="Save comments, hacks, etc.
1 - Safe optimisations.
2 - All optimisations.
Most optimisations can NOT be applied if this is enabled."
-EditorType=boolean
-TrueFalse="--preserve_css=true|--preserve_css=false"
-ValueDefault=0
-
-[Regroup selectors]
-Category=0
-Choices="--merge_selectors=0|--merge_selectors=1|--merge_selectors=2"
-Description=" 0 - Do not change anything
"
-EditorType=multiple
-Enabled=false
-ValueDefault=2
-
-[Remove last semikolon]
-Category=0
-Description="Remove last ;"
-EditorType=boolean
-TrueFalse="--remove_last_;=true|--remove_last_;=false"
-ValueDefault=0
-
-[Remove unnecessary backslashes]
-Category=0
-Description=Remove backslashes.
-EditorType=boolean
-TrueFalse="--remove_bslash=true|--remove_bslash=false"
-ValueDefault=1
-
-[Sort properties]
-Category=0
-Description=Sort properties.
-EditorType=boolean
-TrueFalse="--sort_properties=true|--sort_properties=false"
-ValueDefault=0
-
-[Sort selectors %28caution%29]
-Category=0
-Description=Attention: This may change the behavior of your CSS code!
-EditorType=boolean
-TrueFalse="--sort_selectors=true|--sort_selectors=false"
-ValueDefault=0
-
-[Template]
-Category=0
-Choices="--template=highest|--template=high|--template=default|--template=low"
-Description="
1 - Only seperate selectors (split at , )
2 - Merge selectors with the same properties (fast) Highest - No readability, smallest size.
"
-EditorType=multiple
-Enabled=false
-ValueDefault=2
diff --git a/indenters/__TODO/uigui_f90ppr.ini b/indenters/__TODO/uigui_f90ppr.ini
deleted file mode 100755
index 9d3dc3c..0000000
--- a/indenters/__TODO/uigui_f90ppr.ini
+++ /dev/null
@@ -1,17 +0,0 @@
-[header]
-categories=
-cfgFileParameterEnding=
-configFilename=
-fileTypes=*.f90
-indenterFileName=f90ppr.exe
-indenterName=Fortran 90 PPR (Fortran)
-inputFileName=indentinput
-inputFileParameter="< "
-manual=ftp://ftp.ifremer.fr/ifremer/fortran90
-outputFileName=
-outputFileParameter=stdout
-parameterOrder=pio
-showHelpParameter=
-stringparaminquotes=false
-useCfgFileParameter=
-version=1.3
diff --git a/indenters/__TODO/uigui_gnuindent.ini b/indenters/__TODO/uigui_gnuindent.ini
deleted file mode 100755
index 53ac520..0000000
--- a/indenters/__TODO/uigui_gnuindent.ini
+++ /dev/null
@@ -1,527 +0,0 @@
-[header]
-categories=General|Blank lines|Comments|Statements|Declarations|Indentation|Breaking long lines
-cfgFileParameterEnding=cr
-configFilename=.indent.pro
-fileTypes=*.c|*.h
-indenterFileName=indent
-indenterName=GNU Indent (C)
-inputFileName=indentinput
-inputFileParameter=
-manual=http://universalindent.sf.net/indentermanuals/indent.html
-outputFileName=indentoutput
-outputFileParameter="-o "
-parameterOrder=ipo
-showHelpParameter=-h
-stringparaminquotes=false
-useCfgFileParameter=none
-version=2.2.9
-
-[ANSI style formatting]
-Category=0
-Description=original Berkeley indent
-EditorType=boolean
-TrueFalse=-orig|
-ValueDefault=0
-
-[GNU style formatting]
-Category=0
-Description=GNU style formatting/indenting.
-EditorType=boolean
-TrueFalse=-gnu|
-ValueDefault=0
-
-[KR style formatting]
-Category=0
-Description=Kernighan&Ritchie style formatting/indenting.
-EditorType=boolean
-TrueFalse=-kr|
-ValueDefault=0
-
-[blank-before-sizeof]
-Category=3
-Description=Put a space between sizeof and its argument.
-EditorType=boolean
-TrueFalse=-bs|
-ValueDefault=0
-
-[blank-lines-after-commas]
-Category=4
-Description=Force newline after comma in declaration.
-EditorType=boolean
-TrueFalse=-bc|
-ValueDefault=0
-
-[blank-lines-after-declarations]
-Category=1
-Description=The -bad option forces a blank line after every block of declarations.
-EditorType=boolean
-TrueFalse=-bad|
-ValueDefault=0
-
-[blank-lines-after-procedures]
-Category=1
-Description=The -bap option forces a blank line after every procedure body.
-EditorType=boolean
-TrueFalse=-bap|
-ValueDefault=0
-
-[blank-lines-before-block-comments]
-Category=1
-Description=Force blank lines before block comments.
-EditorType=boolean
-TrueFalse=-bbb|
-ValueDefault=0
-
-[brace-indentn]
-CallName=-bli
-Category=3
-Description=Indent braces n spaces.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=3
-
-[braces-after-if-line]
-Category=3
-Description="Put braces on line after if, etc."
-EditorType=boolean
-TrueFalse=-bl|
-ValueDefault=0
-
-[braces-after-struct-decl-line]
-Category=4
-Description=Put braces on the line after struct declaration lines.
-EditorType=boolean
-TrueFalse=-bls|
-ValueDefault=0
-
-[braces-on-if-line]
-Category=3
-Description="Put braces on line with if, etc."
-EditorType=boolean
-TrueFalse=-br|
-ValueDefault=0
-
-[braces-on-struct-decl-line]
-Category=4
-Description=Put braces on struct declaration line.
-EditorType=boolean
-TrueFalse=-brs|
-ValueDefault=0
-
-[break-after-boolean-operator]
-Category=6
-Description=Do not prefer to break long lines before boolean operators.
-EditorType=boolean
-TrueFalse=-nbbo|
-ValueDefault=0
-
-[break-before-boolean-operator]
-Category=6
-Description=Prefer to break long lines before boolean operators.
-EditorType=boolean
-TrueFalse=-bbo|
-ValueDefault=0
-
-[break-function-decl-args]
-Category=4
-Description=Break the line after the last argument in a declaration.
-EditorType=boolean
-TrueFalse=-bfde|
-ValueDefault=0
-
-[case-brace-indentationn]
-CallName=-cbi
-Category=3
-Description=Indent braces after a case label N spaces.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=4
-
-[case-indentationn]
-CallName=-cli
-Category=3
-Description=Case label indent of n spaces.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=4
-
-[comment-delimiters-on-blank-lines]
-Category=2
-Description=Put comment delimiters on blank lines.
-EditorType=boolean
-TrueFalse=-cdb|
-ValueDefault=0
-
-[comment-indentationn]
-CallName=-c
-Category=2
-Description=Put comments to the right of code in column n.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=33
-
-[comment-line-lengthn]
-CallName=-lc
-Category=2
-Description=Set maximum line length for comment formatting to n.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=1
-ValueDefault=78
-
-[continuation-indentationn]
-CallName=-ci
-Category=3
-Description=Continuation indent of n spaces.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=4
-
-[continue-at-parentheses]
-Category=5
-Description=Line up continued lines at parentheses.
-EditorType=boolean
-TrueFalse=-lp|
-ValueDefault=0
-
-[cuddle-do-while]
-Category=2
-Description="Cuddle while of do {} while; and preceeding `}'."
-EditorType=boolean
-TrueFalse=-cdw|
-ValueDefault=0
-
-[cuddle-else]
-Category=2
-Description=Cuddle else and preceeding `}'.
-EditorType=boolean
-TrueFalse=-ce|
-ValueDefault=0
-
-[declaration-comment-columnn]
-CallName=-cd
-Category=2
-Description=Put comments to the right of the declarations in column n.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=33
-
-[declaration-indentationn]
-CallName=-di
-Category=4
-Description=Put variables in column n.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=4
-
-[dont-break-function-decl-args]
-Category=4
-Description=Don't put each argument in a function declaration on a seperate line.
-EditorType=boolean
-TrueFalse=-nbfda|
-ValueDefault=0
-
-[dont-break-procedure-type]
-Category=4
-Description=Put the type of a procedure on the same line as its name.
-EditorType=boolean
-TrueFalse=-npsl|
-ValueDefault=0
-
-[dont-cuddle-do-while]
-Category=3
-Description="Do not cuddle } and the while of a do {} while;."
-EditorType=boolean
-TrueFalse=-ncdw|
-ValueDefault=0
-
-[dont-cuddle-else]
-Category=3
-Description=Do not cuddle } and else.
-EditorType=boolean
-TrueFalse=-nce|
-ValueDefault=0
-
-[dont-line-up-parentheses]
-Category=3
-Description=Do not line up parentheses.
-EditorType=boolean
-TrueFalse=-nlp|
-ValueDefault=0
-
-[dont-space-special-semicolon]
-Category=3
-Description=Do not force a space before the semicolon after certain statements. Disables `-ss'.
-EditorType=boolean
-TrueFalse=-nss|
-ValueDefault=0
-
-[else-endif-columnn]
-CallName=-cp
-Category=2
-Description=Put comments to the right of #else and #endif statements in column n.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=33
-
-[format-all-comments]
-Category=2
-Description=Do not disable all formatting of comments.
-EditorType=boolean
-TrueFalse=-fca|
-ValueDefault=0
-
-[format-first-column-comments]
-Category=2
-Description=Format comments in the first column.
-EditorType=boolean
-TrueFalse=-fc1|
-ValueDefault=0
-
-[honour-newlines]
-Category=6
-Description=Prefer to break long lines at the position of newlines in the input.
-EditorType=boolean
-TrueFalse=-hnl|
-ValueDefault=0
-
-[ignore-newlines]
-Category=6
-Description=Do not prefer to break long lines at the position of newlines in the input.
-EditorType=boolean
-TrueFalse=-nhnl|
-ValueDefault=0
-
-[indent-leveln]
-CallName=-i
-Category=5
-Description=Set indentation level to n spaces.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=4
-
-[leave-preprocessor-space]
-Category=5
-Description=Leave space between `#' and preprocessor directive.
-EditorType=boolean
-TrueFalse=-lps|
-ValueDefault=0
-
-[line-comments-indentationn]
-CallName=-d
-Category=2
-Description=Set indentation of comments not to the right of code to n spaces.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=33
-
-[line-lengthn]
-CallName=-l
-Category=6
-Description=Set maximum line length for non-comment lines to n.
-EditorType=numeric
-Enabled=false
-MaxVal=220
-MinVal=1
-ValueDefault=120
-
-[no-blank-lines-after-commas]
-Category=4
-Description=Do not force newlines after commas in declarations.
-EditorType=boolean
-TrueFalse=-nbc|
-ValueDefault=0
-
-[no-parameter-indentation]
-Category=5
-Description=Zero width indentation for parameters.
-EditorType=boolean
-TrueFalse=-nip|
-ValueDefault=0
-
-[no-space-after-casts]
-Category=3
-Description=Do not put a space after cast operators.
-EditorType=boolean
-TrueFalse=-ncs|
-ValueDefault=0
-
-[no-space-after-for]
-Category=3
-Description=Do not put a space after every for.
-EditorType=boolean
-TrueFalse=-nsaf|
-ValueDefault=0
-
-[no-space-after-function-call-names]
-Category=3
-Description=Do not put space after the function in function calls.
-EditorType=boolean
-TrueFalse=-npcs|
-ValueDefault=0
-
-[no-space-after-if]
-Category=3
-Description=Do not put a space after every if.
-EditorType=boolean
-TrueFalse=-nsai|
-ValueDefault=0
-
-[no-space-after-parentheses]
-Category=3
-Description=Do not put a space after every '(' and before every ')'.
-EditorType=boolean
-TrueFalse=-nprs|
-ValueDefault=0
-
-[no-space-after-while]
-Category=3
-Description=Do not put a space after every while.
-EditorType=boolean
-TrueFalse=-nsaw|
-ValueDefault=0
-
-[no-tabs]
-Category=5
-Description=Use spaces instead of tabs.
-EditorType=boolean
-TrueFalse=-nut|
-ValueDefault=1
-
-[parameter-indentationn]
-CallName=-ip
-Category=5
-Description=Indent parameter types in old-style function definitions by n spaces.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=4
-
-[paren-indentationn]
-CallName=-pi
-Category=3
-Description=Specify the extra indentation per open parentheses '(' when a statement is broken.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=4
-
-[procnames-start-lines]
-Category=4
-Description=Put the type of a procedure on the line before its name.
-EditorType=boolean
-TrueFalse=-psl|
-ValueDefault=0
-
-[space-after-cast]
-Category=3
-Description=Put a space after a cast operator.
-EditorType=boolean
-TrueFalse=-cs|
-ValueDefault=0
-
-[space-after-for]
-Category=3
-Description=Put a space after each for.
-EditorType=boolean
-TrueFalse=-saf|
-ValueDefault=0
-
-[space-after-if]
-Category=3
-Description=Put a space after each if.
-EditorType=boolean
-TrueFalse=-sai|
-ValueDefault=0
-
-[space-after-parentheses]
-Category=3
-Description=Put a space after every '(' and before every ')'.
-EditorType=boolean
-TrueFalse=-prs|
-ValueDefault=0
-
-[space-after-procedure-calls]
-Category=3
-Description=Insert a space between the name of the procedure being called and the `('.
-EditorType=boolean
-TrueFalse=-pcs|
-ValueDefault=0
-
-[space-after-while]
-Category=3
-Description=Put a space after each while.
-EditorType=boolean
-TrueFalse=-saw|
-ValueDefault=0
-
-[space-special-semicolon]
-Category=3
-Description="On one-line for and while statements, force a blank before the semicolon."
-EditorType=boolean
-TrueFalse=-ss|
-ValueDefault=0
-
-[start-left-side-of-comments]
-Category=2
-Description=Put the `*' character at the left of comments.
-EditorType=boolean
-TrueFalse=-sc|
-ValueDefault=0
-
-[struct-brace-indentationn]
-CallName=-sbi
-Category=3
-Description="Indent braces of a struct, union or enum N spaces."
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=4
-
-[swallow-optional-blank-lines]
-Category=1
-Description=The -sob option causes indent to swallow optional blank lines.
-EditorType=boolean
-TrueFalse=-sob|
-ValueDefault=0
-
-[tab-sizen]
-CallName=-ts
-Category=5
-Description=Set tab size to n spaces.
-EditorType=numeric
-Enabled=false
-MaxVal=120
-MinVal=0
-ValueDefault=4
-
-[use-tabs]
-Category=5
-Description=Use tabs.
-EditorType=boolean
-TrueFalse=-ut|
-ValueDefault=0
diff --git a/indenters/__TODO/uigui_greatcode.ini b/indenters/__TODO/uigui_greatcode.ini
deleted file mode 100755
index 24c7a58..0000000
--- a/indenters/__TODO/uigui_greatcode.ini
+++ /dev/null
@@ -1,1363 +0,0 @@
-[header]
-categories=General|Space|Code|Statements|Pre-Processor|Comments|Miscellaneous
-cfgFileParameterEnding=cr
-configFilename=gc.cfg
-fileTypes=*.cpp|*.c|*.h|*.hpp
-indenterFileName=greatcode
-indenterName=GreatCode (C, C++)
-inputFileName=indentinput
-inputFileParameter=-file-
-manual=http://universalindent.sf.net/indentermanuals/gc.txt
-outputFileName=indentinput
-outputFileParameter=none
-parameterOrder=ipo
-showHelpParameter=-h
-stringparaminquotes=false
-useCfgFileParameter=none
-version=1.140
-
-[overwrite_read_only]
-Category=0
-Description=Process read only files (change status)
-EditorType=boolean
-TrueFalse=-overwrite_read_only-|-no-overwrite_read_only-
-ValueDefault=0
-
-[tab_size]
-CallName=-tab_size-
-Category=0
-Description="Set the level (number of blanks) of an indentation level.
High - Moderate readability, smaller size.
Default - balance between readability and size.
Low - Higher readability.
Example : -tab_size-4
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=1
-ValueDefault=4
-
-[tab_out]
-Category=0
-Description=Output tab characters instead of spaces
-EditorType=boolean
-TrueFalse=-tab_out-|-no-tab_out-
-ValueDefault=1
-
-[eol_unix]
-Category=0
-Description=Unix format for carriage returns
-EditorType=boolean
-TrueFalse=-eol_unix-|-no-eol_unix-
-ValueDefault=0
-
-[space_if]
-Category=1
-Description="Output a blank character after if. while. for and switch keywords.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(a)
{
a++
}
-tab_size-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(a)
{
a++
}
Example : -space_if-
"
-EditorType=boolean
-TrueFalse=-space_if-|-no-space_if-
-ValueDefault=0
-
-[space_return]
-Category=1
-Description="Output a blank character after return if return is followed by an open
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if (a)
{
while (a--)
{
}
}
-no-space_if-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(a)
{
while(a--)
{
}
}
parenthesis.
Example : -space_return-
"
-EditorType=boolean
-TrueFalse=-space_return-|-no-space_return-
-ValueDefault=0
-
-[space_fctcall]
-Category=1
-Description="Output a blank character before the open parenthese of a function call.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
return (6)
-no-space_return-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
return(6)
Example : -space_fctcall-
"
-EditorType=boolean
-TrueFalse=-space_fctcall-|-no-space_fctcall-
-ValueDefault=0
-
-[space_fctcall_firstparam]
-Category=1
-Description="Output a blank character before the first/last/inside parameter of a function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call (out)
loop (100)
-no-space_fctcall-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(out)
loop(100)
\t\tcall. definition or declaration.
Example : -space_fctcall_inparam-
"
-EditorType=boolean
-TrueFalse=-space_fctcall_firstparam-|-no-space_fctcall_firstparam-
-ValueDefault=0
-
-[space_fctcall_inparam]
-Category=1
-Description="Output a blank character before the first/last/inside parameter of a function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1. 2. 3. 4)
-no-space_fctcall_inparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1.2.3.4)
-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call( out)
loop( 100. 200)
-no-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(out)
loop(100. 200)
-space_fctdef_firstparam-
-space_fctdef_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out )
{
}
-space_fctdecl_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out. int in)
-space_fctdecl_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call(int out. int in )
\t\tcall. definition or declaration.
Example : -space_fctcall_inparam-
"
-EditorType=boolean
-TrueFalse=-space_fctcall_inparam-|-no-space_fctcall_inparam-
-ValueDefault=1
-
-[space_fctcall_lastparam]
-Category=1
-Description="Output a blank character before the first/last/inside parameter of a function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1. 2. 3. 4)
-no-space_fctcall_inparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1.2.3.4)
-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call( out)
loop( 100. 200)
-no-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(out)
loop(100. 200)
-space_fctdef_firstparam-
-space_fctdef_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out )
{
}
-space_fctdecl_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out. int in)
-space_fctdecl_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call(int out. int in )
\t\tcall. definition or declaration.
Example : -space_fctcall_inparam-
"
-EditorType=boolean
-TrueFalse=-space_fctcall_lastparam-|-no-space_fctcall_lastparam-
-ValueDefault=0
-
-[space_fctdef_firstparam]
-Category=1
-Description="Output a blank character before the first/last/inside parameter of a function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1. 2. 3. 4)
-no-space_fctcall_inparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1.2.3.4)
-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call( out)
loop( 100. 200)
-no-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(out)
loop(100. 200)
-space_fctdef_firstparam-
-space_fctdef_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out )
{
}
-space_fctdecl_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out. int in)
-space_fctdecl_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call(int out. int in )
\t\tcall. definition or declaration.
Example : -space_fctcall_inparam-
"
-EditorType=boolean
-TrueFalse=-space_fctdef_firstparam-|-no-space_fctdef_firstparam-
-ValueDefault=0
-
-[space_fctdef_lastparam]
-Category=1
-Description="Output a blank character before the first/last/inside parameter of a function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1. 2. 3. 4)
-no-space_fctcall_inparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1.2.3.4)
-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call( out)
loop( 100. 200)
-no-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(out)
loop(100. 200)
-space_fctdef_firstparam-
-space_fctdef_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out )
{
}
-space_fctdecl_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out. int in)
-space_fctdecl_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call(int out. int in )
\t\tcall. definition or declaration.
Example : -space_fctcall_inparam-
"
-EditorType=boolean
-TrueFalse=-space_fctdef_lastparam-|-no-space_fctdef_lastparam-
-ValueDefault=0
-
-[space_fctdecl_firstparam]
-Category=1
-Description="Output a blank character before the first/last/inside parameter of a function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1. 2. 3. 4)
-no-space_fctcall_inparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1.2.3.4)
-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call( out)
loop( 100. 200)
-no-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(out)
loop(100. 200)
-space_fctdef_firstparam-
-space_fctdef_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out )
{
}
-space_fctdecl_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out. int in)
-space_fctdecl_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call(int out. int in )
\t\tcall. definition or declaration.
Example : -space_fctcall_inparam-
"
-EditorType=boolean
-TrueFalse=-space_fctdecl_firstparam-|-no-space_fctdecl_firstparam-
-ValueDefault=0
-
-[space_fctdecl_lastparam]
-Category=1
-Description="Output a blank character before the first/last/inside parameter of a function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1. 2. 3. 4)
-no-space_fctcall_inparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1.2.3.4)
-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call( out)
loop( 100. 200)
-no-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(out)
loop(100. 200)
-space_fctdef_firstparam-
-space_fctdef_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out )
{
}
-space_fctdecl_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out. int in)
-space_fctdecl_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call(int out. int in )
\t\tcall. definition or declaration.
Example : -space_fctcall_inparam-
"
-EditorType=boolean
-TrueFalse=-space_fctdecl_lastparam-|-no-space_fctdecl_lastparam-
-ValueDefault=0
-
-[space_fctdecl]
-Category=1
-Description="Output a blank character before the open parenthese of a function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1. 2. 3. 4)
-no-space_fctcall_inparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(1.2.3.4)
-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call( out)
loop( 100. 200)
-no-space_fctcall_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main_call(out)
loop(100. 200)
-space_fctdef_firstparam-
-space_fctdef_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out )
{
}
-space_fctdecl_firstparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call( int out. int in)
-space_fctdecl_lastparam-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main_call(int out. int in )
definition / declaration.
Example : -space_fctdecl-
"
-EditorType=boolean
-TrueFalse=-space_fctdecl-|-no-space_fctdecl-
-ValueDefault=0
-
-[space_fctdef]
-Category=1
-Description="Output a blank character before the open parenthese of a function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extern func (a)
-space_fctdef-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int func (a)
{
}
-no-space_fctdef-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int func(a)
{
}
definition / declaration.
Example : -space_fctdecl-
"
-EditorType=boolean
-TrueFalse=-space_fctdef-|-no-space_fctdef-
-ValueDefault=0
-
-[space_paren]
-CallName=-space_paren-
-Category=1
-Description="Add spaces after '(' and before ')' if the nested level of the
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extern func (a)
-space_fctdef-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int func (a)
{
}
-no-space_fctdef-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int func(a)
{
}
parenthese is lower than the argument.
Example : -space_paren-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=0
-
-[space_cast]
-Category=1
-Description="Add spaces after '(' and before ')' for cast operators.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if((a < 5) && (b > 2))
{
}
-space_paren-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if( (a < 5) && (b > 2) )
{
}
-space_paren-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if( ( a < 5 ) && ( b > 2 ) )
{
}
See option(s) :
[-no]-space_cast-
Note(s) :
- Empty expressions () are not modified.
- Casts are not modified.
Example : -space_cast-
"
-EditorType=boolean
-TrueFalse=-space_cast-|-no-space_cast-
-ValueDefault=0
-
-[space_cast_after]
-Category=1
-Description="Add a space after a cast expression.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(( int * ) b)
{
}
return ( int * ) b
-no-space_cast-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if((int *) b)
{
}
return (int *) b
See option(s) :
-space_paren-
Example : -space_cast_after-
"
-EditorType=boolean
-TrueFalse=-space_cast_after-|-no-space_cast_after-
-ValueDefault=1
-
-[space_scope_def]
-Category=1
-Description="Add a space before and after the scope resolution operator '::' in the
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if((int *) b)
{
}
return ( int * ) b
-no-space_cast_after-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if((int *)b)
{
}
return (int *)b
See option(s) :
[-no]-space_cast-
function definition.
Example : -space_scope_def-
"
-EditorType=boolean
-TrueFalse=-space_scope_def-|-no-space_scope_def-
-ValueDefault=0
-
-[space_scope_access]
-Category=1
-Description="Add a space before and after the scope resolution operator '::' when
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void func :: Ping(void)
{
}
-no-space_scope_def-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void func::Ping(void)
{
}
See option(s) :
[-no]-space_scope_access-
accessing a static method.
Example : -space_scope_access-
"
-EditorType=boolean
-TrueFalse=-space_scope_access-|-no-space_scope_access-
-ValueDefault=0
-
-[space_affect_style]
-CallName=-space_affect_style-
-Category=1
-Description="Set the indent style for affect and auto-affectoperators.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void func::Ping(void)
{
Base :: Ping()
Base :: Pong()
}
-no-space_scope_access-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void func::Ping(void)
{
Base::Ping()
Base::Pong()
}
See option(s) :
[-no]-space_scope_def-
Example : -space_affect_style-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=2
-MinVal=0
-ValueDefault=0
-
-[space_autoaffect_style]
-CallName=-space_autoaffect_style-
-Category=1
-Description="Set the indent style for affect and auto-affectoperators.
-space_autoaffect_style-0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a = b = c <== Affect
a *= 6 <== Auto-Affect
-space_affect_style-1
-space_autoaffect_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a= b= c
a*= 6
-space_affect_style-2
-space_autoaffect_style-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a=b=c
a*=6
Example : -space_affect_style-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=2
-MinVal=0
-ValueDefault=0
-
-[code_len]
-CallName=-code_len-
-Category=2
-Description=Maximum length of a line of code
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=8
-ValueDefault=120
-
-[code_keep_empty_lines]
-Category=2
-Description=Keep empty lines in original file
-EditorType=boolean
-TrueFalse=-code_keep_empty_lines-|-no-code_keep_empty_lines-
-ValueDefault=1
-
-[code_keep_more_empty_lines]
-Category=2
-Description=Make more effort to preserve empty lines in the original file - even in the face of other reformatting
-EditorType=boolean
-TrueFalse=-code_keep_more_empty_lines-|-no-code_keep_more_empty_lines-
-ValueDefault=0
-
-[code_remove_empty_lines]
-CallName=-code_remove_empty_lines-
-Category=2
-Description="Remove all excedent empty lines. If num is 1. then only one single
-space_autoaffect_style-0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a = b = c <== Affect
a *= 6 <== Auto-Affect
-space_affect_style-1
-space_autoaffect_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a= b= c
a*= 6
-space_affect_style-2
-space_autoaffect_style-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a=b=c
a*=6
blank line is authorized.
Example : -code_remove_empty_lines-1
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=1
-ValueDefault=2
-
-[code_split_bool_before]
-Category=2
-Description="Determine the aspect of boolean expressions when they must be split
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a
int a
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a
int a
because they are too long.
Example : -code_split_bool_before-
"
-EditorType=boolean
-TrueFalse=-code_split_bool_before-|-no-code_split_bool_before-
-ValueDefault=1
-
-[code_split_fctcall_style]
-CallName=-code_split_fctcall_style-
-Category=2
-Description="Set the style when GC must break a function call/def/decl. a for
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if
(
(A + main(func) + 6 > 60)
&& (B - 50 > 10)
|| var
)
{
}
-no-code_split_bool_before-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if
(
(A + main(func) + 6 > 60) &&
(B - 50 > 10) ||
var
)
{
}
statement or an if statement if the line is too long.
The resulting style is the same for all options.
Example : -code_split_fctcall_style-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=5
-MinVal=0
-ValueDefault=0
-
-[code_split_fctdef_style]
-CallName=-code_split_fctdef_style-
-Category=2
-Description="Set the style when GC must break a function call/def/decl. a for
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function
(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
)
-code_split_fctcall_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function(parameter. parameter. parameter.
parameter. parameter. parameter.
parameter)
-code_split_fctcall_style-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function(parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
-code_split_fctdef_style-3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
{
}
-code_split_fctdef_style-4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
{
}
-code_split_fctdef_style-5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter. parameter. parameter. parameter.
parameter. parameter. parameter)
{
}
statement or an if statement if the line is too long.
The resulting style is the same for all options.
Example : -code_split_fctcall_style-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=5
-MinVal=0
-ValueDefault=0
-
-[code_split_fctdecl_style]
-CallName=-code_split_fctdecl_style-
-Category=2
-Description="Set the style when GC must break a function call/def/decl. a for
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function
(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
)
-code_split_fctcall_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function(parameter. parameter. parameter.
parameter. parameter. parameter.
parameter)
-code_split_fctcall_style-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function(parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
-code_split_fctdef_style-3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
{
}
-code_split_fctdef_style-4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
{
}
-code_split_fctdef_style-5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter. parameter. parameter. parameter.
parameter. parameter. parameter)
{
}
statement or an if statement if the line is too long.
The resulting style is the same for all options.
Example : -code_split_fctcall_style-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=5
-MinVal=0
-ValueDefault=0
-
-[code_split_for_style]
-CallName=-code_split_for_style-
-Category=2
-Description="Set the style when GC must break a function call/def/decl. a for
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function
(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
)
-code_split_fctcall_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function(parameter. parameter. parameter.
parameter. parameter. parameter.
parameter)
-code_split_fctcall_style-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function(parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
-code_split_fctdef_style-3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
{
}
-code_split_fctdef_style-4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
{
}
-code_split_fctdef_style-5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter. parameter. parameter. parameter.
parameter. parameter. parameter)
{
}
statement or an if statement if the line is too long.
The resulting style is the same for all options.
Example : -code_split_fctcall_style-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=5
-MinVal=0
-ValueDefault=0
-
-[code_split_if_style]
-CallName=-code_split_if_style-
-Category=2
-Description="Set the style when GC must break a function call/def/decl. a for
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function
(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
)
-code_split_fctcall_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function(parameter. parameter. parameter.
parameter. parameter. parameter.
parameter)
-code_split_fctcall_style-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function(parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
-code_split_fctdef_style-3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
{
}
-code_split_fctdef_style-4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
{
}
-code_split_fctdef_style-5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter. parameter. parameter. parameter.
parameter. parameter. parameter)
{
}
statement or an if statement if the line is too long.
The resulting style is the same for all options.
Example : -code_split_fctcall_style-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=5
-MinVal=0
-ValueDefault=0
-
-[code_split_decl_style]
-CallName=-code_split_decl_style-
-Category=2
-Description="Set style of indentation for declaration of variables.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function
(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
)
-code_split_fctcall_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function(parameter. parameter. parameter.
parameter. parameter. parameter.
parameter)
-code_split_fctcall_style-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function(parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
-code_split_fctdef_style-3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
{
}
-code_split_fctdef_style-4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter.
parameter.
parameter.
parameter.
parameter.
parameter.
parameter)
{
}
-code_split_fctdef_style-5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void function(
parameter. parameter. parameter. parameter.
parameter. parameter. parameter)
{
}
Example : before
"
-EditorType=numeric
-Enabled=true
-MaxVal=2
-MinVal=0
-ValueDefault=0
-
-[code_constructor_style]
-CallName=-code_constructor_style-
-Category=2
-Description="Set style of indentation for constructors.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a. b. c = 10
\t\tint d
-code_split_decl_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a.
b.
c = 10
\t\tint d
-code_split_decl_style-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a
int b
int c = 10
\t\tint d
Example : -code_constructor_style-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=2
-MinVal=0
-ValueDefault=0
-
-[code_decl_move_affect]
-Category=2
-Description="Move initialization in local variables declaration just after the
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cons::cons(void) :
set(0).
reset(0)
{
}
-code_constructor_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cons::cons(void) : set(0). reset(0)
{
}
-code_constructor_style-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cons::cons(void) :
set(0).
reset(0)
{
}
declaration.
Example : -code_decl_move_affect-
"
-EditorType=boolean
-TrueFalse=-code_decl_move_affect-|-no-code_decl_move_affect-
-ValueDefault=0
-
-[code_decl_move_top]
-Category=2
-Description="Move all local variables declaration to the top of the corresponding
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
int a = 0
int c = a + 1
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
int a
int c
a = 0 <= initializations has been moved
c = a + 1
}
Note(s) :
- Be careful because this option sometimes does not work well. That's
why it's set to FALSE by default.
statement.
Example : -code_decl_move_top-
"
-EditorType=boolean
-TrueFalse=-code_decl_move_top-|-no-code_decl_move_top-
-ValueDefault=0
-
-[code_decl_access_to_type]
-Category=2
-Description="Move * and & access specifier just after the type if TRUE. or
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
int a. b
a = b = 0
while(a)
{
}
int c <= declaration
c = 10
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
int a. b
int c <= declaration has been moved
a = b = 0
while(a)
{
}
c = 10
}
just before the name if FALSE.
Example : -code_decl_access_to_type-
"
-EditorType=boolean
-TrueFalse=-code_decl_access_to_type-|-no-code_decl_access_to_type-
-ValueDefault=0
-
-[code_decl_break_template]
-Category=2
-Description="Force an EOL after a template declaration.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int** p
int function(int* b. int& ref)
{
}
-no-code_decl_access_to_type-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int **p
int function(int *b. int &ref)
{
}
Example : -code_decl_break_template-
"
-EditorType=boolean
-TrueFalse=-code_decl_break_template-|-no-code_decl_break_template-
-ValueDefault=1
-
-[code_decl_add_void]
-Category=2
-Description="Force the voidkeyword in a function declaration if nothing is
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template
class TestClass
{
public:
char buffer[i]
T\t\ttestFunc(T *p1)
}
-no-code_decl_break_template-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
template
{
public:
char buffer[i]
T\t\ttestFunc(T *p1)
}
specified.
Example : before
"
-EditorType=boolean
-TrueFalse=-code_decl_add_void-|-no-code_decl_add_void-
-ValueDefault=0
-
-[code_wizard_indent]
-Category=2
-Description="Indent code between to devstudio appwizard special comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int function()
{
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int function(void)
{
}
Example : -code_wizard_indent-
"
-EditorType=boolean
-TrueFalse=-code_wizard_indent-|-no-code_wizard_indent-
-ValueDefault=1
-
-[code_force_return_paren]
-Category=2
-Description="Force parentheses around a returnexpression.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
protected:
//{{AFX_MSG(CDocument)
enum a <= has been touched
{
id = 0
}
afx_msg void OnFileClose(void)
afx_msg void OnFileSave(void)
afx_msg void OnFileSaveAs(void)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
}
-no-code_wizard_indent-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
protected:
//{{AFX_MSG(CDocument)
enum a { id = 0 } <= same as original file
afx_msg void OnFileClose(void)
afx_msg void OnFileSave(void)
afx_msg void OnFileSaveAs(void)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
}
Note(s) :
- This option must be set to FALSE if you want to indent special
appwizard headers with auto generated code. This is because touching
that code can make appwizard fail to recognize its special marks.
- This option can't be set in a source file with special comment
/*$O */
Example : -code_force_return_paren-
"
-EditorType=boolean
-TrueFalse=-code_force_return_paren-|-no-code_force_return_paren-
-ValueDefault=0
-
-[code_remove_return_paren]
-Category=2
-Description=Remove all parentheses around a return parameter
-EditorType=boolean
-TrueFalse=-code_remove_return_paren-|-no-code_remove_return_paren-
-ValueDefault=0
-
-[code_align_max_blanks]
-CallName=-code_align_max_blanks-
-Category=2
-Description="Set the maximum number of blank characters that can be added by GC to
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a()
{
return 0
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a()
{
return(0)
}
See option(s) :
[-no]-code_remove_return_paren-
Note(s) :
- This option can't be set in a source file with special comment
/*$O */
- Can't be used with -code_remove_return_paren- option.
align declarations of variables or functions.
Example : -code_align_max_blanks-10
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=1
-ValueDefault=1000
-
-[code_def_fct_break_return_type]
-Category=2
-Description="Force a line break after the return type in a function definition.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a
un_int b
unsigned int coucou
unsigned int bg
-code_align_max_blanks-20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a
un_int b
unsigned int coucou
unsigned int bg
Example : -code_def_fct_break_return_type-
"
-EditorType=boolean
-TrueFalse=-code_def_fct_break_return_type-|-no-code_def_fct_break_return_type-
-ValueDefault=0
-
-[code_concat_strings]
-Category=2
-Description="Concat adjacent string constants.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int
function(void)
{
}
int
class::func(void)
{
}
-no-code_def_fct_break_return_type-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int function(void)
{
}
int class::func(void)
{
}
Example : -no-code_concat_strings-
"
-EditorType=boolean
-TrueFalse=-code_concat_strings-|-no-code_concat_strings-
-ValueDefault=0
-
-[code_empty_fct_blanks]
-CallName=-code_empty_fct_blanks-
-Category=2
-Description="Add empty lines between { and } for empty functions. Empty function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printf(coucoulafoule)
-code_concat_strings-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printf(coucoulafoule)
must have no code between { and }.
Example : -code_empty_fct_blanks-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=2
-MinVal=0
-ValueDefault=0
-
-[catch_eol_before]
-CallName=-catch_eol_before-
-Category=2
-Description=Number of EOL before catch
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[code_class_access_eol_before]
-CallName=-code_class_access_eol_before-
-Category=2
-Description="Number of EOL before/after class access specifiers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void empty(void)
{ }
-code_empty_fct_blanks-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void empty(void)
{
}
-code_empty_fct_blanks-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void empty(void)
{
}
Example : -code_class_access_eol_after-1
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[code_class_access_eol_after]
-CallName=-code_class_access_eol_after-
-Category=2
-Description="Number of EOL before/after class access specifiers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
public:
void a(void)
private:
void ab(void)
}
-code_class_access_eol_before-2
-code_class_access_eol_after-3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
public:
void a(void)
private:
void ab(void)
}
See option(s) :
-code_remove_empty_lines-
Example : -code_class_access_eol_after-1
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[code_labels_eol_after]
-CallName=-code_labels_eol_after-
-Category=2
-Description="Number of EOL after labels.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
public:
void a(void)
private:
void ab(void)
}
-code_class_access_eol_before-2
-code_class_access_eol_after-3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
public:
void a(void)
private:
void ab(void)
}
See option(s) :
-code_remove_empty_lines-
Example : -code_labels_eol_after-1
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[stmt_break_alone]
-Category=3
-Description="Force an empty statement to be alone on its line.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
goto label
label:
a++
-code_labels_eol_after-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
goto label
label:
a++
See option(s) :
-code_remove_empty_lines-
Example : -stmt_break_alone-
"
-EditorType=boolean
-TrueFalse=-stmt_break_alone-|-no-stmt_break_alone-
-ValueDefault=0
-
-[stmt_break_dowhile]
-Category=3
-Description="Force a break line before the while of a do...while statement.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
for(a = 0 a < 10 a++)
-no-stmt_break_alone-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
for(a = 0 a < 10 a++)
Note(s) :
- Concerns if. while. for and switch statements.
Example :\t\t-stmt_break_dowhile-
"
-EditorType=boolean
-TrueFalse=-stmt_break_dowhile-|-no-stmt_break_dowhile-
-ValueDefault=0
-
-[stmt_force_brace]
-CallName=-stmt_force_brace-
-Category=3
-Description="Force a statement to be enclosed with { } if its length exceeded the
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\t\tdo
\t\t{
\t\t\t...
\t\t}
\t\twhile(1)
\t\t-no-stmt_break_dowhile-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\t\tdo
\t\t{
\t\t\t...
\t\t} while(1)
given parameter.
Example : -stmt_force_brace-1
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=100
-
-[code_eol_after_close_brace]
-CallName=-code_eol_after_close_brace-
-Category=3
-Description="Nu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(a) a++
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(a)
{
a++
}mber of blank lines after every close brace -
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=0
-
-[stmt_concat_if]
-Category=3
-Description="Try to output if. while or for expression on a single line if the
except ones followed by else. while. and those around typedef
statements...
-stmt_force_brace-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if foo) {
bar()
}
if foo) {
bar()
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if foo) {
bar()
}
if foo) {
bar()
}
length of the statement is not too long.
Example : -stmt_concat_if-
"
-EditorType=boolean
-TrueFalse=-stmt_concat_if-|-no-stmt_concat_if-
-ValueDefault=1
-
-[stmt_concat_if_and_else]
-Category=3
-Description="Try to output if ... else expression on two lines - if possible...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
while(a && b)
a = b + 6
if(a)
a++
if(b)
{
b++
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
while(a && b) a = b + 6
if(a) a++
if(b)
{
b++
}
See options(s) :
-code_len-
Note(s) :
- This option does not modify statements with { }.
Example : -stmt_concat_if_and_else-
"
-EditorType=boolean
-TrueFalse=-stmt_concat_if_and_else-|-no-stmt_concat_if_and_else-
-ValueDefault=0
-
-[stmt_concat_else_2_stmt]
-Category=3
-Description="Put the else on the same line as the previous statement.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(a)
a++
else
b++
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(a) a++
else b++
See options(s) :
-code_len-
Note(s) :
- This option does not modify statements with { }.
Example : -stmt_concat_else_2_stmt-
"
-EditorType=boolean
-TrueFalse=-stmt_concat_else_2_stmt-|-no-stmt_concat_else_2_stmt-
-ValueDefault=0
-
-[stmt_concat_else_if]
-Category=3
-Description="Close up any gap between else and if in else ... ifstructures.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(a)
{
} else
{
}
-no-stmt_concat_else_2_stmt-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(a)
{
}
else
{
}
Example : -stmt_concat_else_if-
"
-EditorType=boolean
-TrueFalse=-stmt_concat_else_if-|-no-stmt_concat_else_if-
-ValueDefault=1
-
-[stmt_concat_inline_class]
-Category=3
-Description="Concat if possible inline function body inside a class.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(foo)
\t\t{
}
\t\telse if(bar)
\t\t{
}
-no-stmt_concat_else_if-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(foo)
\t\t{
} else
if(bar)
\t\t{
}
Example : -stmt_concat_inline_class-
"
-EditorType=boolean
-TrueFalse=-stmt_concat_inline_class-|-no-stmt_concat_inline_class-
-ValueDefault=1
-
-[stmt_concat_switch]
-Category=3
-Description="Concat all cases of a switch if possible. Empty lines are removed if
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
int previous(int a)
{
return a - 1
}
int next(int a)
{
return a + 1
}
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
int previous(int a) { return a - 1 }
int next(int a) { return a + 1 }
}
See options(s) :
-code_len-
\t\tconcatenation is done.
Example : -stmt_concat_switch-
"
-EditorType=boolean
-TrueFalse=-stmt_concat_switch-|-no-stmt_concat_switch-
-ValueDefault=1
-
-[stmt_concat_macros]
-Category=3
-Description="Concat a macro body if possible.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch(a)
{
case 10:
break
case 11:
a = a + 6 return a
case 12:
if(a) a++
break
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch(a)
{
case 10: break
case 11: a = a + 6 return a
case 12: if(a) a++ break
}
Example : -stmt_concat_macros-
"
-EditorType=boolean
-TrueFalse=-stmt_concat_macros-|-no-stmt_concat_macros-
-ValueDefault=1
-
-[stmt_concat_enum]
-Category=3
-Description="Concat content of enum if possible.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define macro()
{
a = a + 18 - b
if(!a) return 10
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define macro() { a = a + 18 - b if(!a) return 10 }
Example : -stmt_concat_enum-
"
-EditorType=boolean
-TrueFalse=-stmt_concat_enum-|-no-stmt_concat_enum-
-ValueDefault=1
-
-[stmt_decl_remove_empty]
-Category=3
-Description="Remove empty lines in declaration statements.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
enum a
{
id1.
id2
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
enum a { id1. id2 }
Example : -stmt_decl_remove_empty-
"
-EditorType=boolean
-TrueFalse=-stmt_decl_remove_empty-|-no-stmt_decl_remove_empty-
-ValueDefault=1
-
-[stmt_concat_if_remove_empty]
-Category=3
-Description="Remove empty lines between concat if/while/for.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
int a
<= Empty line
int b
int c
a = b = c = 0
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
int a
int b
int c
a = b = c = 0
}
Example : -stmt_concat_if_remove_empty-
"
-EditorType=boolean
-TrueFalse=-stmt_concat_if_remove_empty-|-no-stmt_concat_if_remove_empty-
-ValueDefault=1
-
-[stmt_brace_style_class]
-CallName=-stmt_brace_style_class-
-Category=3
-Description="Change the indentation style of braces.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(a) a++
<= Empty line
<= Empty line
if(b) b = b + a
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(a) a++
if(b) b = b + a
See option(s) :
[-no]-stmt_concat_if- to concat if/while/for expressions if possible.
-stmt_brace_style_class- for a class declaration.
-stmt_brace_style_fct- for a function body.
-stmt_brace_style_decl- for declarations (struct. enum).
-stmt_brace_style- for all other statements (if. while...).
Example : Style 0
"
-EditorType=numeric
-Enabled=true
-MaxVal=5
-MinVal=0
-ValueDefault=0
-
-[stmt_brace_style_fct]
-CallName=-stmt_brace_style_fct-
-Category=3
-Description="Change the indentation style of braces.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Style 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Style 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void) {
while(a) {
a = a + func(a)
}
}
Style 3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void) {
while(a) {
a = a + func(a)
}
}
Style 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{ while(a)
{ a = a + func(a)
}
}
Style 5 offset brace by 1/2 tab width
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Note(s) :
- Valid values are only 0. 1. 2. 3. 4 or 5.
-stmt_brace_style_class- for a class declaration.
-stmt_brace_style_fct- for a function body.
-stmt_brace_style_decl- for declarations (struct. enum).
-stmt_brace_style- for all other statements (if. while...).
Example : Style 0
"
-EditorType=numeric
-Enabled=true
-MaxVal=5
-MinVal=0
-ValueDefault=0
-
-[stmt_brace_style_decl]
-CallName=-stmt_brace_style_decl-
-Category=3
-Description="Change the indentation style of braces.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Style 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Style 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void) {
while(a) {
a = a + func(a)
}
}
Style 3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void) {
while(a) {
a = a + func(a)
}
}
Style 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{ while(a)
{ a = a + func(a)
}
}
Style 5 offset brace by 1/2 tab width
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Note(s) :
- Valid values are only 0. 1. 2. 3. 4 or 5.
-stmt_brace_style_class- for a class declaration.
-stmt_brace_style_fct- for a function body.
-stmt_brace_style_decl- for declarations (struct. enum).
-stmt_brace_style- for all other statements (if. while...).
Example : Style 0
"
-EditorType=numeric
-Enabled=true
-MaxVal=5
-MinVal=0
-ValueDefault=0
-
-[stmt_brace_style]
-CallName=-stmt_brace_style-
-Category=3
-Description="Change the indentation style of braces.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Style 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Style 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void) {
while(a) {
a = a + func(a)
}
}
Style 3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void) {
while(a) {
a = a + func(a)
}
}
Style 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{ while(a)
{ a = a + func(a)
}
}
Style 5 offset brace by 1/2 tab width
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Note(s) :
- Valid values are only 0. 1. 2. 3. 4 or 5.
-stmt_brace_style_class- for a class declaration.
-stmt_brace_style_fct- for a function body.
-stmt_brace_style_decl- for declarations (struct. enum).
-stmt_brace_style- for all other statements (if. while...).
Example : Style 0
"
-EditorType=numeric
-Enabled=true
-MaxVal=5
-MinVal=0
-ValueDefault=0
-
-[stmt_switch_style]
-CallName=-stmt_switch_style-
-Category=3
-Description="Change the indentation style of switch.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Style 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Style 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void) {
while(a) {
a = a + func(a)
}
}
Style 3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void) {
while(a) {
a = a + func(a)
}
}
Style 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{ while(a)
{ a = a + func(a)
}
}
Style 5 offset brace by 1/2 tab width
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void main(void)
{
while(a)
{
a = a + func(a)
}
}
Note(s) :
- Valid values are only 0. 1. 2. 3. 4 or 5.
Example : Style 0
"
-EditorType=numeric
-Enabled=true
-MaxVal=5
-MinVal=0
-ValueDefault=0
-
-[stmt_switch_eol]
-CallName=-stmt_switch_eol-
-Category=3
-Description="Is there an empty line before the casekeyword ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch(a)
{
case 0:
a++
break
case 1:
break
}
Style 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch(a)
{
case 0:
a++
break
case 1:
break
}
Style 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch(a)
{
case 0:
a++
break
case 1:
break
}
Style 3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch(a) {
case 0:
a++
break
case 1:
break
}
Style 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch(a) {
case 0:
a++
break
case 1:
break
}
Style 5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch(a)
{
case 0:
a++
break
case 1:
break
}
Example : Style 0
"
-EditorType=numeric
-Enabled=true
-MaxVal=1
-MinVal=0
-ValueDefault=0
-
-[stmt_class_indent]
-CallName=-stmt_class_indent-
-Category=3
-Description="Set the number of additional indentation levels in a class declaration.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch(a)
{
case 0:
\t\tcase 3:
a++
break
case 1:
break
case 4:
break
}
Style 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch(a)
{
case 0:
\t\tcase 3:
a++
break
case 1:
break
case 4:
break
}
Example : -stmt_class_indent-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=0
-
-[stmt_namespace_indent]
-Category=3
-Description="Indent one level a namespace statement.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
public:
void a(void)
}
-stmt_class_indent-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
public:
void a(void)
}
Example : -no-stmt_namespace_indent-
"
-EditorType=boolean
-TrueFalse=-stmt_namespace_indent-|-no-stmt_namespace_indent-
-ValueDefault=0
-
-[stmt_extern_c_indent]
-Category=3
-Description="Indent one level an extern Cstatement.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
namespace com
{
int a(void)
{
}
}
-stmt_namespace_indent-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
namespace com
{
int a(void)
{
}
}
Example : -no-stmt_extern_c_indent-
"
-EditorType=boolean
-TrueFalse=-stmt_extern_c_indent-|-no-stmt_extern_c_indent-
-ValueDefault=0
-
-[stmt_static_init_style]
-CallName=-stmt_static_init_style-
-Category=3
-Description="De
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extern C
{
int a(void)
{
}
}
-stmt_extern_c_indent-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extern C
{
int a(void)
{
}
}fines indent style for static initialisations.
"
-EditorType=numeric
-Enabled=true
-MaxVal=3
-MinVal=0
-ValueDefault=0
-
-[stmt_static_init_len]
-CallName=-stmt_static_init_len-
-Category=3
-Description="To
\t\t-stmt_static_init_style-0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\t\tchar *d[] =
\t\t{
\t\t\tNULL.
\t\t\tROM.
\t\t\tOTPROM.
\t\t\tEPROM.
\t\t\tEEPROM.
\t\t\tFLASH
\t\t}
\t\t-stmt_static_init_style-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\t\tchar *d[] = { NULL. ROM. OTPROM. EPROM. EEPROM. FLASH}
\t\t-stmt_static_init_style-3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\t\tchar *d[] =
\t\t{
\t\t\tNULL. ROM. OTPROM.
\t\t\tEPROM. EEPROM. FLASH
\t\t}
Note(s) :
- Option -stmt_static_init_style-1 let the original indentation
\t\t unchanged.
- The max length of the line in the initialisation statement for option
\t\t -stmt_static_init_style-3 is defined by the -stmt_static_init_len-
\t\t option.
See option(s) :
\t\t-stmt_static_init_len- be used with -stmt_static_init_style-3. Defined the max length of
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=80
-
-[pp_align_to_code]
-Category=4
-Description="Align or not PP directive to the code just below.
Example : -pp_align_to_code-
"
-EditorType=boolean
-TrueFalse=-pp_align_to_code-|-no-pp_align_to_code-
-ValueDefault=0
-
-[pp_style]
-CallName=-pp_style-
-Category=4
-Description="Set the indentation style of PP directives.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define a 0
void main(void)
{
#define a 0
#define coucou 0
#define coucou()
while(a)
{
a = a + func(a)
}
#if 0
if(a) a++
#endif
}
-no-pp_align_to_code-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define a 0
void main(void)
{
#define a 0
#define coucou 0
#define coucou()
while(a)
{
a = a + func(a)
}
#if 0
if(a) a++
#endif
}
Note(s) :
- This option can't be used in source file file special comment /*$O*/.
Example : -pp_style-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=2
-MinVal=0
-ValueDefault=0
-
-[pp_include_unix]
-Category=4
-Description="Change '' to '/' in an include expression.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#ifdef a
a++
#else
#if 0
#ifdef a
#elif b
a--
#endif
#endif
#endif
-pp_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#ifdef a
a++
#else
#if 0
#ifdef a
#elif b
a--
#endif
#endif
#endif
-pp_style-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#ifdef a
a++
#else
# if 0
# ifdef a
# elif b
a--
# endif
# endif
#endif
Example : before
"
-EditorType=boolean
-TrueFalse=-pp_include_unix-|-no-pp_include_unix-
-ValueDefault=1
-
-[pp_align_breakline]
-Category=4
-Description="Al
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include gll.h
#include
-pp_include_unix-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include gl/gl.h
#include
-no-pp_include_unix-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include gll.h
#include ign (or not) breakline characters '' in macros.
"
-EditorType=boolean
-TrueFalse=-pp_align_breakline-|-no-pp_align_breakline-
-ValueDefault=0
-
-[cmt_fixme]
-CallName=-cmt_fixme-
-Category=5
-Description="Specify the string for FIXME comment the default is /* FIXME: Comment */
-pp_align_breakline-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\t\t#define a(A)
\t\t\tA += 2\t\t\t
\t\t\tA = c(fonc) + 3
-no-pp_align_breakline-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\t\t#define a(A)
\t\t\tA += 2\t
\t\t\tA = c(fonc) + 3
Example : -cmt_fixme-/* TODO: add comment */
"
-EditorType=string
-Enabled=false
-ValueDefault=/* */
-
-[cmt_align_max_blanks]
-CallName=-cmt_align_max_blanks-
-Category=5
-Description="Set the max number of blank characters to add to align last line
comments.
Example : -cmt_align_max_blanks-20
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=1
-ValueDefault=10
-
-[cmt_first_space_cpp]
-Category=5
-Description="Force a space after the opening comment delimiter.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int coucou /* comment */
unsigned int b /* comment */
unsigned int long_long_variable_variables /* comment */
-cmt_align_max_blanks-30
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int coucou /* comment */
unsigned int b /* comment */
unsigned int long_long_variable_variables /* comment */
Example : -cmt_first_space_cpp-
"
-EditorType=boolean
-TrueFalse=-cmt_first_space_cpp-|-no-cmt_first_space_cpp-
-ValueDefault=1
-
-[cmt_dont_modify]
-Category=5
-Description="Pr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// coucou
-no-cmt_first_space_cpp-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//coucouocess or not all the comments of the file.
"
-EditorType=boolean
-TrueFalse=-cmt_dont_modify-|-no-cmt_dont_modify-
-ValueDefault=0
-
-[cmt_add_gc_tag]
-Category=5
-Description=Add the GC mark at the beginning of the file.
/*$T test.c GC 1.102 01/06/01 16:47:25 */
-EditorType=boolean
-TrueFalse=-cmt_add_gc_tag-|-no-cmt_add_gc_tag-
-ValueDefault=1
-
-[cmt_add_file]
-Category=5
-Description=Add a special comment at the beginning of file (if not already
present). The type of the comment is set by -cmt_add_file_style-.
-cmt_add_file-
-cmt_add_file_style-0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
** file.c **
/*$6
++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++
*/
...
** EOF **
-cmt_add_file-
-cmt_add_file_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
** file.c **
/*$I0
...
*/
...
** EOF **
See option(s) :
-cmt_sep_char_6-
-cmt_sep_len-
-cmt_add_file_style-
0 = special comment level 6 /*$6
1 = special comment external insertion file /*$I0
-cmt_add_file_style-0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
** file.c **
/*$6
++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++
*/
-cmt_add_file_style-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
** file.c **
/*$I0
...
*/
See option(s) :
[no]-cmt_add_file-
Special comment /*$I
present).
Comment is level is set by -cmt_sep_force_fct_def- option.
** file.c **
/*
==========================================
==========================================
*/
int a(void)
{
}
** EOF **
See option(s) :
-cmt_sep_char_3-
-cmt_sep_len-
-cmt_sep_force_fct_def-
Note(s) :
- Actual comments before function are included in the separator."
-EditorType=boolean
-TrueFalse=-cmt_add_fct_def-|-no-cmt_add_fct_def-
-ValueDefault=1
-
-[cmt_add_fct_def_class]
-Category=5
-Description=Same as -cmt_add_fct_def-. but for functions defined inside a class
\t\t(inline functions).
See option(s) :
\t\t-cmt_add_fct_def-
-EditorType=boolean
-TrueFalse=-cmt_add_fct_def_class-|-no-cmt_add_fct_def_class-
-ValueDefault=1
-
-[cmt_trailing_style]
-CallName=-cmt_trailing_style-
-Category=5
-Description="Control style of trailing comments and an empty comment is added to
"
-EditorType=numeric
-Enabled=true
-MaxVal=2
-MinVal=0
-ValueDefault=0
-
-[cmt_split_before_@_in_fct_cmts]
-Category=5
-Description=Split lines in fucntion comments before @
-EditorType=boolean
-TrueFalse=-cmt_split_before_@_in_fct_cmts-|-no-cmt_split_before_@_in_fct_cmts-
-ValueDefault=0
-
-[cmt_force_fct_def_decl_split]
-Category=5
-Description="Fo
function parameters if not already present.
This also causes -cmt_force_fct_def_decl_split-
and -code_split_fctdef_style-3. The content of
empty comment is defined by -cmt_fixme-.
-cmt_trailing_style-1
-cmt_force_fct_def_decl_split-
-code_split_fctdef_style-3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
before:
int a(int param1. int param2) ## No comments
{
}
after:
int a(
int param1. /* FIXME: add a comment */ ## Added automatically
int param2) /* FIXME: add a comment */ ## Added automatically
{
}
-cmt_trailing_style-2
-cmt_force_fct_def_decl_split-
-code_split_fctdef_style-3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
before:
int a(
int param1. /* IN: parameter 1 */
int param2) /* IN: parameter 2 */
{
}
after:
int a(
int param1. ///< IN: parameter 1 ## Changed to cpp
int param2) ///< IN: parameter 2 ## Changed to cpp
{
}rce function definitions to split at each paramenter according
"
-EditorType=boolean
-TrueFalse=-cmt_force_fct_def_decl_split-|-no-cmt_force_fct_def_decl_split-
-ValueDefault=0
-
-[cmt_java_doc]
-Category=5
-Description=Enable the java doc type comments for all comments. Also enables -cmt_sep_fill_star- and -cmt_fct_java_doc-
-EditorType=boolean
-TrueFalse=-cmt_java_doc-|-no-cmt_java_doc-
-ValueDefault=0
-
-[cmt_fct_java_doc]
-Category=5
-Description=Enable the java doc type comments for functions only. Also enables -cmt_sep_fill_star-.
-EditorType=boolean
-TrueFalse=-cmt_fct_java_doc-|-no-cmt_fct_java_doc-
-ValueDefault=0
-
-[cmt_add_class_access]
-Category=5
-Description="Add an empty comment before class access (if not already present).
to the sytle defined by -code_split_fctdef_style-
Comment level is set by -cmt_sep_force_class_access- option.
Example : -cmt_add_class_access-
"
-EditorType=boolean
-TrueFalse=-cmt_add_class_access-|-no-cmt_add_class_access-
-ValueDefault=1
-
-[cmt_keep_cpp]
-Category=5
-Description="Keep C++ comments. and do not change them to the C form.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
public:
void v(void)
protected:
int c
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class a
{
/* <= by default. cmt level is 2
==========================================
==========================================
*/
public:
void v(void)
/*
==========================================
==========================================
*/
protected:
int c
}
See option(s) :
-cmt_sep_char_2-
-cmt_sep_len-
-cmt_sep_force_class_access-
Example : -no-cmt_keep_cpp-
"
-EditorType=boolean
-TrueFalse=-cmt_keep_cpp-|-no-cmt_keep_cpp-
-ValueDefault=0
-
-[cmt_c2cpp]
-Category=5
-Description=Convert all C comments to the C++ form. Only end of lines comments are
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// this is a comment
// this is another comment
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
* this is a comment
* this is another comment
*/
See option(s) :
[no]-cmt_cpp2c_keep_eol-
-cmt_sep_char_split-
Note(s) :
- This option can't be set in a source file with special comment
/*$O */
converted.
See option(s) :
-cmt_keep_cpp-
Note(s) :
- This option set the -cmt_keep_cpp- to true.
-EditorType=boolean
-TrueFalse=-cmt_c2cpp-|-no-cmt_c2cpp-
-ValueDefault=0
-
-[cmt_cpp2c_keep_eol]
-Category=5
-Description="Keep trace of EOL characters when converting C++ comments to C
comment. -cmt_keep_cpp- must be enabled.
Example : before
"
-EditorType=boolean
-TrueFalse=-cmt_cpp2c_keep_eol-|-no-cmt_cpp2c_keep_eol-
-ValueDefault=1
-
-[cmt_fct_categ]
-CallName=-cmt_fct_categ-
-Category=5
-Description="-cmt_fct_categ- Define a special word when indenting function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// this is a comment
// this is another comment
-cmt_cpp2c_keep_eol-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
* this is a comment <= is the default break character
* this is another comment
*/
-no-cmt_cpp2c_keep_eol-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* this is a comment this is another comment */
See option(s) :
[no]-cmt_keep_cpp-
-cmt_sep_char_split-
comments.
-cmt_fct_categ_in- This word is a special category to describe
function parameters.
GC can indent function definition comments in a special form
depending of special words defined with those options.
Example : options
"
-EditorType=string
-Enabled=false
-ValueDefault=
-
-[cmt_fct_categ_in]
-CallName=-cmt_fct_categ_in-
-Category=5
-Description="-cmt_fct_categ- Define a special word when indenting function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-cmt_fct_categ-main
-cmt_fct_categ-output
-cmt_fct_categ_in-parameters
before
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* Description: Description of the function. Return: none
Parameters: a - entering value b - increment value */
int function(int a. int b)
{
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
==========================================
Description:\tDescription of the function.
Return:\tnone
Parameters: a - entering value
b - increment value
==========================================
*/
int function(int a. int b)
{
}
See option(s) :
[-no]-cmt_add_fct_def-
\t\t-cmt_fct_categ_style-
Note(s) :
- In comment. special words must be followed by ':'.
- A parameter must be followed by '-'. and then by the comment.
- This option can't be set in a source file with special comment
/*$O */
comments.
-cmt_fct_categ_in- This word is a special category to describe
function parameters.
GC can indent function definition comments in a special form
depending of special words defined with those options.
Example : options
"
-EditorType=string
-Enabled=false
-ValueDefault=
-
-[cmt_fct_categ_style]
-CallName=-cmt_fct_categ_style-
-Category=5
-Description=Set indentation style for special keywords in comments
-EditorType=numeric
-Enabled=true
-MaxVal=1
-MinVal=0
-ValueDefault=0
-
-[cmt_decl]
-Category=5
-Description="Add separators in local variable declaration (before and/or after).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-cmt_fct_categ-main
-cmt_fct_categ-output
-cmt_fct_categ_in-parameters
before
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* Description: Description of the function. Return: none
Parameters: a - entering value b - increment value */
int function(int a. int b)
{
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
==========================================
Description:\tDescription of the function.
Return:\tnone
Parameters: a - entering value
b - increment value
==========================================
*/
int function(int a. int b)
{
}
See option(s) :
[-no]-cmt_add_fct_def-
\t\t-cmt_fct_categ_style-
Note(s) :
- In comment. special words must be followed by ':'.
- A parameter must be followed by '-'. and then by the comment.
- This option can't be set in a source file with special comment
/*$O */
Separators are by default level 1.
Example : -cmt_decl-
"
-EditorType=boolean
-TrueFalse=-cmt_decl-|-no-cmt_decl-
-ValueDefault=1
-
-[cmt_decl_max_level]
-CallName=-cmt_decl_max_level-
-Category=5
-Description="-cmt_decl- option is valid for declaration in a statement level lesser
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a(void)
{
unsigned int var
long b
var = 0
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a(void)
{
/*~~~~~~~~~~~~~~~~~~*/
unsigned int var
long b
/*~~~~~~~~~~~~~~~~~~*/
var = 0
}
See options(s) :
-cmt_decl_max_level-
[-no]-cmt_decl_before-
-cmt_decl_len-
[-no]-cmt_decl_auto_len-
-cmt_decl_auto_len_add-
Note(s) :
- Can't be used with -cmt_dont_modify- option.
than that value.
Example : -cmt_decl_max_level-1
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=100
-
-[cmt_decl_before]
-Category=5
-Description="Add a separator before local declarations.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a(void)
{
/*~~*/
int b
/*~~*/
b = 0
if(b)
{
unsigned int var <= stmt level is 2. so is not touched
long c
var = c = 0
}
}
-cmt_decl_max_level-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a(void)
{
/*~~*/
int b
/*~~*/
b = 0
if(b)
{
/*~~~~~~~~~~~~~~~~~~*/ <= stmt level 2 is now converned
unsigned int var
long c
/*~~~~~~~~~~~~~~~~~~*/
var = c = 0
}
}
-cmt_decl- must be enabled.
Example : -cmt_decl_before-
"
-EditorType=boolean
-TrueFalse=-cmt_decl_before-|-no-cmt_decl_before-
-ValueDefault=1
-
-[cmt_decl_len]
-CallName=-cmt_decl_len-
-Category=5
-Description="Se
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a(void)
{
/*~~~~~~~~~~~~~~~~~~*/
unsigned int var
long b
/*~~~~~~~~~~~~~~~~~~*/
var = 0
}
-no-cmt_decl_before-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a(void)
{
unsigned int var
long b
/*~~~~~~~~~~~~~~~~~~*/
var = 0
}t the maximum column of the declaration separator.
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=120
-
-[cmt_decl_auto_len]
-Category=5
-Description="Co
-cmt_decl- must be enabled.
-cmt_decl_auto_len- must be disabled.
-cmt_decl_len-20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a(void)
{
/*~~~~~~~~~~~~*/ <= column 20
int b
/*~~~~~~~~~~~~*/
{
/*~~~~~~*/
unsigned int var
long b
/*~~~~~~*/
}
var = 0
}
-cmt_decl_len-50
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a(void)
{
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ <= column 50
int b
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
{
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
unsigned int var
long b
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
}
var = 0
}mpute the length of the decl separator depending on code.
"
-EditorType=boolean
-TrueFalse=-cmt_decl_auto_len-|-no-cmt_decl_auto_len-
-ValueDefault=1
-
-[cmt_decl_auto_len_add]
-CallName=-cmt_decl_auto_len_add-
-Category=5
-Description="Wh
Is disabled. the length is set by -cmt_decl_len- option.en -cmt_decl_auto_len- and -cmt_decl- are both enabled. add
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=0
-
-[cmt_first_line_break_first]
-Category=5
-Description="Add an EOL after /* of first line comments.
characters to the length of the separator.
-cmt_decl_auto_len_add-0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a(void)
{
/*~~~~~~~~~~~~~~~~~~*/ <= exact size of the code below
unsigned int var
long b
/*~~~~~~~~~~~~~~~~~~*/
{
/*~~*/ <= idem
int c
/*~~*/
}
var = 0
}
-cmt_decl_auto_len_add-4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a(void)
{
/*~~~~~~~~~~~~~~~~~~~~~~*/ <= size + 4
unsigned int var
long b
/*~~~~~~~~~~~~~~~~~~~~~~*/
{
/*~~~~~~*/ <= size + 4
int c
/*~~~~~~*/
}
var = 0
}
Add an EOL before */ of first line comments.
Example : -cmt_first_line_break_first-
"
-EditorType=boolean
-TrueFalse=-cmt_first_line_break_first-|-no-cmt_first_line_break_first-
-ValueDefault=1
-
-[cmt_first_line_break_last]
-Category=5
-Description="Add an EOL after /* of first line comments.
-cmt_first_line_break_last-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
* Comment
* Comment
*/
-no-cmt_first_line_break_first-
-cmt_first_line_break_last-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* Comment
* Comment
*/
-no-cmt_first_line_break_first-
-no-cmt_first_line_break_last-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* Comment
* Comment */
Add an EOL before */ of first line comments.
Example : -cmt_first_line_break_first-
"
-EditorType=boolean
-TrueFalse=-cmt_first_line_break_last-|-no-cmt_first_line_break_last-
-ValueDefault=1
-
-[cmt_first_line_fill_star]
-Category=5
-Description="Add a '*' character at the beginning of lines of first line comments.
-cmt_first_line_break_last-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
* Comment
* Comment
*/
-no-cmt_first_line_break_first-
-cmt_first_line_break_last-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* Comment
* Comment
*/
-no-cmt_first_line_break_first-
-no-cmt_first_line_break_last-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* Comment
* Comment */
Example : -cmt_first_line_fill_star-
"
-EditorType=boolean
-TrueFalse=-cmt_first_line_fill_star-|-no-cmt_first_line_fill_star-
-ValueDefault=1
-
-[cmt_first_line_len]
-CallName=-cmt_first_line_len-
-Category=5
-Description="Set the maximum length of first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
* Comment
* Comment
*/
-no-cmt_first_line_fill_star-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
Comment
Comment
*/
See options(s) :
[-no]-cmt_sep_fill_star-
Note(s) :
- Separators are not concerned.
Example : -cmt_first_line_len-100
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=8
-ValueDefault=80
-
-[cmt_first_line_concat]
-Category=5
-Description="Concat adjacent first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* this is a comment that should be split */
-cmt_first_line_len-40
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
* this is a comment that should be
* split
*/
-cmt_first_line_len-10
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
* this is a
* comment
* that
* should be
* split
*/
Note(s) :
- Separators are not concerned.
Example : -cmt_first_line_concat-
"
-EditorType=boolean
-TrueFalse=-cmt_first_line_concat-|-no-cmt_first_line_concat-
-ValueDefault=1
-
-[cmt_first_line_blank]
-Category=5
-Description="Add an empty line between two adjacent first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* first line comment */
/* another first line comment */
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
* first line comment
* another first line comment
*/
-cmt_first_line_concat- must be disabled.
Example : -cmt_first_line_blank-
"
-EditorType=boolean
-TrueFalse=-cmt_first_line_blank-|-no-cmt_first_line_blank-
-ValueDefault=1
-
-[cmt_sep_len]
-CallName=-cmt_sep_len-
-Category=5
-Description="Set the maximum length for separators. First line comments are not
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* comment1 */
/* comment2 */
/* comment3 */
if(a)
{
}
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* comment1 */
/* comment2 */
/* comment3 */
if(a)
{
}
See options(s) :
[-no]-cmt_first_line_concat-
concerned.
Example : -cmt_sep_len-10
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=8
-ValueDefault=120
-
-[cmt_sep_fill_star]
-Category=5
-Description="Add a star at the beginning of all lines of a separator.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$2
---------
---------
*/
-cmt_sep_len-20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$4
*******************
*******************
*/
/*$5-#############*/
Example : -cmt_sep_fill_star-
"
-EditorType=boolean
-TrueFalse=-cmt_sep_fill_star-|-no-cmt_sep_fill_star-
-ValueDefault=0
-
-[cmt_sep_break]
-Category=5
-Description="Force /* and */ to be alone on their lines for separators.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$4
*******************
* comment
* comment
*******************
*/
-no-cmt_sep_fill_star-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$4
*******************
comment
comment
*******************
*/
See option(s) :
-cmt_sep_char_4-
-cmt_sep_char_split-
[-no]-cmt_first_line_fill_star-
Example : -cmt_sep_break-
"
-EditorType=boolean
-TrueFalse=-cmt_sep_break-|-no-cmt_sep_break-
-ValueDefault=1
-
-[cmt_keep-char_1]
-CallName=-cmt_keep-char_1-
-Category=5
-Description=(1) Keep the comment identical to /*$F but apply to the character next to the * in /*
-EditorType=string
-Enabled=false
-ValueDefault=
-
-[cmt_keep-char_2]
-CallName=-cmt_keep-char_2-
-Category=5
-Description=(2) Keep the comment identical to /*$F but apply to the character next to the * in /*
-EditorType=string
-Enabled=false
-ValueDefault=
-
-[cmt_keep-char_3]
-CallName=-cmt_keep-char_3-
-Category=5
-Description=(3) Keep the comment identical to /*$F but apply to the character next to the * in /*
-EditorType=string
-Enabled=false
-ValueDefault=
-
-[cmt_keep-char_4]
-CallName=-cmt_keep-char_4-
-Category=5
-Description=(4) Keep the comment identical to /*$F but apply to the character next to the * in /*
-EditorType=string
-Enabled=false
-ValueDefault=
-
-[cmt_keep-char_cpp_1]
-CallName=-cmt_keep-char_cpp_1-
-Category=5
-Description=(1) Keep the cpp comment as is character after the //.
-EditorType=string
-Enabled=false
-ValueDefault=
-
-[cmt_keep-char_cpp_2]
-CallName=-cmt_keep-char_cpp_2-
-Category=5
-Description=(2) Keep the cpp comment as is character after the //.
-EditorType=string
-Enabled=false
-ValueDefault=
-
-[cmt_keep-char_cpp_3]
-CallName=-cmt_keep-char_cpp_3-
-Category=5
-Description=(3) Keep the cpp comment as is character after the //.
-EditorType=string
-Enabled=false
-ValueDefault=
-
-[cmt_keep-char_cpp_4]
-CallName=-cmt_keep-char_cpp_4-
-Category=5
-Description=(4) Keep the cpp comment as is character after the //.
-EditorType=string
-Enabled=false
-ValueDefault=
-
-[cmt_sep_char_1]
-CallName=-cmt_sep_char_1-
-Category=5
-Description="Set the special character to fill automatic comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
===================
comment
comment
===================
*/
//
// =================
// comment
// =================
//
-no-cmt_sep_break-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* =================
comment
comment
=================== */
// =================
// comment
// =================
Example : -cmt_sep_char_1-O
"
-EditorType=string
-Enabled=true
-ValueDefault=~
-
-[cmt_sep_char_2]
-CallName=-cmt_sep_char_2-
-Category=5
-Description="Set the special character to fill automatic comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$1-OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO*/
/*$1
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
*/
-cmt_sep_char_2-#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$2-####################################*/
/*$2
##########################################
##########################################
*/
Note(s) :
- /*$
This is a single line comment.
- /*$
This is a multiline comment.
Example : -cmt_sep_char_1-O
"
-EditorType=string
-Enabled=true
-ValueDefault=-
-
-[cmt_sep_char_3]
-CallName=-cmt_sep_char_3-
-Category=5
-Description="Set the special character to fill automatic comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$1-OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO*/
/*$1
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
*/
-cmt_sep_char_2-#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$2-####################################*/
/*$2
##########################################
##########################################
*/
Note(s) :
- /*$
This is a single line comment.
- /*$
This is a multiline comment.
Example : -cmt_sep_char_1-O
"
-EditorType=string
-Enabled=true
-ValueDefault="="
-
-[cmt_sep_char_4]
-CallName=-cmt_sep_char_4-
-Category=5
-Description="Set the special character to fill automatic comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$1-OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO*/
/*$1
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
*/
-cmt_sep_char_2-#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$2-####################################*/
/*$2
##########################################
##########################################
*/
Note(s) :
- /*$
This is a single line comment.
- /*$
This is a multiline comment.
Example : -cmt_sep_char_1-O
"
-EditorType=string
-Enabled=true
-ValueDefault=*
-
-[cmt_sep_char_5]
-CallName=-cmt_sep_char_5-
-Category=5
-Description="Set the special character to fill automatic comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$1-OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO*/
/*$1
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
*/
-cmt_sep_char_2-#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$2-####################################*/
/*$2
##########################################
##########################################
*/
Note(s) :
- /*$
This is a single line comment.
- /*$
This is a multiline comment.
Example : -cmt_sep_char_1-O
"
-EditorType=string
-Enabled=true
-ValueDefault=#
-
-[cmt_sep_char_6]
-CallName=-cmt_sep_char_6-
-Category=5
-Description="Set the special character to fill automatic comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$1-OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO*/
/*$1
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
*/
-cmt_sep_char_2-#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$2-####################################*/
/*$2
##########################################
##########################################
*/
Note(s) :
- /*$
This is a single line comment.
- /*$
This is a multiline comment.
Example : -cmt_sep_char_1-O
"
-EditorType=string
-Enabled=true
-ValueDefault=+
-
-[cmt_sep_char_split]
-CallName=-cmt_sep_char_split-
-Category=5
-Description="Define the special break line character in comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$1-OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO*/
/*$1
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
*/
-cmt_sep_char_2-#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*$2-####################################*/
/*$2
##########################################
##########################################
*/
Note(s) :
- /*$
This is a single line comment.
- /*$
This is a multiline comment. before
"
-EditorType=string
-Enabled=true
-ValueDefault=
-
-[cmt_sep_eol_before]
-CallName=-cmt_sep_eol_before-
-Category=5
-Description="Set the number of blank lines before and after single-line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* coucou salut */
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
* coucou
* salut
*/
See option(s) :
[-no]-cmt_first_line_concat-
[-no]-cmt_cpp2c_keep_eol-
Note(s) :
- GC uses this special character to keep trace of EOL when converting
C++ comments to C comments. or to concat first line comments.
Example : -cmt_sep_eol_before-1
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[cmt_sep_eol_after]
-CallName=-cmt_sep_eol_after-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
-cmt_sep_eol_after-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo()
// Single line comment...
bar()
-cmt_sep_eol_before-0
-cmt_sep_eol_after-0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo()
// Single line comment...
bar()
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=0
-
-[cmt_sep_eol_before_1]
-CallName=-cmt_sep_eol_before_1-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[cmt_sep_eol_before_2]
-CallName=-cmt_sep_eol_before_2-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[cmt_sep_eol_before_3]
-CallName=-cmt_sep_eol_before_3-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[cmt_sep_eol_before_4]
-CallName=-cmt_sep_eol_before_4-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[cmt_sep_eol_before_5]
-CallName=-cmt_sep_eol_before_5-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[cmt_sep_eol_before_6]
-CallName=-cmt_sep_eol_before_6-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=2
-
-[cmt_sep_eol_after_1]
-CallName=-cmt_sep_eol_after_1-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[cmt_sep_eol_after_2]
-CallName=-cmt_sep_eol_after_2-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[cmt_sep_eol_after_3]
-CallName=-cmt_sep_eol_after_3-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[cmt_sep_eol_after_4]
-CallName=-cmt_sep_eol_after_4-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[cmt_sep_eol_after_5]
-CallName=-cmt_sep_eol_after_5-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[cmt_sep_eol_after_6]
-CallName=-cmt_sep_eol_after_6-
-Category=5
-Description="Set the number of EOL before and after special first line comments.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
depending on the level.
Example : -cmt_sep_eol_before_2-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=2
-
-[cmt_sep_eol_before_fct_def]
-CallName=-cmt_sep_eol_before_fct_def-
-Category=5
-Description="Set the number of blank lines before a function defintion comment.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
-cmt_sep_eol_before_2-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/*$2
==========================================
==========================================
*/
...
Note(s) :
- Only automatic comments and /*$
The /*$
Example : -cmt_sep_eol_before_fct_def-0
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=0
-
-[cmt_sep_force_fct_proto]
-CallName=-cmt_sep_force_fct_proto-
-Category=5
-Description="Set the comment level for comments found in a given position :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
==========================================
proto
==========================================
*/
void fct(void)
{
}
/*
==========================================
proto
==========================================
*/
void fct1(void)
{
}
-cmt_sep_eol_before_fct_def-2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
==========================================
proto
==========================================
*/
void fct(void)
{
}
/*
==========================================
proto
==========================================
*/
void fct1(void)
{
}
See option(s) :
-code_remove_empty_lines-
Note(s) :
-code_remove_empty_lines- has a highter priority.
- Before a function prototype (except if protoype is inside a function
body).
- Before a macro.
- Before a function definition.
- Before a class access specifier (public. protected...).
- Before a struct declaration.
- Before a class declaration.
A comment must already exist. If 0 is specified. the comment is not
modified by GC.
Example : -cmt_sep_force_fct_proto-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=0
-
-[cmt_sep_force_fct_macro]
-CallName=-cmt_sep_force_fct_macro-
-Category=5
-Description="Set the comment level for comments found in a given position :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* proto */
extern int func(void)
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
------------------------------------------
proto
------------------------------------------
*/
extern int func(void)
See option(s) :
[-no]-cmt_add_fct_def-
[-no]-cmt_add_class_access-
- Before a function prototype (except if protoype is inside a function
body).
- Before a macro.
- Before a function definition.
- Before a class access specifier (public. protected...).
- Before a struct declaration.
- Before a class declaration.
A comment must already exist. If 0 is specified. the comment is not
modified by GC.
Example : -cmt_sep_force_fct_proto-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=3
-
-[cmt_sep_force_fct_def]
-CallName=-cmt_sep_force_fct_def-
-Category=5
-Description="Set the comment level for comments found in a given position :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* proto */
extern int func(void)
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
------------------------------------------
proto
------------------------------------------
*/
extern int func(void)
See option(s) :
[-no]-cmt_add_fct_def-
[-no]-cmt_add_class_access-
- Before a function prototype (except if protoype is inside a function
body).
- Before a macro.
- Before a function definition.
- Before a class access specifier (public. protected...).
- Before a struct declaration.
- Before a class declaration.
A comment must already exist. If 0 is specified. the comment is not
modified by GC.
Example : -cmt_sep_force_fct_proto-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=3
-
-[cmt_sep_force_class_access]
-CallName=-cmt_sep_force_class_access-
-Category=5
-Description="Set the comment level for comments found in a given position :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* proto */
extern int func(void)
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
------------------------------------------
proto
------------------------------------------
*/
extern int func(void)
See option(s) :
[-no]-cmt_add_fct_def-
[-no]-cmt_add_class_access-
- Before a function prototype (except if protoype is inside a function
body).
- Before a macro.
- Before a function definition.
- Before a class access specifier (public. protected...).
- Before a struct declaration.
- Before a class declaration.
A comment must already exist. If 0 is specified. the comment is not
modified by GC.
Example : -cmt_sep_force_fct_proto-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=2
-
-[cmt_sep_force_struct]
-CallName=-cmt_sep_force_struct-
-Category=5
-Description="Set the comment level for comments found in a given position :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* proto */
extern int func(void)
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
------------------------------------------
proto
------------------------------------------
*/
extern int func(void)
See option(s) :
[-no]-cmt_add_fct_def-
[-no]-cmt_add_class_access-
- Before a function prototype (except if protoype is inside a function
body).
- Before a macro.
- Before a function definition.
- Before a class access specifier (public. protected...).
- Before a struct declaration.
- Before a class declaration.
A comment must already exist. If 0 is specified. the comment is not
modified by GC.
Example : -cmt_sep_force_fct_proto-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=2
-
-[cmt_sep_force_class]
-CallName=-cmt_sep_force_class-
-Category=5
-Description="Set the comment level for comments found in a given position :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* proto */
extern int func(void)
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
------------------------------------------
proto
------------------------------------------
*/
extern int func(void)
See option(s) :
[-no]-cmt_add_fct_def-
[-no]-cmt_add_class_access-
- Before a function prototype (except if protoype is inside a function
body).
- Before a macro.
- Before a function definition.
- Before a class access specifier (public. protected...).
- Before a struct declaration.
- Before a class declaration.
A comment must already exist. If 0 is specified. the comment is not
modified by GC.
Example : -cmt_sep_force_fct_proto-2
"
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=3
-
-[file_end_eol]
-CallName=-file_end_eol-
-Category=6
-Description=Set the number of EOL after the last token of the file.
-EditorType=numeric
-Enabled=true
-MaxVal=2000
-MinVal=0
-ValueDefault=1
-
-[token_ext]
-CallName=-token_ext-
-Category=6
-Description="Tell GC to consider the user keyword as the given C/C++ keyword.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* proto */
extern int func(void)
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
------------------------------------------
proto
------------------------------------------
*/
extern int func(void)
See option(s) :
[-no]-cmt_add_fct_def-
[-no]-cmt_add_class_access-
Example : -token_ext-typedef$tt
"
-EditorType=string
-Enabled=false
-ValueDefault=
-
-[replace_on]
-Category=6
-Description="Ac
=> tt has the same meaning as typedef
-token_ext-extern$extern_all
=> extern_all has the same meaning as extern
-token_ext-int$uint8
-token_ext-int$uint16
=> uint8 and uint16 are some types (same as int).
GC knows special keywordsyou can specify as a C/C++ keyword.
GC will indent the corresponding source file word depending of the
special word :
-token_ext-single_word$tt
tt will be alone on a line. Indent at the correct indentation
level.
-token_ext-single_word_0$tt
tt will be alone on a line. and at column 0.
Example : -token_ext-single_word_0$WORD
-token_ext-single_word_0$WORD1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void a(int b)
{
if(b)
{
WORD
b++
WORD1
}
}tivate/disactivate the word replacement mode.
"
-EditorType=boolean
-TrueFalse=-replace_on-|-no-replace_on-
-ValueDefault=1
-
-[replace]
-CallName=-replace-
-Category=6
-Description="GC will replace all occurrences of
See options(s) :
-replace-
-replace_on- option must be enabled.
Example : -replace-int$uint
"
-EditorType=string
-Enabled=false
-ValueDefault=
-replace-a$variable
before
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int a
int b
after
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uint variable
uint b
See options(s) :
[-no]-replace_on-ependencies- Activate/Deactivate the output of file dependencies.
"
-EditorType=boolean
-TrueFalse=-dependencies-|-no-dependencies-
-ValueDefault=0
-
-[dependencies_all]
-Category=6
-Description="-d
With -dependencies_all- Real dependencies will be computed (instead of
just includes dependencies). This option takes much longer. but does a
better job.
-dependencies- is ignored if -dependencies_all- is set to TRUE.
typical report
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Processing C:oulotCourcesndent.c (136 lines. 3360 characters)
Processing ctype.h
** Warning: Unable to open source file ==> ctype.h
Processing malloc.h
** Warning: Unable to open source file ==> malloc.h
Processing stdlib.h
** Warning: Unable to open source file ==> stdlib.h
Processing string.h
** Warning: Unable to open source file ==> string.h
Processing config.h
Processing in.h
Processing grammar.h
Processing lexi.h
Processing error.h
Processing tools.h
Processing indent.h
Processing assert.h
** Warning: Unable to open source file ==> assert.h
- Includes files --------------------------------------------------------
( 1) #include config.h
( 2) #include in.h
( 1) #include grammar.h
( 2) #include lexi.h
( 1) #include error.h
( 1) #include tools.h
( 1) #include indent.h
******** Unresolved 5 Total 12
- Scanning 1 ----------------------------------------------------------
.
- Direct dependencies ---------------------------------------------------
( 1) #include config.h
( 3) #include in.h
( 8) #include lexi.h
( 5) #include tools.h
( 21) #include indent.h
******** Total 5
- No dependencies -------------------------------------------------------
( 1) #include grammar.h
Included by C:oulotCourcesndent.c
( 1) #include error.h
Included by C:oulotCourcesndent.c
******** Total 2
-------------------------------------------------------------------------ependencies- Activate/Deactivate the output of file dependencies.
"
-EditorType=boolean
-TrueFalse=-dependencies_all-|-no-dependencies_all-
-ValueDefault=0
-
-[dependencies_dir]
-CallName=-dependencies_dir-
-Category=6
-Description="When -dependencies- option is activated. defines a path where GC
With -dependencies_all- Real dependencies will be computed (instead of
just includes dependencies). This option takes much longer. but does a
better job.
-dependencies- is ignored if -dependencies_all- is set to TRUE.
typical report
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Processing C:oulotCourcesndent.c (136 lines. 3360 characters)
Processing ctype.h
** Warning: Unable to open source file ==> ctype.h
Processing malloc.h
** Warning: Unable to open source file ==> malloc.h
Processing stdlib.h
** Warning: Unable to open source file ==> stdlib.h
Processing string.h
** Warning: Unable to open source file ==> string.h
Processing config.h
Processing in.h
Processing grammar.h
Processing lexi.h
Processing error.h
Processing tools.h
Processing indent.h
Processing assert.h
** Warning: Unable to open source file ==> assert.h
- Includes files --------------------------------------------------------
( 1) #include config.h
( 2) #include in.h
( 1) #include grammar.h
( 2) #include lexi.h
( 1) #include error.h
( 1) #include tools.h
( 1) #include indent.h
******** Unresolved 5 Total 12
- Scanning 1 ----------------------------------------------------------
.
- Direct dependencies ---------------------------------------------------
( 1) #include config.h
( 3) #include in.h
( 8) #include lexi.h
( 5) #include tools.h
( 21) #include indent.h
******** Total 5
- No dependencies -------------------------------------------------------
( 1) #include grammar.h
Included by C:oulotCourcesndent.c
( 1) #include error.h
Included by C:oulotCourcesndent.c
******** Total 2
-------------------------------------------------------------------------
will find includes.
Example : -dependencies_dir-c:/system/includes
"
-EditorType=string
-Enabled=false
-ValueDefault=./
-
-[dependencies_dir_rec]
-Category=6
-Description="Al
-dependencies_dir-c:/GC/sourcesl directories set with -dependencies_dir- are recurs scan.
"
-EditorType=boolean
-TrueFalse=-dependencies_dir_rec-|-no-dependencies_dir_rec-
-ValueDefault=0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/indenters/__TODO/uigui_hindent.ini b/indenters/__TODO/uigui_hindent.ini
deleted file mode 100755
index d9767b2..0000000
--- a/indenters/__TODO/uigui_hindent.ini
+++ /dev/null
@@ -1,66 +0,0 @@
-[header]
-categories=Basic Options
-cfgFileParameterEnding=cr
-configFilename=
-fileTypes=*.htm|*.html|*.xhtml
-indenterFileName=hindent
-indenterName=hindent (HTML)
-inputFileName=indentinput
-inputFileParameter=
-manual=http://www.linuxdriver.co.il/man/1/H/hindent
-outputFileName=
-outputFileParameter=stdout
-parameterOrder=pio
-showHelpParameter=-v
-stringparaminquotes=false
-useCfgFileParameter=
-version=1.1.2-7
-
-[Case]
-Category=0
-Description="Forces all tags to lowercase. By default, hindent forces all tags to uppercase."
-EditorType=boolean
-TrueFalse=-c|
-ValueDefault=0
-
-
-[Flow]
-Category=0
-Description="Prints just tags without any data between the tags. Damages the HTML in a big way, so save a copy of your original HTML. This option helps you follow the HTML code flow visually."
-EditorType=boolean
-TrueFalse=-f|
-ValueDefault=0
-
-[Indent level]
-CallName="-i "
-Category=0
-Description="Set indentation to this many character spaces per code nesting level. If set to 0, no indentation is done (all output is left-justified)."
-EditorType=numeric
-Enabled=false
-MaxVal=9999
-MinVal=0
-ValueDefault=4
-
-[List tags]
-Category=0
-Description="Causes hindent to print a complete list of tags that it recognizes to stdout, and exits."
-EditorType=boolean
-TrueFalse=-l|
-ValueDefault=0
-
-[Strict]
-Category=0
-Description="Multiple tags per line are broken out onto separate lines. Can damage the HTML in minor ways by drawing an extra space character in certain parts of the web page, so save a copy of your original HTML. This option helps you follow the HTML code flow visually, especially with computer-generated HTML that comes out all on one line."
-EditorType=boolean
-TrueFalse=-s|
-ValueDefault=0
-
-[Tab stop]
-CallName="-t "
-Category=0
-Description="Set the number of spaces that a tab character occupies on your system. Defaults to 8, but some people prefer expanding tabs to 4 spaces instead. If set to 0, no tabs are output (spaces used to indent lines)."
-EditorType=numeric
-Enabled=false
-MaxVal=9999
-MinVal=0
-ValueDefault=8
diff --git a/indenters/__TODO/uigui_htb.ini b/indenters/__TODO/uigui_htb.ini
deleted file mode 100755
index c6227c0..0000000
--- a/indenters/__TODO/uigui_htb.ini
+++ /dev/null
@@ -1,147 +0,0 @@
-[header]
-categories=Basic Options
-cfgFileParameterEnding=cr
-configFilename=
-fileTypes=*.htm|*.html|*.xhtml|*.xml|*.xlst
-indenterFileName=htb
-indenterName=HTB (HTML, XML, XSL)
-inputFileName=indentinput
-inputFileParameter=
-manual=http://www.digital-mines.com/htb/htb_docs.html
-outputFileName=indentoutput
-outputFileParameter=
-parameterOrder=pio
-showHelpParameter=-h
-stringparaminquotes=false
-useCfgFileParameter=
-version=2.0
-
-[Multi-Attribute Tag Break]
-Category=0
-Description="
See options(s) :
[-no]-dependencies_dir-
Before:<BODY BGCOLOR="#FFFFFF" MARGINWIDTH="0" MARGINHEIGHT="0" LINK="#666666" VLINK="#666666" ALINK="#000000">\n<TABLE WIDTH="800" BORDER="0" CELLPADDING="0" CELLSPACING="0">\n<TR>\n<TD COLSPAN="2" WIDTH="196" BGCOLOR="cccccc" VALIGN="top"><IMG SRC="/images/homepage/rev/logo_06.gif" WIDTH="196" HEIGHT="63"></TD>\n<TD BGCOLOR="cccccc" WIDTH="600" VALIGN="top">\n<TABLE WIDTH="600" BORDER="0" CELLPADDING="0" CELLSPACING="0" VALIGN="top">\n<TR>\n<TD VALIGN="top" HEIGHT="17" BGCOLOR="#CCCCCC"><IMG SRC="/images/homepage/rev/comp8_07.gif" WIDTH="600" HEIGHT="17"></TD>\n</TR>
After: <BODY ALINK="#000000"\n BGCOLOR="#FFFFFF"\n LINK="#666666"\n MARGINHEIGHT="0"\n MARGINWIDTH="0"\n VLINK="#666666">\n<TABLE BORDER="0"\n CELLPADDING="0"\n CELLSPACING="0"\n WIDTH="800">\n <TR>\n <TD BGCOLOR="cccccc"\n COLSPAN="2"\n VALIGN="top"\n WIDTH="196"><IMG HEIGHT="63"\n SRC="/images/homepage/rev/logo_06.gif"\n WIDTH="196"></TD>\n <TD BGCOLOR="cccccc"\n VALIGN="top"\n WIDTH="600"> \n <TABLE BORDER="0"\n CELLPADDING="0"\n CELLSPACING="0"\n VALIGN="top"\n WIDTH="600">\n <TR>\n <TD BGCOLOR="#CCCCCC"\n HEIGHT="17"\n VALIGN="top"><IMG HEIGHT="17"\n SRC="/images/homepage/rev/comp8_07.gif"\n WIDTH="600"></TD>\n </TR>
"
-EditorType=boolean
-TrueFalse=-a|
-ValueDefault=0
-
-
-[All Attribute Tag Break]
-Category=0
-Description="
Before:<BODY BGCOLOR="#FFFFFF" MARGINWIDTH="0" MARGINHEIGHT="0" LINK="#666666" VLINK="#666666" ALINK="#000000">\n<TABLE WIDTH="800" BORDER="0" CELLPADDING="0" CELLSPACING="0">\n<TR>\n<TD COLSPAN="2" WIDTH="196" BGCOLOR="cccccc" VALIGN="top"><IMG SRC="/images/homepage/rev/logo_06.gif" WIDTH="196" HEIGHT="63"></TD>\n<TD BGCOLOR="cccccc" WIDTH="600" VALIGN="top">\n<TABLE WIDTH="600" BORDER="0" CELLPADDING="0" CELLSPACING="0" VALIGN="top">\n<TR>\n<TD VALIGN="top" HEIGHT="17" BGCOLOR="#CCCCCC"><IMG SRC="/images/homepage/rev/comp8_07.gif" WIDTH="600" HEIGHT="17"></TD>\n</TR>
After:<BODY\n ALINK="#000000"\n BGCOLOR="#FFFFFF"\n BOTMARGIN="0"\n MARGINHEIGHT="0"\n MARGINWIDTH="0"\n LEFTMARGIN="0"\n LINK="#666666"\n TOPMARGIN="0"\n VLINK="#666666">\n<TABLE\n BORDER="0"\n CELLPADDING="0"\n CELLSPACING="0"\n WIDTH="800">\n <TR>\n <TD\n BGCOLOR="cccccc"\n COLSPAN="2"\n VALIGN="top"\n WIDTH="196"><IMG\n HEIGHT="63"\n SRC="/images/homepage/rev/logo_06.gif"\n WIDTH="196"></TD>\n <TD\n BGCOLOR="cccccc"\n VALIGN="top"\n WIDTH="600"> \n <TABLE\n BORDER="0"\n VALIGN="top"\n CELLPADDING="0"\n CELLSPACING="0"\n WIDTH="600">\n <TR>\n <TD\n BGCOLOR="#CCCCCC"\n HEIGHT="17"\n VALIGN="top"><IMG\n HEIGHT="17"\n SRC="/images/homepage/rev/comp8_07.gif"\n WIDTH="600"></TD>\n </TR>\n
"
-EditorType=boolean
-TrueFalse=-b|
-ValueDefault=0
-
-[Add Carriage Returns]
-Category=0
-Description="The -c command-line option adds an extra carriage return character to each output line of reformatted data. This allows Unix versions of HTB to create a DOS/Windows compatible text files directly."
-EditorType=boolean
-TrueFalse=-c|
-ValueDefault=0
-
-[Omit Carriage Returns]
-Category=0
-Description="The -d command-line option inhibits extra carriage return character output even if present in the source data. This allows the Windows version of HTB to create a Unix compatible text file directly. This is the default behavior and correctly creates a natively compatible format whether Unix or Windows."
-EditorType=boolean
-TrueFalse=-d|
-ValueDefault=0
-
-[Escaped Tag Conversion]
-Category=0
-Description="The -e command-line option replaces the special markup characters '<', '>', and '&' with escape strings '<', '>', and '&' respectively. Also, the tag sequence '' is added to the beginning of the output data and the sequence '
' is appended to the end of the data. This creates an entirely new HTML document, which when viewed with a Web Browser, will appear as source instead of normal rendering. This is useful in creating markup tag documentation and is the mechanism used to create the examples in this document. Use in combination with the -k option to do the conversion without applying other reformatting options."
-EditorType=boolean
-TrueFalse=-e|
-ValueDefault=0
-
-[Join Lines - Compress Output]
-Category=0
-Description="The -j command-line option removes all unnecessary whitespace & comments and joins the output lines together whenever possible. The result is totally 'unbeautified' output, but the size will be reduced from 10-40% for quicker transfer over the network. Use this option whenever performance is more important than readability."
-EditorType=boolean
-TrueFalse=-j|
-ValueDefault=0
-
-[Keep Layout - Case Changes Only]
-Category=0
-Description="
Example:
- Keep the current layout of an HTML document, but change the tag attribute names to lower case (-m option, opposite of tag name case which by default is upper)...htb -km myfile.html
Before:<FORM ENCTYPE="multipart/form-data" NAME="coreform" METHOD="POST">\n<INPUT TYPE="submit" VALUE="Submit Request"> \n<INPUT NAME="cgi" TYPE="button" VALUE="cgi2xml">cgi2xml \n<TABLE BORDER="5" CELLPADDING="5">\n <TR>\n <TD> <FONT COLOR="purple"> \n <H4>Output formatting:</H4> </FONT>Debug: \n <INPUT NAME="debug"><BR> \n <BR> Filter: \n <INPUT NAME="filter"><BR> Output: \n <INPUT NAME="output"><BR> \n <BR> Pagestart: \n <INPUT SIZE="4" NAME="pagestart"><BR> Pagesize: \n <INPUT SIZE="4" NAME="pagesize"><BR> \n </TD>\n </TR>\n</TABLE>\n</FORM>
After:<FORM enctype="multipart/form-data" name="coreform" method="POST">\n<INPUT type="submit" value="Submit Request"> \n<INPUT name="cgi" type="button" value="cgi2xml">cgi2xml \n<TABLE border="5" cellpadding="5">\n <TR>\n <TD> <FONT color="purple"> \n <H4>Output formatting:</H4> </FONT>Debug: \n <INPUT name="debug"><BR> \n <BR> Filter: \n <INPUT name="filter"><BR> Output: \n <INPUT name="output"><BR> \n <BR> Pagestart: \n <INPUT size="4" name="pagestart"><BR> Pagesize: \n <INPUT size="4" name="pagesize"><BR> \n </TD>\n </TR>\n</TABLE>\n</FORM>
"
-EditorType=boolean
-TrueFalse=-k|
-ValueDefault=0
-
-[Tag Names Lower Case]
-Category=0
-Description="
Before:<FORM ENCTYPE="multipart/form-data" NAME="coreform" METHOD="POST">\n<INPUT TYPE="submit" VALUE="Submit Request"> \n<INPUT NAME="cgi" TYPE="button" VALUE="cgi2xml">cgi2xml \n<TABLE BORDER="5" CELLPADDING="5">\n <TR>\n <TD> <FONT COLOR="purple"> \n <H4>Output formatting:</H4> </FONT>Debug: \n <INPUT NAME="debug"><BR> \n <BR> Filter: \n <INPUT NAME="filter"><BR> Output: \n <INPUT NAME="output"><BR> \n <BR> Pagestart: \n <INPUT SIZE="4" NAME="pagestart"><BR> Pagesize: \n <INPUT SIZE="4" NAME="pagesize"><BR> \n </TD>\n </TR>\n</TABLE>\n</FORM>
After:<form enctype="multipart/form-data" method="post" name="coreform">\n<input type="submit" value="Submit Request"> \n<input name="cgi" type="button" value="cgi2xml">cgi2xml \n<table border="5" cellpadding="5">\n <tr>\n <td> <font color="purple"> \n <h4>Output formatting:</h4> </font>Debug: \n <input name="debug"><br> \n <br> Filter: \n <input name="filter"><br> Output: \n <input name="output"><br> \n <br> Pagestart: \n <input name="pagestart" size="4"><br> Pagesize: \n <input name="pagesize size="4"><br> \n </td>\n </tr>\n</table>\n</form>\n
"
-EditorType=boolean
-TrueFalse=-l|
-ValueDefault=0
-
-[Tag Attributes Opposite Case]
-Category=0
-Description="The -m command-line option makes the tag attribute case the opposite of the tag name. Since the HTB default is to make tag names upper case, the addition of this option will make the tag attributes lower case. If combined with the -l option (lower case) the tag names will be lower case, and the tag attributes will be upper case. See the -k option for an example."
-EditorType=boolean
-TrueFalse=-m|
-ValueDefault=0
-
-[Never Break Tags Between Lines]
-Category=0
-Description="The -n command-line option cancels the default behavior of breaking tags which exceed the 80 column limit and keeps tags intact within a single line of output regardless of their length. This is often desirable, especially on XSL files."
-EditorType=boolean
-TrueFalse=-n|
-ValueDefault=0
-
-[Remove Non-HTML Tags]
-Category=0
-Description="
Example:
- Remove all non-HTML tags from an XSL/XHTML file...
htb -r myfile.xsl
Before:\n <xsl:for-each select="ELEMENT/NODE1"> \n <xsl:variable select="position()-1" name="vpos" /> \n <TR VALIGN="top">\n <TD ALIGN="center"><FONT SIZE="1" FACE="Helvetica"><xsl:value-of select="$vpos" /></FONT> \n </TD>\n <TD ALIGN="center"><FONT FACE="Helvetica"> \n <INPUT NAME="ELEM{$vpos}" TYPE="text" VALUE="Element {$vpos}" /></FONT> \n </TD>\n <TD ALIGN="center"><FONT FACE="Helvetica"> \n <INPUT NAME="NUMB{$vpos}" TYPE="text" VALUE="2" /></FONT> \n </TD>\n <TD ALIGN="center"><FONT FACE="Helvetica"> \n <xsl:variable select="count(//NODE1[@id > -1)" name="pcnt" /> \n <xsl:variable name="selsize"> \n <xsl:choose><xsl:when test="$pcnt < 5"> \n <xsl:value-of select="$pcnt" /> \n </xsl:when><xsl:otherwise> \n <xsl:value-of select="'5'" /> \n </xsl:otherwise></xsl:choose> \n </xsl:variable> \n <SELECT SIZE="{$selsize}" NAME="VALU{$vpos}">\n <xsl:for-each select="//VALUE[@id > -1]"> \n <OPTION VALUE="{@id}">\n <xsl:value-of select="NAME" /></OPTION> \n </xsl:for-each> \n </SELECT></FONT> \n </TD>\n </TR>\n </xsl:for-each>
After: \n <TR VALIGN="top">\n <TD ALIGN="center"><FONT FACE="Helvetica" SIZE="1"></FONT> \n </TD>\n <TD ALIGN="center"><FONT FACE="Helvetica"> \n <INPUT NAME="ELEM{$vpos}" TYPE="text" VALUE="Element {$vpos}" /></FONT> \n </TD>\n <TD ALIGN="center"><FONT FACE="Helvetica"> \n <INPUT NAME="NUMB{$vpos}" TYPE="text" VALUE="2" /></FONT> \n </TD>\n <TD ALIGN="center"><FONT FACE="Helvetica"> \n <SELECT NAME="VALU{$vpos}" SIZE="{$selsize}">\n <OPTION VALUE="{@id}"></OPTION>\n </SELECT></FONT> \n </TD>\n </TR>
"
-EditorType=boolean
-TrueFalse=-r|
-ValueDefault=0
-
-[Remove Tabs from SCRIPTs]
-Category=0
-Description="HTB automatically removes any tab characters found in the source document during the indenting process, but by default SCRIPTs are kept intact. To completely remove all tabs, specify the -s option and tab characters found within SCRIPT elements will be replaced with sets if of indented spaces. This could make the indented script statements look slightly worse and may require minor editing, but the beautified output is clear of any tab characters."
-EditorType=boolean
-TrueFalse=-r|
-ValueDefault=0
-
-[Convert to Plain Text]
-Category=0
-Description="The -t command-line option strips all markup tags, comments and converts the input to plain text. All ASCII and ISO8859-1 HTML escape strings are converted back to the characters they represent. An attempt is made to compress extra whitespace, but in general the text will require additional re-formatting to be made presentable. Use this option to isolate the textual content within tagged documents (not necessarily HTML) for use in other documentation."
-EditorType=boolean
-TrueFalse=-t|
-ValueDefault=0
-
-[Tag Names Upper Case]
-Category=0
-Description="
Before:<form enctype="multipart/form-data" name="coreform" method="POST">\n<input type="submit" value="Submit Request"> \n<input name="cgi" type="button" value="cgi2xml">cgi2xml \n<table border="5" cellpadding="5">\n <tr>\n <td> <font color="purple"> \n <h4>Output formatting:</h4> </font>Debug: \n <input name="debug"><br> \n <br> Filter: \n <input name="filter"><br> Output: \n <input name="output"><br> \n <br> Pagestart: \n <input size="4" name="pagestart"><br> Pagesize: \n <input size="4" name="pagesize"><br> \n </td>\n </tr>\n</table>\n</form>
After:<FORM ENCTYPE="multipart/form-data" METHOD="POST" NAME="coreform">\n<INPUT TYPE="submit" VALUE="Submit Request"> \n<INPUT NAME="cgi" TYPE="button" VALUE="cgi2xml">cgi2xml \n<TABLE BORDER="5" CELLPADDING="5">\n <TR>\n <TD> <FONT COLOR="purple"> \n <H4>Output formatting:</H4> </FONT>Debug: \n <INPUT NAME="debug"><BR> \n <BR> Filter: \n <INPUT NAME="filter"><BR> Output: \n <INPUT NAME="output"><BR> \n <BR> Pagestart: \n <INPUT NAME="pagestart" SIZE="4"><BR> Pagesize: \n <INPUT NAME="pagesize" SIZE="4"><BR> \n </TD>\n </TR>\n</TABLE>\n</FORM>
"
-EditorType=boolean
-TrueFalse=-u|
-ValueDefault=0
-
-[Unknown Tags are XML]
-Category=0
-Description="
Example:
- Make tag names and attributes lower case, never break tags, and treat unknown tags in an HTML file as well formed XML... htb -lnx myfile.html
Before:<TR><TD WIDTH=182 ALIGN=left BGCOLOR="#ffffff">\n<NYT_HEADLINE>\n<A\n\nHREF="/onthisday/20020619.html"><FONT SIZE="3" FACE="times"><B>On June 19 ...<BR></B></FONT></A>\n</NYT_HEADLINE>\n<NYT_BYLINE>\n<FONT SIZE="-1"></FONT>\n</NYT_BYLINE>\n<NYT_SUMMARY>\n<FONT SIZE="-1">\n<B>1964:</B> The Civil Rights Act of 1964 was approved. (<A \nHREF="/onthisday/big/0619.html">See this front page.</A>) <BR>\n<B>1903:</B> Lou Gehrig was born. <A \nHREF="/onthisday/bday/0619.html">(Read about his life.)</A> <BR>\n<B>1886:</B> Harper's Weekly featured a cartoon about the proposed annexation of Nova Scotia. <A \nHREF="/onthisday/harp/0619.html">(See the cartoon.)</A></FONT>\n</TD></TR>
After:<tr>\n <td align="left" bgcolor="#ffffff" width="182"> \n <NYT_HEADLINE> \n <a href="/onthisday/20020619.html"><font face="times" size="3"><b>On June 19 ...<br></b></font></a> \n </NYT_HEADLINE> \n <NYT_BYLINE> <font size="-1"></font> \n </NYT_BYLINE> \n <NYT_SUMMARY> <font size="-1"> <b>1964:</b> The Civil Rights Act of 1964 was approved. (<a href="/onthisday/big/0619.html">See this front page.</a>) \n <br> <b>1903:</b> Lou Gehrig was born. \n <a href="/onthisday/bday/0619.html">(Read about his life.)</a> \n <br> <b>1886:</b> Harper's Weekly featured a cartoon about the proposed annexation of Nova Scotia. \n <a href="/onthisday/harp/0619.html">(See the cartoon.)</a></font> \n </td>\n</tr>
"
-EditorType=boolean
-TrueFalse=-x|
-ValueDefault=0
-
-[Turn off XML detection]
-Category=0
-Description="
Example:
- Never break tags, make all tags lower case whether HTML or not, and do not change indenting for unknown tags... htb -lny myfile.html
Before: <TR><TD WIDTH=182 ALIGN=left BGCOLOR="#ffffff">\n<NYT_HEADLINE>\n<A\n\nHREF="/onthisday/20020619.html"><FONT SIZE="3" FACE="times"><B>On June 19 ...<BR></B></FONT></A>\n</NYT_HEADLINE>\n<NYT_BYLINE>\n<FONT SIZE="-1"></FONT>\n</NYT_BYLINE>\n<NYT_SUMMARY>\n<FONT SIZE="-1">\n<B>1964:</B> The Civil Rights Act of 1964 was approved. (<A \nHREF="/onthisday/big/0619.html">See this front page.</A>) <BR>\n<B>1903:</B> Lou Gehrig was born. <A \nHREF="/onthisday/bday/0619.html">(Read about his life.)</A> <BR>\n<B>1886:</B> Harper's Weekly featured a cartoon about the proposed annexation of Nova Scotia. <A \nHREF="/onthisday/harp/0619.html">(See the cartoon.)</A></FONT>\n</TD></TR>
After:<tr>\n <td align="left" bgcolor="#ffffff" width="182"> \n <nyt_headline> \n <a href="/onthisday/20020619.html"><font face="times" size="3"><b>On June 19 ...<br></b></font></a> \n </nyt_headline> \n <nyt_byline> <font size="-1"></font> \n </nyt_byline> \n <nyt_summary> <font size="-1"> <b>1964:</b> The Civil Rights Act of 1964 was approved. (<a href="/onthisday/big/0619.html">See this front page.</a>) \n <br> <b>1903:</b> Lou Gehrig was born. \n <a href="/onthisday/bday/0619.html">(Read about his life.)</a> \n <br> <b>1886:</b> Harper's Weekly featured a cartoon about the proposed annexation of Nova Scotia. \n <a href="/onthisday/harp/0619.html">(See the cartoon.)</a></font> \n </td>\n</tr>
"
-EditorType=boolean
-TrueFalse=-y|
-ValueDefault=0
-
-[Remove Comments]
-Category=0
-Description="The -z command-line option removes all stand-alone comments from the input data. This does not include JavaScript comments or comment blocks within APPLET, OBJECT, SCRIPT, and STYLE tags used to hide text from browsers. The revised output should render and function as the original. The -z option is useful in reducing tagged file sizes when the comment blocks are no longer needed, or in removing dead, commented-out sections within documents which tend to collect over time. The stripped comments are not lost, however. These are sent to the 'standard error' stream and may be collected in another file for reference or for use in documentation by 'standard error' redirection ('2>' or '2>>'). If 'standard error' is not redirected, the stripped comments will be seen scrolling by on the screen. Use in combination with the -k option to strip comments without otherwise changing the document layout."
-EditorType=boolean
-TrueFalse=-z|
-ValueDefault=0
-
-[Spaces for Indenting]
-CallName="-"
-Category=0
-Description="A command-line option from 0 to 9 represents the number of spaces used for increments of indenting. Specifying 0 will cause all indenting to be removed and the tags will shifted to the left. If not specified, the default is to indent by 3."
-EditorType=numeric
-Enabled=false
-MaxVal=9
-MinVal=0
-ValueDefault=3
diff --git a/indenters/__TODO/uigui_jsdecoder.ini b/indenters/__TODO/uigui_jsdecoder.ini
deleted file mode 100755
index f22ea7b..0000000
--- a/indenters/__TODO/uigui_jsdecoder.ini
+++ /dev/null
@@ -1,17 +0,0 @@
-[header]
-categories=
-cfgFileParameterEnding=cr
-configFilename=
-fileTypes=*.js
-indenterFileName=JsDecoder
-indenterName=JsDecoder (JavaScript)
-inputFileName=
-inputFileParameter=
-manual="http://www.gosu.pl/decoder/"
-outputFileName=
-outputFileParameter=
-parameterOrder=
-showHelpParameter=
-stringparaminquotes=
-useCfgFileParameter=
-version=1.1.0
diff --git a/indenters/__TODO/uigui_jsppp.ini b/indenters/__TODO/uigui_jsppp.ini
deleted file mode 100755
index 53c886c..0000000
--- a/indenters/__TODO/uigui_jsppp.ini
+++ /dev/null
@@ -1,81 +0,0 @@
-[header]
-categories=General options
-cfgFileParameterEnding=" "
-configFilename=
-fileTypes=*.jsp|*.html|*.xml
-indenterFileName=jsppp
-indenterName=JSPPP (JSP)
-inputFileName=indentinput
-inputFileParameter=
-manual=http://jsppp.sourceforge.net/
-outputFileName=indentinput
-outputFileParameter=none
-stringparaminquotes=false
-parameterOrder=pio
-showHelpParameter=-h
-stringparaminquotes=false
-useCfgFileParameter=
-version=0.5.2a
-
-[Spaces]
-Category=0
-Description="If spaces is true, spaces, not tabs, will be used to indent the lines."
-EditorType=boolean
-TrueFalse=|--tabs
-ValueDefault=1
-
-[Number of spaces]
-Category=0
-Description="If spaces are used for indenting, NUMSPACES is the number of spaces to use per indent level."
-Enabled=true
-EditorType=numeric
-CallName="--spaces="
-MinVal=0
-MaxVal=999
-ValueDefault=2
-
-[Line length]
-Category=0
-Description="The length, in bytes (JSPPP does not yet support Unicode input, no one has asked for it yet) of the soft line length limit. JavaScript, long element names, attributes, etc., that cannot be broken up will end up over the limit if they have already been indented too far."
-Enabled=false
-EditorType=numeric
-CallName="--length="
-MinVal=1
-MaxVal=9999
-ValueDefault=120
-
-[Tabsize]
-Category=0
-Description="The default number of spaces per tab is 8. This number is used to determine how much of the line has been used by a tab."
-Enabled=false
-EditorType=numeric
-CallName="--tab-size="
-MinVal=0
-MaxVal=999
-ValueDefault=8
-
-[Punctuation]
-Category=0
-Description="PUNCTUATION is a list of characters which should be handled specially after an anchor tag. If there is whitespace after a link tag but before one of these characters then the whitespace is removed. To have no special characters, use the line "PUNCTUATION="."
-Enabled=false
-CallName=PUNCTUATION=
-EditorType=string
-ValueDefault=",.!?"
-
-[Loose or tight spacing]
-Category=0
-Description="Use loose or tight spacing."
-Enabled=true
-EditorType=multiple
-Choices="--loose-spacing|--tight-spacing"
-ChoicesReadable="Loose spacing|Tight spacing"
-ValueDefault=0
-
-[Backup file]
-Category=0
-Description="Leave a backup file, which will be overwritten on a second run, or leave no backup file at all."
-Enabled=true
-EditorType=multiple
-Choices="--engage-safety|--disengage-safety"
-ChoicesReadable="Leave backup file|Leave NO backup file"
-ValueDefault=1
diff --git a/indenters/__TODO/uigui_perltidy.ini b/indenters/__TODO/uigui_perltidy.ini
deleted file mode 100755
index bf2587b..0000000
--- a/indenters/__TODO/uigui_perltidy.ini
+++ /dev/null
@@ -1,1040 +0,0 @@
-[header]
-categories=Styles|Basic Options|Code Indentation Control|Whitespace Control|Comment Controls|Skip Selected Codesections|Line Break Control|Controlling List Formatting|Retaining or Ignoring Existing Line Breaks|Blank Line Control|Other Controls
-cfgFileParameterEnding=cr
-configFilename=perltidy.cfg
-fileTypes=*.pl|*.pm
-indenterFileName=perltidy
-indenterName=Perltidy (Perl)
-inputFileName=indentinput
-inputFileParameter=
-manual=http://perltidy.sourceforge.net/perltidy.html
-outputFileName=indentoutput
-outputFileParameter="-o="
-parameterOrder=pio
-showHelpParameter=-h
-stringparaminquotes=false
-useCfgFileParameter="-pro="
-version=1.74 2010/12/17
-
-[Iterations]
-CallName="--iterations="
-Category=1
-Description="This flag causes perltidy to do n complete iterations. For most purposes the default of n=1 should be satisfactory. However n=2 can be useful when a major style change is being made, or when code is being beautified on check-in to a source code control system. The run time will be approximately proportional to n, and it should seldom be necessary to use a value greater than n=2."
-EditorType=numeric
-Enabled=false
-MaxVal=10
-MinVal=1
-ValueDefault=1
-
-[Add newlines]
-Category=6
-Description="\n %bf = map { $_ => -M $_ } grep { /deb$/ } dirents '.'; # -bbt=0 (default)\n %bf = map { $_ => -M $_ } grep {/deb$/} dirents '.'; # -bbt=1\n %bf = map {$_ => -M $_} grep {/deb$/} dirents '.'; # -bbt=2
\n -bbvt=0 break after opening block brace (default). \n -bbvt=1 do not break unless this would produce more than one \n step in indentation in a line.\n -bbvt=2 do not break after opening block brace.
\n # perltidy -bli -bbvt=0\n if ( open( FILE, "< $File" ) )\n {\n while ( $File = <FILE> )\n {\n $In .= $File;\n $count++;\n }\n close(FILE);\n }
\n # perltidy -bli -bbvt=1\n if ( open( FILE, "< $File" ) )\n { while ( $File = <FILE> )\n { $In .= $File;\n $count++;\n }\n close(FILE);\n }
if
, elsif
, and else
blocks, we could use perltidy -bli -bbvt=1 -bbvtl='if elsif else'
.\n if ( $input_file eq '-' ) # -bli\n {\n important_function();\n }
if/elsif/else
blocks.\n $obj->{ $parsed_sql->{ 'table' }[0] }; # -bt=0\n $obj->{ $parsed_sql->{'table'}[0] }; # -bt=1 (default)\n $obj->{$parsed_sql->{'table'}[0]}; # -bt=2
\n % + - * / x != == >= <= =~ !~ < > | & \n = **= += *= &= <<= &&= -= /= |= >>= ||= //= .= %= ^= x=\n . : ? && || and or err xor
\n % + - * / x != == >= <= =~ !~ < > | & \n = **= += *= &= <<= &&= -= /= |= >>= ||= //= .= %= ^= x=\n . : ? && || and or err xor
perl -c -T
to check syntax of input and output. (To change the flags passed to perl, see the next item, -pscf). The results are written to the .LOG file, which will be saved if an error is detected in the output script. The output script is not checked if the input script has a syntax error. Perltidy does its own checking, but this option employs perl to get a ``second opinion''.
If perl reports errors in the input file, they will not be reported in the error output unless the --warning-output flag is given.
The default is not to do this type of syntax checking (although perltidy will still do as much self-checking as possible). The reason is that it causes all code in BEGIN blocks to be executed, for all modules being used, and this opens the door to security issues and infinite loops when running perltidy." -EditorType=boolean -Enabled=false -TrueFalse=--check-syntax| -ValueDefault=0 - -[Closing Side Comment Else Flag] -CallName="--closing-side-comment-else-flag=" -Category=4 -Description="
The default, n=0, places the text of the opening if
statement after any terminal else
.
If n=2 is used, then each elsif
is also given the text of the opening if
statement. Also, an else
will include the text of a preceding elsif
statement. Note that this may result some long closing side comments.
If n=1 is used, the results will be the same as n=2 whenever the resulting line length is less than the maximum allowed.
where n
is the minimum number of lines that a block must have in order for a closing side comment to be added. The default value is n=6
. To illustrate:
\n # perltidy -csci=2 -csc\n sub message {\n if ( !defined( $_[0] ) ) {\n print("Hello, World\n");\n } ## end if ( !defined( $_[0] ))\n else {\n print( $_[0], "\n" );\n } ## end else [ if ( !defined( $_[0] ))\n } ## end sub message
Now the if
and else
blocks are commented. However, now this has become very cluttered.
where string
is a list of block types to be tagged with closing side comments. By default, all code block types preceded by a keyword or label (such as if
, sub
, and so on) will be tagged. The -cscl command changes the default list to be any selected block types; see Specifying Block Types. For example, the following command requests that only sub
's, labels, BEGIN
, and END
blocks be affected by any -csc or -dcsc operation:
\n -cscl="sub : BEGIN END"
The text appended to certain block types, such as an if
block, is whatever lies between the keyword introducing the block, such as if
, and the opening brace. Since this might be too much text for a side comment, there needs to be a limit, and that is the purpose of this parameter. The default value is n=20
, meaning that no additional tokens will be appended to this text after its length reaches 20 characters. Omitted text is indicated with ...
. (Tokens, including sub names, are never truncated, however, so actual lengths may exceed this). To illustrate, in the above example, the appended text of the first block is ( !defined( $_[0] )...
. The existing limit of n=20
caused this text to be truncated, as indicated by the ...
.
As discussed in the previous item, when the closing-side-comment-maximum-text limit is exceeded the comment text must be truncated. Older versions of perltidy terminated with three dots, and this can still be achieved with -ncscb:
\n perltidy -csc -ncscb\n } ## end foreach my $foo (sort { $b cmp $a ...
However this causes a problem with editors editors which cannot recognize comments or are not configured to do so because they cannot "bounce" around in the text correctly. The -cscb flag has been added to help them by appending appropriate balancing structure:
\n perltidy -csc -cscb\n } ## end foreach my $foo (sort { $b cmp $a ... })
The default is -cscb.
" -EditorType=boolean -TrueFalse=--closing-side-comments-balanced|-ncscb -ValueDefault=1 - -[Closing Side Comment Prefix] -CallName="--closing-side-comment-prefix=" -Category=4 -Description="where string is the prefix used before the name of the block type. The default prefix, shown above, is ## end
. This string will be added to closing side comments, and it will also be used to recognize them in order to update, delete, and format them. Any comment identified as a closing side comment will be placed just a single space to the right of its closing brace.
This parameter is intended to help make the initial transition to the use of closing side comments. It causes two things to happen if a closing side comment replaces an existing, different closing side comment: first, an error message will be issued, and second, the original side comment will be placed alone on a new specially marked comment line for later attention.
The intent is to avoid clobbering existing hand-written side comments which happen to match the pattern of closing side comments. This flag should only be needed on the first run with -csc.
A closing side comment is a special comment which perltidy can automatically create and place after the closing brace of a code block. They can be useful for code maintenance and debugging. The command -csc (or --closing-side-comments) adds or updates closing side comments. For example, here is a small code snippet
\n sub message {\n if ( !defined( $_[0] ) ) {\n print("Hello, World\n");\n }\n else {\n print( $_[0], "\n" );\n }\n }
And here is the result of processing with perltidy -csc
:
\n sub message {\n if ( !defined( $_[0] ) ) {\n print("Hello, World\n");\n }\n else {\n print( $_[0], "\n" );\n }\n } ## end sub message
A closing side comment was added for sub message
in this case, but not for the if
and else
blocks, because they were below the 6 line cutoff limit for adding closing side comments. This limit may be changed with the -csci command, described below.
The command -dcsc (or --delete-closing-side-comments) reverses this process and removes these comments.
Several commands are available to modify the behavior of these two basic commands, -csc and -dcsc:
)
, ]
, or a non-block }
. Such a line receives:\n -cti = 0 no extra indentation (default)\n -cti = 1 extra indentation such that the closing token\n aligns with its opening token.\n -cti = 2 one extra indentation level if the line looks like:\n ); or ]; or };\n -cti = 3 one extra indentation level always
The flags -cti=1 and -cti=2 work well with the -lp flag (previous section).
\n # perltidy -lp -cti=1\n @month_of_year = (\n 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',\n 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'\n );
\n # perltidy -lp -cti=2\n @month_of_year = (\n 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',\n 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'\n );
These flags are merely hints to the formatter and they may not always be followed. In particular, if -lp is not being used, the indentation forcti=1 is constrained to be no more than one indentation level.
If desired, this control can be applied independently to each of theclosing container token types. In fact, -cti=n is merely anabbreviation for -cpi=n -csbi=n -cbi=n, where: -cpi or --closing-paren-indentation controls )'s,-csbi or --closing-square-bracket-indentation controls ]'s, -cbi or --closing-brace-indentation controls non-block }'s." -EditorType=numeric -Enabled=false -MaxVal=1000 -MinVal=0 -ValueDefault=0 - -[Continuation indentation] -CallName="--continuation-indentation=" -Category=2 -Description="Continuation indentation is extra indentation spaces applied whena long line is broken. The default is n=2, illustrated here:
my $level = # -ci=2 ( $max_index_to_go >= 0 ) ? $levels_to_go[0] : $last_output_level;
The same example, with n=0, is a little harder to read:
my $level = # -ci=0 ( $max_index_to_go >= 0 ) ? $levels_to_go[0] : $last_output_level;
The value given to -ci is also used by some commands when a small space is required. Examples are commands for outdenting labels, -ola, and control keywords, -okw.
When default values are not used, it is suggested that the value n given with -ci=n be no more than about one-half of the number of spaces assigned to a full indentation level on the -i=n command." -EditorType=numeric -Enabled=false -MaxVal=1000 -MinVal=0 -ValueDefault=2 - -[Cuddled else] -Category=6 -Description="
Enable the ``cuddled else'' style, in which else
and elsif
are follow immediately after the curly brace closing the previous block. The default is not to use cuddled elses, and is indicated with the flag -nce or --nocuddled-else. Here is a comparison of the alternatives:
\n if ($task) {\n yyy();\n } else { # -ce\n zzz();\n }
\n if ($task) {\n yyy();\n }\n else { # -nce (default)\n zzz();\n }
By default, perltidy first deletes all old line break locations, and then it looks for good break points to match the desired line length. Use -ndnl or --nodelete-old-newlines to force perltidy to retain all old line break points.
Setting this option allows perltidy to remove some old whitespace between characters, if necessary. This is the default. If you do not want any old whitespace removed, use -ndws or --nodelete-old-whitespace.
Setting -dsm allows perltidy to delete extra semicolons which are simply empty statements. This is the default, and may be deactivated with -ndsm or --nodelete-semicolons. (Such semicolons are not deleted, however, if they would promote a side comment to a block comment).