1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981
|
<html>
<head>
<TITLE>Artistic Style</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
</head>
<body bgcolor="#ffffff">
<h1 align="center"><font color="#0000a0" size="7"><i>Artistic Style 1.15.3<BR>
</i></font>
</h1>
<h3 align="center"><font size="5">A </font><A href="license.html"><font size="5">Free</font></A><font size="5">
, Fast and Small Automatic Formatter<br>
for </font><font color="#0000a0" size="5">C</font><font color="#000000" size="5">
,</font><font color="#0000a0" size="5"> C++ </font><font color="#000000" size="5">
,</font><font color="#0000a0" size="5"> C# <FONT color="#000000" size="5"><FONT color="#000000" size="5">
,</FONT></FONT> Java</font><font size="5"> Source Codes</font></h3>
<h3 align="center"><font size="3">by </font><a href="http://www.bigfoot.com/~davidsont">
<font size="3">Tal Davidson</font></a><font size="3">, Israel (E-mail: </font>
<A href="mailto:davidsont@bigfoot.com"><font size="3">davidsont@bigfoot.com</font></A><font size="3">)</font></h3>
<blockquote>
<h3 align="center"><font size="3">
<table height="108" cellspacing="1" cellpadding="1" width="473" border="0">
<tr>
<td><strong>Main home Page</strong></td>
<td><a href="http://astyle.sourceforge.net">http://astyle.sourceforge.net</a></td>
</tr>
<tr>
<td><strong>Project Page</strong></td>
<td><a href="http://www.sourceforge.net/projects/astyle">http://www.sourceforge.net/projects/astyle</a></td>
</tr>
</table>
</font><font size="3"></font>
</h3>
<p> </p>
</blockquote>
<p><font color="#000000" size="3">Artistic Style is a <b>reindenter and reformatter</b>
of <b>C, C++, C# and Java </b>source code.</font>
</p>
<p><font color="#000000" size="3">When indenting source code, we as programmers have a
tendency to use both <b>spaces</b> and <b>tab</b> characters to create the
wanted indentation. Moreover, some editors by default insert spaces instead of
tabs when pressing the tab key, and other editors (Emacs for example) have the
ability to "pretty up" lines by automatically setting up the white space before
the code on the line, possibly inserting spaces in a code that up to now used
only tabs for indentation</font><font size="4">.</font>
</p>
<p><font size="3">Since the <b>NUMBER</b> of space characters showed on screen for each
tab character in the source code changes between editors (until the user sets
up the number to his liking...), </font><font color="#000000" size="3"><b>one of
the standard problems facing programmers when moving from one source code
editor to another</b> is that code containing both spaces and tabs that was
up to now perfectly indented, suddently becomes a mess to look at when changing
to another editor. Even if you as a programmer take care to ONLY use spaces or
tabs, looking at other peoples source code can still be problematic.</font>
</p>
<p align="left"><font color="#000000" size="3">To address this problem I have created
Artistic Style - a series of filters, written in <b>C++</b>, that automatically
reindent & reformat C/C++/C#/Java source files. These can be used from a <b>command
line</b>, or it can be <b>incorporated as classes in another C++ program</b>.</font>
<br>
</p>
<h3>Read <A href="astyle_release_notes.html">Release Notes</A><BR>
</h3>
<p>
</p>
<h3>Read <A href="license.html">License</A></h3>
<blockquote>
<p>Artistic Style may be used and distributed under the <font size="4"><b>GNU General
Public License (GPL)</b></font>.
<BR>
</p>
</blockquote>
<h3><font size="4">New versions, Comments, Questions, Bugs and Ideas for Improvement:</font></h3>
<UL dir="ltr" style="MARGIN-RIGHT: 0px">
<LI dir="ltr">
<DIV><FONT size="3"><STRONG>Visit Astyle's project page at </STRONG></FONT><a href="http://www.sourceforge.net/projects/astyle">
<FONT size="3"><STRONG>http://www.sourceforge.net/projects/astyle</STRONG></FONT></a><FONT size="3"><STRONG> for:</STRONG></FONT></DIV>
<UL>
<LI>
Astyle sources and binaries
<LI>
<font>Mailing lists</font>
<LI>
<DIV><font>Bug tracking facilities<BR>
</font>
</DIV>
</LI>
</UL>
<LI>
<font size="3"><STRONG>Author's e-mail: Reach me directly at </STRONG></font><A href="mailto:davidsont@bigfoot.com">
<font size="3"><STRONG>davidsont@bigfoot.com</STRONG></font></A> <br>
</LI>
</UL>
<h3><font color="#000000" size="4">To use from the command line:</font></h3>
<blockquote>
<p><font color="#000000" size="3">1) Unzip astyle.zip and compile 'astyle' (read
README.txt for instructions).</font>
</p>
<p><font color="#000000" size="3">2) Either place the resulting executable file's
directory in your PATH system-variable, or move the executable to a directory
that appears in your PATH system-variable.</font>
</p>
<p><font color="#000000" size="3">3) Run it with the following syntax:</font>
</p>
<blockquote>
<p><font color="#800080" size="3" face="Times New Roman"><b><tt>astyle </tt></b></font>
<font color="#000080" size="3" face="Times New Roman"><b><tt>[options] </tt></b></font>
<font color="#ff0000" size="5" face="Times New Roman"><b><tt><</tt></b></font><font color="#800080" size="3" face="Times New Roman"><b><tt>
OriginalSourceFile </tt></b></font><font color="#ff0000" size="5" face="Times New Roman">
<b><tt>></tt></b></font><font color="#800080" size="3" face="Times New Roman"><b><tt>
BeautifiedSourceFile</tt></b></font>
</p>
<blockquote>
<p><font size="4"><b>OR</b></font></p>
</blockquote>
<p><font color="#800080" size="3" face="Times New Roman"><b><tt>astyle </tt></b></font>
<font color="#000080" size="3" face="Times New Roman"><b><tt>[options] </tt></b></font>
<font color="#800080" size="3" face="Times New Roman"><b><tt>Foo.java
Bar.javaAnotherBar.java</tt></b></font><font color="#000080" size="3" face="Times New Roman"><b><tt>
[ . . . ]</tt></b></font>
</p>
<p><font color="#000000" size="3">The </font><font color="#ff0000" size="5"><b><</b></font><font color="#000000" size="3">
and</font><font color="#ff0000" size="5"><b> ></b></font><font color="#000000" size="3">
characters are used to redirect the files into standard input and out of
standard output - don't forget them!!!</font>
<br>
</p>
<p><font color="#330000" size="3">The newly indented file </font><font color="#ff0000" size="3">
<strong>RETAINS the original file name</strong></font><font color="#330000" size="3">,
while a copy of the original file is created with a "</font><font color="#ff0000" size="3"><strong>.orig</strong></font><font color="#330000" size="3">"
appended to the original file name.</font><font size="2"> </font><font color="#330000" size="3">
Thus, after indenting </font><font color="#800080" size="3"><strong>Foo.java</strong></font><font color="#330000" size="3">
as above, the indented result will be named </font><font color="#993399" size="3">
<strong>Foo.java</strong></font><font color="#330000" size="3">, while the
original pre-indented file will be renamed to </font><font color="#993399" size="3">
<strong>Foo.java.orig</strong> </font><font color="#330000" size="3">.</font></p>
</blockquote></blockquote>
<h3><font color="#000000" size="4">Options:</font></h3>
<blockquote>
<p><font size="3">Not specifying any option will bring to C/C++/C# style indentation,
with a default of 4 spaces per indent, and NO formatting.</font><font size="2"> </font>
</p>
<p><font color="#000000" size="4"><strong>Options may be written in two different ways:</strong></font></p>
<ol>
<li>
<strong>Long options:</strong><p>These options start with '<font color="#ff0000"><strong>--</strong></font>',
and <font color="#ff0000"><strong>must be written one at a time</strong></font><br>
(e.g. <font color="#000080" size="3" face="Times New Roman"><strong>--brackets=attach</strong></font><font size="2"><b> </b></font><font color="#000080" size="3" face="Times New Roman"><strong>--pad</strong></font><font size="2"><b> </b></font><font color="#000080" size="3" face="Times New Roman"><strong>--indent=spaces=4</strong></font>
).</p>
<li>
<strong>Short Options:</strong><p>These options start with a single '<font color="#ff0000"><strong>-</strong></font>',
and <font color="#ff0000" size="3"><strong>may be appended together</strong></font><font size="4">.</font><br>
Thus, writing <font color="#000080" size="3" face="Times New Roman"><strong>-bps4</strong></font>
is the same as writing <font color="#000080" size="4" face="Times New Roman"><strong>-</strong></font><font color="#000080" size="3" face="Times New Roman"><strong>b</strong></font><font size="2"><b> -</b></font><font color="#000080" size="3" face="Times New Roman"><strong>p</strong></font><font size="2"><b> -</b></font><font color="#000080" size="3" face="Times New Roman"><strong>s4</strong></font><font color="#000080"><strong>
</strong></font><font color="#400040" size="2" face="Courier New">.<br>
</font>
</p>
</li>
</ol>
<p><font color="#000000" size="4"><strong>A </strong></font><font color="#ff0000" size="4">
<strong>default options file</strong></font><font color="#000000" size="4"><strong>
may be used to define default options:</strong></font></p>
<ul>
<li>
<font color="#000000" size="3">Artistic Style looks for the default options file in
the following order:
<br>
1. The value of the the system variable </font><font color="#000080" size="3"><strong>
ARTISTIC_STYLE_OPTIONS</strong></font><font color="#000000" size="3"> if
one exists.<br>
2. The file named <strong>.astylerc</strong> in the directory pointed to by the </font>
<font color="#000080" size="3"><strong>HOME</strong></font><font color="#000000" size="3">
system variable (i.e. </font><font color="#000080" size="3"><strong>$PATH</strong></font><font color="#000000" size="3"><strong>/.astylerc</strong>)<br>
3. The file named <strong>.astylerc</strong> in the directory pointed to by the </font>
<font color="#000080" size="3"><strong>HOMEPATH</strong></font><font color="#000000" size="3">
system variable (i.e. </font><font color="#000080" size="3"><strong>%HOMEPATH%</strong></font><font color="#000000" size="3"><strong>\.astylerc</strong>)</font></li>
</ul>
<ul>
<li>
<font color="#000000" size="3">Options may be set apart by new-lines, tabs or
spaces.</font>
<li>
<font color="#000000" size="3">Long options <strong>may be written in the options file
without the preceding '--'</strong>.</font>
<li>
<font color="#000000" size="3">Lines within the options file that begin with '</font><font color="#ff0000" size="3"><strong>#</strong></font><font color="#000000" size="3">'
are considered <strong>line-comments</strong>.<br>
</font>
<li>
<font color="#000000" size="3">Example contents of a default options file:</font><blockquote>
<p><font color="#ff0000" size="3" face="Times New Roman"><tt># default parsing is of java
files</tt></font><font color="#800080" size="3" face="Times New Roman"><tt><br>
mode=java<br>
</tt></font><font color="#ff0000" size="3" face="Times New Roman"><tt># brackets
should be attached to pre-bracket lines</tt></font><font color="#800080" size="3" face="Times New Roman"><tt><br>
brackets=attach<br>
</tt></font><font color="#ff0000" size="3" face="Times New Roman"><tt># set 6
spaces per indent</tt></font><font color="#800080" size="3" face="Times New Roman"><tt><br>indent=spaces=6</br>
</TT></font><font color="#ff0000" size="3" face="Times New Roman"><tt># indent
switch blocks</tt></font><font color="#800080" size="3" face="Times New Roman"><tt><br>
indent-switches</tt></font><font color="#000000" size="3"><br>
</font><font color="#ff0000" size="3" face="Times New Roman"><tt># suffix of original
files should be .pre</tt></font><font color="#000000" size="3" face="Times New Roman"><tt><br>
</tt></font><font color="#800080" size="3" face="Times New Roman"><tt>suffix=.pre<br>
</tt></font>
</p>
</blockquote>
</li>
</ul>
<p><font color="#000000" size="4">The following </font><font color="#000099" size="4"><b>predefined
style</b></font><font color="#000000" size="4"><b> options</b> are
currently avaiable:</font></p>
<blockquote>
<p><font color="#000080" size="3"><strong>--style=ansi</strong></font><font color="#000000" size="3"><br>
</font>ANSI style formatting/indenting.</p>
<blockquote>
<p><font color="#800080" size="3"><b><tt>namespace foospace<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
int Foo()<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
if (isBar)<br>
</tt></b></font><font color="#ff0000" size="3">
<b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
bar();<br>
return 1;<br>
</tt></b></font><font color="#ff0000" size="3">
<b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
else<br>
return 0;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote>
<p><font color="#000080"><strong>--style=kr</strong></font><br>
Kernighan&Ritchie style formatting/indenting.</p>
<blockquote>
<p><font color="#800080" size="3"><b><tt>namespace foospace</tt></b></font><font color="#ff0000" size="3"><b><tt>
{</tt></b></font><font color="#800080" size="3"><b><tt><br>
int Foo()</tt></b></font><font color="#ff0000" size="3"><b><tt>
{</tt></b></font><font color="#800080" size="3"><b><tt><br>
if (isBar)</tt></b></font><font color="#ff0000" size="3"><b><tt>
{</tt></b></font><font color="#800080" size="3"><b><tt><br>
bar();<br>
return 1;<br>
</tt></b></font><font color="#ff0000" size="3">
<b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt> else<br>
return 0;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote>
<p><font color="#000080"><strong>--style=linux</strong></font><br>
Linux style formatting/indenting (brackets are broken apart from class/function
declarations, but connected to command lines, and indents are set to 8 spaces).</p>
<blockquote>
<p><font color="#800080" size="3"><b><tt>namespace foospace<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
int Foo()<br>
</tt></b></font><font color="#ff0000" size="3">
<b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
if
(isBar)</tt></b></font><font color="#ff0000" size="3"><b><tt> {</tt></b></font><font color="#800080" size="3"><b><tt><br>
bar();<br>
return 1;<br>
</tt>
</b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt>
else </tt></b></font><font color="#800080" size="3"><b><tt>
<br>
return 0;<br>
</tt></b></font><font color="#ff0000" size="3">
<b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote>
<p><font color="#000080"><strong>--style=gnu</strong></font><br>
GNU style formatting/indenting.</p>
<blockquote>
<p><font color="#800080" size="3"><b><tt>namespace foospace<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
int Foo()<br>
</tt></b></font><font color="#ff0000" size="3">
<b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
if (isBar)<br>
</tt></b></font><font color="#ff0000" size="3">
<b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
bar();<br>
return 1;<br>
</tt></b></font><font color="#ff0000" size="3">
<b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
else<br>
return 0;<br>
</tt></b></font><font color="#ff0000" size="3">
<b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote>
<p><font color="#000080"><strong>--style=java</strong></font><br>
Java style formatting/indenting.</p>
<blockquote>
<p><font color="#800080" size="3"><b><tt>class foospace</tt></b></font><font color="#ff0000" size="3"><b><tt>
{</tt></b></font><font color="#800080" size="3"><b><tt><br>
int Foo()</tt></b></font><font color="#ff0000" size="3"><b><tt>
{</tt></b></font><font color="#800080" size="3"><b><tt><br>
if (isBar)</tt></b></font><font color="#ff0000" size="3"><b><tt>
{</tt></b></font><font color="#800080" size="3"><b><tt><br>
bar();<br>
return 1;<br>
</tt></b></font><font color="#ff0000" size="3">
<b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt> else<br>
return 0;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote></blockquote>
<p><font color="#000000" size="4">The following </font><font color="#000099" size="4"><b>indentation</b></font><font color="#000000" size="4"><b>
options</b> are currently available:</font></p>
</blockquote><blockquote> <blockquote>
<p><font color="#000080" size="3"><b>-c</b></font><font color="#000080" size="4"><b> </b>
</font><font size="3">OR </font><font color="#000080" size="3"><strong>--mode=c</strong></font><font size="3"><br>
Indent a C, C++ or C# file.</font><font size="2"> </font>
</p>
<p><font color="#000080" size="3"><b>-j</b></font><font size="3"> OR </font><font color="#000080" size="3">
<strong>--mode=java</strong></font><font size="3"><br>
Indent a Java file.</font><font size="2"> </font>
</p>
<p><font color="#000080" size="4"><b>-s</b></font><font color="#ff0000" size="4"><b>#</b></font><font size="3">
OR </font><font color="#000080" size="3"><strong>--indent=spaces=</strong></font><font color="#ff0000" size="3"><strong>#</strong></font><font size="3"><br>
Indent using </font><font color="#ff0000" size="3">#</font><font size="3"> spaces
per indent (e.g. </font><font size="4"><b>-s</b></font><font color="#ff0000" size="3"><b>4</b></font><font size="3">
OR <strong>--indent=spaces=</strong></font><font color="#ff0000" size="3"><strong>4</strong></font><font size="3">).</font>
</p>
<p><font color="#000080" size="4"><strong>-t </strong><font color="#000000" size="3">OR</font><strong>
-t<font color="red">#</font></strong></font><font size="3"> OR </font><font color="#000080" size="3">
<strong>--indent=tab=<font color="red">#</font></strong></font><font size="3"><br>
Indent using tab characters.</font> Treat each tab as <font color="red">#</font>
spaces. If no '#' is set, treats tabs as 4 spaces.</p>
<p><font color="#000080" size="4"><strong>-T<font color="red">#</font></strong><font size="3"><font color="#000000">
OR </font><font color="#000080"><strong>--force-indent=tab=<font color="red">#</font></strong></font><br>
<font color="#000000">Indent using tab characters.</font><font color="#000000"> Treat
each tab as </font><font color="red">#</font><font color="#000000"> spaces.
Uses tabs as indents in areas '--indent=tab' prefers to use spaces, such as
inside multi-line statements.</font></font></font></p>
<p><font color="#000080" size="4"><strong>-C</strong></font><font size="3"> OR</font><font color="#000080" size="4"><b>
--</b></font><font color="#000080" size="3"><b>indent-classes</b></font><font size="2"><br>
</font><font size="3">Indent 'class' blocks so that the headers 'public:',
'protected:' and 'private:' are indented in the class block.</font></p>
<blockquote>
<p><font color="#330000" size="3">The default:</font></p>
</blockquote><blockquote>
<p><font color="#800080" size="3"><b><tt>class Foo<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
public:<br>
Foo();<br>
virtual ~Foo();<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt>;</tt></b></font></p>
<p><font color="#330000" size="3">becomes:</font>
</p>
<p><font color="#800080" size="3"><b><tt>class Foo<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
public:<br>
Foo();<br>
virtual ~Foo();<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt>;</tt></b></font></p>
</blockquote>
<p><font color="#000080" size="4"><b>-S</b></font><font size="3"> OR</font><font color="#000080" size="4"><b>
--</b></font><font color="#000080" size="3"><b>indent-switches</b></font><font size="2"><br>
</font><font size="3">Indent 'switch' blocks so that the 'case XXX:' headers are
indented in the class block.</font></p>
<blockquote>
<p><font color="#330000" size="3">The default:</font></p>
</blockquote><blockquote>
<p><font color="#800080" size="3"><b><tt>switch (foo)<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
case 1:<br>
a += 2;<br>
break;<br>
<br>
default:<br>
a += 2;<br>
break;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
<p><font color="#330000" size="3">becomes:</font>
</p>
<p><font color="#800080" size="3"><b><tt>switch (foo)<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
case 1:<br>
a += 2;<br>
break;<br>
<br>
default:<br>
a += 2;<br>
break;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote>
<p><font color="#000080" size="4"><b>-K</b></font><font size="3"> OR</font><font color="#000080" size="4"><b>
--</b></font><font color="#000080" size="3"><b>indent-cases</b></font><font size="2"><br>
</font><font size="3">Indent 'case XXX:' lines so that they are flush with the
comand lines under them.</font></p>
<blockquote>
<p><font color="#330000" size="3">The default:</font></p>
</blockquote><blockquote>
<p><font color="#800080" size="3"><b><tt>switch (foo)<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
case 1:<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{<br>
</tt></b></font><font color="#800080" size="3"><b><tt>
a += 2;<br>
break;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}<br>
</tt></b></font><font color="#800080" size="3"><b><tt>
<br>
default:<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{<br>
</tt></b></font><font color="#800080" size="3"><b><tt>
a += 2;<br>
break;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
<p><font color="#330000" size="3">becomes:</font>
</p>
<p><font color="#800080" size="3"><b><tt>switch (foo)<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
case 1:<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{<br>
</tt></b></font><font color="#800080" size="3"><b><tt>
a += 2;<br>
break;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}<br>
</tt></b></font><font color="#800080" size="3"><b><tt>
<br>
default:<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{<br>
</tt></b></font><font color="#800080" size="3"><b><tt>
a += 2;<br>
break;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote>
<p><font color="#000080" size="4"><b>-B</b></font><font size="3"> OR</font><font color="#000080" size="4"><b>
--</b></font><font color="#000080" size="3"><b>indent-brackets</b></font><font size="3"><br>
Add extra indentation to brackets.</font>
</p>
<blockquote>
<p><font color="#330000" size="3">The default:</font></p>
<p><font color="#993399" size="3"><b><tt>if (isFoo)</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>{</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#993399" size="3">
<b><tt>bar();</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>}</tt></b></font>
<br>
<font color="#993399" size="3"><b><tt>else</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>{</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#993399" size="3">
<b><tt>anotherBar();</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
<p><font color="#330000" size="3">becomes:</font>
</p>
<p><font color="#993399" size="3"><b><tt>if (isFoo)</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#ff0000" size="3">
<b><tt>{</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#993399" size="3">
<b><tt>bar();</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#ff0000" size="3">
<b><tt>}</tt></b></font>
<br>
<font color="#993399" size="3"><b><tt>else</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#ff0000" size="3">
<b><tt>{</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#993399" size="3">
<b><tt>anotherBar();</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#ff0000" size="3">
<b><tt>}</tt></b></font></p>
</blockquote>
<p><font color="#000080" size="4"><b>-G</b></font><font size="3"> OR</font><font color="#000080" size="4"><b>
--</b></font><font color="#000080" size="3"><b>indent-blocks</b></font><font size="3"><br>
Add extra indentation to entire blocks.</font>
</p>
<blockquote>
<p><font color="#330000" size="3">The default:</font></p>
<p><font color="#993399" size="3"><b><tt>if (isFoo)</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>{</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#993399" size="3">
<b><tt>bar();</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>}</tt></b></font>
<br>
<font color="#993399" size="3"><b><tt>else</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#993399" size="3">
<b><tt>anotherBar();</tt></b></font>
</p>
<p>becomes:</p>
<p><font color="#993399" size="3"><b><tt>if (isFoo)</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#ff0000" size="3">
<b><tt>{</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#993399" size="3">
<b><tt>bar();</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#ff0000" size="3">
<b><tt>}</tt></b></font>
<br>
<font color="#993399" size="3"><b><tt>else</tt></b></font> <font face="Courier New" size="3">
<b><tt>
<br>
</tt></b></font><font size="3"><b><tt> </tt></b></font>
<font color="#993399" size="3"><b><tt>anotherBar();</tt></b></font>
</p>
</blockquote>
<p><font color="#000080" size="4"><b>-N</b></font><font size="3"> OR</font><font color="#000080" size="4"><b>
--</b></font><font color="#000080" size="3"><b>indent-namespaces</b></font><font size="2"><br>
</font><font size="3">Add extra indentation to namespaces.</font>
</p>
<blockquote>
<p><font color="#330000" size="3">The default:</font></p>
</blockquote><blockquote>
<p><font color="#800080" size="3"><b><tt>namespace foospace<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
class Foo<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
public:<br>
Foo();<br>
virtual ~Foo();<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt>;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
<p><font color="#330000" size="3">becomes:</font>
</p>
<p><font color="#800080" size="3"><b><tt>namespace foospace<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
class Foo<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
public:<br>
Foo();<br>
virtual ~Foo();<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt>;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote>
<p> </p>
<p><font color="#000080" size="4"><b>-L</b></font><font size="3"> OR</font><font color="#000080" size="4"><b>
--</b></font><font color="#000080" size="3"><b>indent-labels</b></font><font size="2"><br>
</font><font size="3">Add extra indentation to labels so they they appear 1 indent
less than the current indentation, rather than being flushed to the left (the
default).</font>
</p>
<blockquote>
<p><font color="#330000" size="3">The default:</font></p>
</blockquote><blockquote>
<p><font color="#800080" size="3"><b><tt>int foospace()<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
while (isFoo)<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{<br>
</tt></b></font><font color="#800080" size="3"><b><tt>
...</tt></b></font><font color="#ff0000" size="3"><b><tt><br>
</tt></b></font><font color="#800080" size="3"><b><tt>
goto error;<br>
<br>
error:<br>
...<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
<p><font color="#330000" size="3">becomes:</font>
</p>
<p><font color="#800080" size="3"><b><tt>int foospace()<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
while (isFoo)<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{<br>
</tt></b></font><font color="#800080" size="3"><b><tt>
...</tt></b></font><font color="#ff0000" size="3"><b><tt><br>
</tt></b></font><font color="#800080" size="3"><b><tt>
goto error;<br>
<br>
error:<br>
...<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote>
<p><font color="#000080" size="3"><b>-M</b></font><font color="#ff0000" size="4"><b>#</b></font><font size="3">
OR </font><font color="#000080" size="3"><b>--max-instatement-indent=</b></font><font color="#ff0000" size="3"><b>#</b></font><font color="#000080" size="4"><b>
<br>
</b></font>Indent a maximal <font color="#ff0000">#</font> spaces in a
continuous statement, relatively to the previous line (e.g. <strong>--max-instatement-indent=</strong><font color="#ff0000" size="3"><strong>40</strong></font>)
</p>
<p><font color="#000080" size="4"><b>-m</b></font><font color="#ff0000" size="4"><b>#</b></font><font size="3">
OR</font><b> <font color="#000080" size="4">--</font><font color="#000080" size="3">min-conditional</font></b><font color="#000080" size="3"><b>-indent=</b></font><font color="#ff0000" size="3"><b>#</b></font><font size="2"><br>
</font>Set the minimal indent that is added when a header is built of
multiple-lines. This indent makes helps to easily separate the header from the
command statements that follow. The default setting for this option is <font color="#ff0000">
twice the current indent</font>. (e.g. <strong>--min-conditional-indent=<font color="#ff0000">8</font></strong>)
</p>
<blockquote>
<p><font color="#330000">The default:</font></p>
</blockquote><blockquote>
<p><font color="#800080"><b><tt>// default setting makes this non-bracketed code clear<br>
if (a < b<br>
|| c > d)<br>
foo++;<br>
<br>
// but creates an exaggerated indent in this bracketed code<br>
if (a < b<br>
|| c > d)<br>
</tt></b></font><font color="#ff0000"><b><tt>{</tt></b></font><font color="#800080"><b><tt><br>
foo++;<br>
</tt></b></font><font color="#ff0000"><b><tt>}</tt></b></font></p>
<p><font color="#330000">When setting <b>--min-conditional=0</b> :</font></p>
<p><font color="#800080"><b><tt>// setting makes this non-bracketed code less clear<br>
if (a < b<br>
|| c > d)<br>
foo++;<br>
<br>
// but makes this bracketed code prettier<br>
if (a < b<br>
|| c > d)<br>
</tt></b></font><font color="#ff0000"><b><tt>{</tt></b></font><font color="#800080"><b><tt><br>
foo++;<br>
</tt></b></font><font color="#ff0000"><b><tt>}</tt></b></font></p>
</blockquote>
<p><font> <FONT color="#000080"><FONT size="4"><STRONG><FONT size="3">--indent-preprocessor</FONT><BR>
</STRONG><FONT color="#000000" size="3">Indent multi-line preprocessor
definitions. should be used with <STRONG>--convert-tabs</STRONG> for proper
results. Does a pretty good job, but can not perform miracles in obfuscated
preprocessor definitions.</FONT></FONT></FONT></font>
</p>
<p><STRONG><FONT color="#000080">--convert-tabs<BR>
</FONT></STRONG><FONT color="#000000" size="3">Converts tabs into single
spaces.</FONT>
</p>
<p><font color="#000080" size="4"><STRONG>-E</STRONG></font><font size="3"> OR</font><b>
<font color="#000080" size="4">--</font><font color="#000080" size="3">fill-empty-lines</font></b><font size="2"><br>
</font><font size="3">Fill empty lines with the white space of their previous
lines.</font>
</p>
</blockquote>
<h3><font color="#000000" size="4">The following </font><font color="#000099" size="4">formatting</font><font color="#000000" size="4"><b>
options</b> are currently available:</font></h3>
<blockquote>
<p><font color="#000080" size="3"><b>-b</b></font><font size="3"> OR </font><font color="#000080" size="3">
<strong>--brackets=break</strong></font><font size="3"><br>
Break brackets from their pre-block statements ( i.e. ANSI C, C++ style
).</font>
</p>
<blockquote>
<p><font color="#993399" size="3"><b><tt>if (isFoo)</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>{</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#993399" size="3">
<b><tt>bar();</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>}</tt></b></font>
<br>
<font color="#993399" size="3"><b><tt>else</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>{</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#993399" size="3">
<b><tt>anotherBar();</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote>
<p><font color="#000080" size="3"><b>-a</b></font><font size="3"> OR </font><font color="#000080" size="3">
<strong>--brackets=attach</strong></font><font size="3"><br>
Attach brackets to their pre-block statements ( i.e. Java , K&R style ).</font>
</p>
<blockquote>
<p><font color="#993399" size="3"><b><tt>if (isFoo)</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#993399" size="3"><b><tt>
bar();</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>}</tt></b></font><font size="3"><b><tt> </tt></b>
</font><font color="#993399" size="3"><b><tt>else </tt></b></font><font color="#ff0000" size="3">
<b><tt>{</tt></b></font>
<br>
<font size="3"><b><tt> </tt></b></font><font color="#993399" size="3"><b><tt>
anotherBar();</tt></b></font>
<br>
<font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote>
<p><font color="#000080" size="3"><b>-l</b></font><font size="3"> OR </font><font color="#000080" size="3">
<strong>--brackets=linux</strong></font><font size="3"><br>
</font>Break brackets from class/function declarations, but attach brackets to <font size="3">
pre-block </font>command statements.</p>
<blockquote>
<p><font color="#800080" size="3"><b><tt>namespace foospace<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
int Foo()<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>{</tt></b></font><font color="#800080" size="3"><b><tt><br>
if (isBar)</tt></b></font><font color="#ff0000" size="3"><b><tt>
{</tt></b></font><font color="#800080" size="3"><b><tt><br>
bar();<br>
return 1;<br>
</tt></b></font><font color="#ff0000" size="3">
<b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt> else<br>
return 0;<br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font><font color="#800080" size="3"><b><tt><br>
</tt></b></font><font color="#ff0000" size="3"><b><tt>}</tt></b></font></p>
</blockquote><font color="#000080" size="3">
<P><FONT><FONT color="navy" size="3"><STRONG>--brackets=break-closing-headers</STRONG></FONT></FONT><FONT size="3"><BR>
<FONT color="black">When used with either <STRONG>'--brackets=attach'</STRONG> or <STRONG>
'--brackets= linux'</STRONG> , breaks closing headers (e.g. 'else',
'catch', ...) from their immediately preceding closing brackets.).</FONT></FONT>
</P>
<BLOCKQUOTE><FONT color="#993399" size="3"><TT>
<P><FONT color="#993399" size="3"><TT><STRONG>if (isFoo)<FONT color="#ff0000" size="3"><TT>{</TT></FONT></STRONG><STRONG><FONT color="#000080"><FONT face="Times New Roman">
<BR>
</FONT><FONT size="3"><TT> </TT></FONT></FONT><FONT color="#993399" size="3"><TT>
bar();</TT></FONT></STRONG><STRONG><FONT face="Times New Roman" color="#000080">
<BR>
</FONT><FONT color="#ff0000" size="3"><TT>}</TT></FONT><FONT color="#000080" size="3"><TT></TT></FONT><FONT color="#993399" size="3"><TT>else
</TT></FONT><FONT color="#ff0000" size="3"><TT>{</TT></FONT></STRONG><STRONG><FONT color="#000080"><FONT face="Times New Roman">
<BR>
</FONT><FONT size="3"><TT> </TT></FONT></FONT><FONT color="#993399" size="3"><TT>
anotherBar();</TT></FONT></STRONG><STRONG><FONT face="Times New Roman" color="#000080">
<BR>
</FONT><FONT color="#ff0000" size="3"><TT>}</TT></FONT></STRONG></TT></FONT></P>
<FONT color="#ff0000" size="3"><TT>
<p><STRONG><font face="Times New Roman" color="#330000" size="3">becomes:</font> </STRONG>
</p>
<p>
</TT></FONT><STRONG>if (isFoo) </STRONG></TT></FONT><STRONG><FONT color="#ff0000" size="3">
<TT>{</TT></FONT>
<BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT>
bar();</TT></FONT>
<BR>
<FONT color="#ff0000" size="3"><TT>}</TT></FONT></STRONG><STRONG><FONT size="3"><TT>
<BR>
</TT></FONT><FONT color="#993399" size="3"><TT>else </TT></FONT><FONT color="#ff0000" size="3">
<TT>{</TT></FONT>
<BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT> anotherBar();</TT></FONT>
<BR>
<FONT color="#ff0000" size="3"><TT>}</TT></FONT></STRONG></P></BLOCKQUOTE>
<P><FONT color="#ff0000" size="3"><TT></TT></FONT> </P>
<P><FONT size="+0"><FONT color="navy" size="3"><STRONG>--break-blocks</STRONG></FONT></FONT><FONT size="3"><BR>
<FONT color="#000000"><STRONG>Pad empty lines around header blocks (e.g. 'if',
'while'...).</STRONG> </FONT></FONT>
</P>
<BLOCKQUOTE>
<P><STRONG><FONT color="#993399" size="3"><TT>isFoo = true;<BR>
</TT></FONT><FONT color="#993399" size="3"><TT>if (isFoo) <FONT color="#ff0000">{</FONT>
</TT></FONT>
<BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT>
bar();</TT></FONT>
<BR>
<FONT color="#993399" size="3"><TT><FONT color="#ff0000">} </FONT>else</TT></FONT> <FONT face="Courier New" color="#ff0000">{</FONT><BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT> anotherBar();</TT></FONT>
</STRONG><FONT color="#ff0000" size="3"><TT>
<BR>
<FONT color="purple"><FONT color="#993399"><STRONG><FONT color="#ff0000">}<BR>
</FONT>isBar = false;</STRONG></FONT></FONT></TT></FONT></P>
<FONT color="#ff0000" size="3"><TT>
<p><STRONG><font face="Times New Roman" color="#330000" size="3">becomes:</font> </STRONG>
</p>
<p><font color="#993399" size="3"><tt><STRONG>isFoo = true;<BR>
<BR>
<FONT color="#993399" size="3"><TT>if (isFoo) <FONT color="#ff0000">{</FONT> </TT></FONT>
<BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT>
bar();</TT></FONT>
<BR>
<FONT color="#993399" size="3"><TT><FONT color="#ff0000">} </FONT>else</TT></FONT> <FONT color="#ff0000">{</FONT><BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT> anotherBar();</TT></FONT>
<BR>
</STRONG><STRONG><FONT color="#ff0000" size="3"><TT>}<BR>
<BR>
<FONT color="purple"><FONT color="#993399">isBar = false;</FONT></FONT></TT></FONT>
</STRONG></tt></font>
</p>
</TT></FONT></BLOCKQUOTE>
<P><FONT size="+0"><FONT color="navy" size="3"><STRONG>--break-blocks=all</STRONG></FONT></FONT><FONT size="3"><BR>
<FONT color="#000000"><STRONG>Pad empty lines around header blocks (e.g. 'if',
'while'...). Treat closing header blocks (e.g. 'else', 'catch') as stand-alone
blocks.</STRONG> </FONT></FONT>
</P>
<BLOCKQUOTE>
<P><STRONG><FONT color="#993399" size="3"><TT>isFoo = true;<BR>
</TT></FONT><FONT color="#993399" size="3"><TT>if (isFoo) <FONT color="#ff0000">{</FONT>
</TT></FONT>
<BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT>
bar();</TT></FONT>
<BR>
<FONT color="#993399" size="3"><TT><FONT color="#ff0000">} </FONT>else</TT></FONT> <FONT face="Courier New" color="#ff0000">{</FONT><BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT> anotherBar();</TT></FONT>
</STRONG><FONT color="#ff0000" size="3"><TT>
<BR>
<FONT color="purple"><FONT color="#993399"><STRONG><FONT color="#ff0000">}<BR>
</FONT>isBar = false;</STRONG></FONT></FONT></TT></FONT></P>
<FONT color="#ff0000" size="3"><TT>
<p><STRONG><font face="Times New Roman" color="#330000" size="3">becomes:</font> </STRONG>
</p>
<p><font color="#993399" size="3"><tt><STRONG>isFoo = true;<BR>
<BR>
<FONT color="#993399" size="3"><TT>if (isFoo) <FONT color="#ff0000">{</FONT> </TT></FONT>
<BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT>
bar();</TT></FONT>
<BR>
</STRONG><FONT color="#993399" size="3"><TT>
<BR>
<STRONG><FONT color="#ff0000">} </FONT>else</STRONG></TT></FONT><STRONG> <FONT color="#ff0000">{</FONT><BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT> anotherBar();</TT></FONT>
<BR>
</STRONG><STRONG><FONT color="#ff0000" size="3"><TT>}<BR>
<BR>
<FONT color="purple"><FONT color="#993399">isBar = false;</FONT></FONT></TT></FONT>
</STRONG></tt></font>
</p>
</TT></FONT></BLOCKQUOTE>
<P><FONT size="+0"><FONT color="navy" size="3"><STRONG>--break-elseifs</STRONG></FONT></FONT><FONT size="3"><BR>
<FONT color="#000000"><STRONG>Break 'else if()' header combinations into seperate
lines.</STRONG> </FONT></FONT>
</P>
<BLOCKQUOTE>
<P><STRONG><FONT color="#993399" size="3"><TT>if (isFoo) <FONT color="#ff0000">{</FONT> </TT>
</FONT>
<BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT>
bar();</TT></FONT>
<BR>
<FONT color="#993399" size="3"><TT><FONT color="#ff0000">} </FONT>else if (isBar())</TT></FONT><FONT face="Courier New" color="#ff0000">{</FONT><BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT> anotherBar();</TT></FONT>
</STRONG><FONT color="#ff0000" size="3"><TT>
<BR>
<FONT color="purple"><FONT color="#993399"><FONT color="#ff0000"><STRONG>}</STRONG></FONT></FONT></FONT></TT></FONT></P>
<FONT color="#ff0000" size="3"><TT>
<p><STRONG><font face="Times New Roman" color="#330000" size="3">becomes:</font> </STRONG>
</p>
<p><font color="#993399" size="3"><tt><STRONG>if (isFoo) <FONT color="#ff0000">{</FONT><BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT>
bar();</TT></FONT>
<BR>
</STRONG><STRONG><FONT color="#993399" size="3"><TT><FONT color="#ff0000">} </FONT>else
<BR>
if (isBar())</TT></FONT><FONT face="Courier New" color="#ff0000">{</FONT><BR>
<FONT size="3"><TT> </TT></FONT><FONT color="#993399" size="3"><TT>
anotherBar();</TT></FONT></STRONG><FONT color="#ff0000" size="3"><TT><BR>
<FONT color="purple"><FONT color="#993399"><FONT color="#ff0000"><STRONG> }</STRONG>
</FONT></FONT></FONT></TT></FONT><STRONG></STRONG></tt></font>
</p>
</TT></FONT></BLOCKQUOTE>
<P><STRONG>-p</STRONG>
</font><STRONG><font color="#000000" size="3">OR</font><font color="#000080" size="3"> --pad=oper</font></STRONG><font size="2"><br>
</font><STRONG><font size="3">Insert space padding around operators only.</font> </STRONG>
</P> <blockquote>
<P><STRONG><font color="#993399" size="3"><tt>if (isFoo)</tt></font>
<br>
<font color="#993399" size="3"><tt> a = bar((b-c)*a,*d--);</tt></font>
</STRONG>
</P>
<p><STRONG><font color="#330000" size="3">becomes:</font> </STRONG>
</p>
<p><STRONG><font color="#993399" size="3"><tt>if (isFoo)</tt></font>
<br>
<font color="#993399" size="3"><tt> a = bar((b - c) * a, *d--);</tt></font></STRONG></p>
</blockquote>
<p> </p>
<p><font color="#000080" size="3"><STRONG>--pad=paren</STRONG></font><font size="2"><br>
</font><STRONG><font size="3">Insert space padding around parenthesies only.</font> </STRONG>
</p>
<blockquote>
<p><STRONG><font color="#993399" size="3"><tt>if (isFoo)</tt></font>
<br>
<font color="#993399" size="3"><tt> a = bar((b-c)*a,*d--);</tt></font>
</STRONG>
</p>
<p><STRONG><font color="#330000" size="3">becomes:</font> </STRONG>
</p>
<p><STRONG><font color="#993399" size="3"><tt>if ( isFoo )</tt></font>
<br>
<font color="#993399" size="3"><tt> a = bar( ( b-c )*a, *d-- );</tt></font></STRONG></p>
</blockquote>
<p> </p>
<p><STRONG><font color="#000080" size="3">-P</font><font color="#000000" size="3">OR</font><font color="#000080" size="3">
--pad=all</font></STRONG><font size="2"><br>
</font><STRONG><font size="3">Insert space padding around operators AND parenthesies.</font>
</STRONG>
</p>
<blockquote>
<p><STRONG><font color="#993399" size="3"><tt>if (isFoo)</tt></font>
<br>
<font color="#993399" size="3"><tt> a = bar((b-c)*a,*d--);</tt></font>
</STRONG>
</p>
<p><STRONG><font color="#330000" size="3">becomes:</font> </STRONG>
</p>
<p><STRONG><font color="#993399" size="3"><tt>if ( isFoo )</tt></font>
<br>
<font color="#993399" size="3"><tt> a = bar( ( b - c ) * a, *d-- );</tt></font></STRONG></p>
</blockquote>
<p><STRONG><font color="#000080" size="4">-o</font><font size="3"> OR</font><font color="#000080" size="4"></font><font color="#000099">--one-line=keep-statements</font></STRONG><font size="2"><br>
</font><STRONG><font size="3">Don't break complex statements and multiple statements
residing in a single line.</font> </STRONG>
</p>
<blockquote>
<p><STRONG><font color="#993399" size="3"><tt>if (isFoo)<br>
</tt></font><font color="#ff0000" size="3"><tt>{</tt></font></STRONG><STRONG><font color="#993399" size="3"><tt>
<br>
isFoo = false; cout << isFoo << endl;<br>
</tt></font><font color="#ff0000" size="3"><tt>}</tt></font></STRONG></p>
<p><font size="3"><STRONG>remains as is.</STRONG> </font>
</p>
<P><FONT color="#993399" size="3"><TT><STRONG>if (isFoo) DoBar(); </STRONG></TT></FONT>
</P>
<P><FONT size="3"><STRONG>remains as is.</STRONG> </FONT>
</P>
</blockquote>
<p><STRONG><font color="#000080" size="4">-O</font><font size="3"> OR</font><font color="#000080" size="4"></font><font color="#000099">--one-line=keep-blocks</font></STRONG><font size="2"><br>
</font><STRONG><font size="3">Don't break one-line blocks.</font> </STRONG>
</p>
<blockquote>
<p><STRONG><font color="#993399" size="3"><tt>if (isFoo)<br>
</tt></font><font color="#ff0000" size="3"><tt>{</tt></font><font color="#993399" size="3"><tt>
isFoo = false; cout << isFoo << endl; </tt></font><font color="#ff0000" size="3">
<tt>}</tt></font></STRONG></p>
<p><font size="3"><STRONG>remains as is.</STRONG> </font>
</p>
</blockquote></blockquote>
<h3><font color="#000000" size="4">The following </font><font color="#000099" size="4">other</font><font color="#000000" size="4">
options are currently available:</font></h3>
<blockquote>
<p><STRONG><font color="#000080">--suffix=</font><font color="#ff0000">####</font><br>
Append the suffix <font color="#ff0000">####</font> instead of '.orig' to
original filename. (e.g. --suffix=<font color="#ff0000">.prev</font>) </STRONG>
</p>
<p><STRONG><font color="#000080" size="4">-X</font><font size="3"> OR </font><font color="#000080">
--errors-to-standard-output</font><br>
Print errors and help information to standard-output rather than to
standard-error.<br>
This option should be helpful for systems/shells that do not have this option,
such as in Windows-95.</STRONG>
</p>
<p><STRONG><font color="#000080">-v</font> OR <font color="#000080">--version</font><br>
Print version number.</STRONG>
</p>
<p><STRONG><font color="#000080">-h</font> OR <font color="#000080">-?</font> OR <font color="#000080">
--help</font><br>
Print a help message and quit.<br>
</STRONG></p>
</blockquote></blockquote>
<h3>Acknowledgements:</h3>
<blockquote>
<p><STRONG>-Special thanks to:<font color="#000099"> Jim Watson, Fred Shwartz, W. Nathaniel
Mills III, Danny Deschenes, Andre Houde, Richard Bullington, Paul-Michael
Agapow, Daryn Adler</font> for their patches and contributions to Artistic
Style !!! </STRONG>
</p>
<p><STRONG>-Special thanks to<font color="#000099"> Richard Bullington and</font></STRONG><a href="http://www.microstate.com"><font color="#000099"><STRONG>MicroState</STRONG></font></a><STRONG><font>
for giving Artistic Style its original </font><font color="black">mailing-list</font>
!!! </STRONG>
</p>
<p><STRONG>-Special thanks to<font color="#000099"><a href="http://www.sourceforge.net">SourceForge</font></STRONG></A><STRONG>
for giving Artistic Style its<font color="#ff0000">home</font> !!! </STRONG>
</p>
<p><STRONG>-Special thanks to<font color="#000099"> Paul Michael Agapow</font> for
creating a GUI interface for Artistic Style on the Macintosh. </STRONG>
</p>
<p><STRONG>-Thanks to all the dedicated beta-testers and bug notifiers !!! </STRONG>
</p>
<p> </p>
</blockquote>
<h1 align="center"><font color="#0000a0">ENJOY !!!</font></h1>
</body>
</html>
|