Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Indent style


Related Topics

In the News (Fri 11 Dec 09)

  
  indent style
There are four major C indent styles, described below; all have the aim of making it easier for the reader to visually track the scope of control constructs.
In C code, the body is typically indented by eight spaces (or one tab) per level, as shown here.
Allman style — Named for Eric Allman, a Berkeley hacker who wrote a lot of the BSD utilities in it (it is sometimes called BSD style).
www.catb.org /~esr/jargon/html/I/indent-style.html   (435 words)

  
 Jargon 4.2, node: indent style
Also called `kernel style' because the Unix kernel is written in it, and the `One True Brace Style' (abbrev.
Basic indent per level shown here is eight spaces, but four spaces are occasionally seen.
Indents are always four spaces per level, with `{' and `}' halfway between the outer and inner indent levels.
www.science.uva.nl /~mes/jargon/i/indentstyle.html   (0 words)

  
  man indent
Here is another example: indent -br test/metabolism.c -l85 This will indent the program `test/metabolism.c' using the `-br' and `-l85' options, write the output back to `test/metabolism.c', and write the original contents of `test/metabolism.c' to a backup file in the directory `test'.
Option settings which correspond to the GNU style are: -nbad -bap -nbbb -nbc -bl -bli2 -c33 -cd33 -ncdb -nce -cli0 -cp1 -di0 -nfc1 -nfca -i2 -ip5 -lp -pcs -psl -nsc -nsob -nss -ts8 The GNU coding style is that preferred by the GNU project.
This style is required for the `etags' program to work correctly, as well as some of the `c-mode' functions of Emacs.
torch.cs.dal.ca /~johnston/unix/indent.html   (3085 words)

  
 Good Java Style: Part 1
Worrying about good style may seem like a waste of time, but it behooves us to write our code such that the thoughts and ideas it expresses are exceptionally clear.
Indent style (cf., Raymond, "Indent Style"), or the placement of braces ("{" and "}") and the associated indentation of code, is another of the religious issues related to writing code.
There are several indent styles common to C-style languages like Java, and I am not going to suggest that one of them is superior.
www.developer.com /java/other/print.php/600581   (1024 words)

  
 indent - phpMan
Option settings which correspond to the GNU style are: -nbad -bap -nbc -bbo -bl -bli2 -bls -ncdb -nce -cp1 -cs -di2 -ndj -nfc1 -nfca -hnl -i2 -ip5 -lp -pcs -nprs -psl -saf -sai -saw -nsc -nsob The GNU coding style is that preferred by the GNU project.
The style of the original Berkeley `indent' may be obtained by specifying `-orig' (or by specifying `--original', using the long option name).
`indent' attempts to distinguish between comments which follow statements, comments which follow declarations, comments following preprocessor directives, and comments which are not preceded by code of any sort, i.e., they begin the text of the line (although not neccessarily in column 1).
phpunixman.sourceforge.net /index.php/info/indent   (5016 words)

  
 text-indent Attribute | textIndent Property (BLOCKQUOTE, BODY, BUTTON, ...)
An indent is not inserted in the middle of an object that was broken by another object, such as br in HTML.
This example uses calls to an embedded style sheet to change the indent on the text when an onclick event occurs.
The text was originally indented 2 centimeters using div as a selector in the style sheet.
msdn.microsoft.com /workshop/author/dhtml/reference/properties/textindent.asp   (349 words)

  
 INDENT
This will indent the program `test/metabolism.c´ using the `-br´ and `-l85´ options, write the output back to `test/metabolism.c´, and write the original contents of `test/metabolism.c´ to a backup file in the directory `test´.
There are several common styles of C code, including the GNU style, the Kernighan and Ritchie style, and the original Berkeley style.
Kernighan and Ritchie style does not put comments to the right of code in the same column at all times (nor does it use only one space to the right of the code), so for this style indent has arbitrarily chosen column 33.
www.devdaily.com /unix/man/man1/indent.1.shtml   (4516 words)

  
 Ailanto : The One True Brace Style
It is the One True Brace Style, logical and clear, and I found out later that it has a name: it is known as Whitesmiths Style, because it was the style used in examples that came with Whitesmiths C, an early commercial C compiler.
Indents are always four spaces per level, with the braces halfway between the outer and inner indent levels...
BSD Style, or Allman Style, pushes the braces further left, to the indentation level of the guard or controlling statement, and this is a Bad Thing, because it appears that the braces are part of the guard or controlling statement; they are not.
komputado.com /eseoj/1tbs.htm   (432 words)

  
 Vim documentation: indent
This is useful if you want a different indent when the '{' is at the start of the line from when '{' is at the end of the line.
Indenting by expression *indent-expression* The basics for using flexible indenting are explained in section
Comments, labelled statements and continuation lines are indented if the Fortran is in free source form, whereas they are not indented if the Fortran is in fixed source form because of the left margin requirements.
www.vim.org /htmldoc/indent.html   (2213 words)

  
 indent
It is the style that the GNU Emacs C mode encourages and which is used in the C portions of GNU Emacs.
The style of the original Berkeley `indent' may be obtained by specifying `-orig' (or by specifyfying `--original', using the long option name).
When a statement is continued from a previous line, it is indented by a number of additional spaces specified by the `-ci' option.
www.rtr.com /winpak/Documentation/indent.htm   (3228 words)

  
 Ailanto : The One True Brace Style
It is the One True Brace Style, logical and clear, and I found out later that it has a name: it is known as Whitesmiths Style, because it was the style used in examples that came with Whitesmiths C, an early commercial C compiler.
Indents are always four spaces per level, with the braces halfway between the outer and inner indent levels...
BSD Style, or Allman Style, pushes the braces further left, to the indentation level of the guard or controlling statement, and this is a Bad Thing, because it appears that the braces are part of the guard or controlling statement; they are not.
www.komputado.com /eseoj/1tbs.htm   (432 words)

  
 [No title]
`indent' makes a backup copy of each file, and the origi- nal file is replaced with its indented version.
This style is required for the `etags' program to work correctly, as well as some of the `c-mode' func- tions of Emacs.
When a state- ment is continued from a previous line, it is indented by a number of additional spaces specified by the `-ci' option.
www-kiv.zcu.cz /~brada/doc/man/indent.html   (3086 words)

  
 Indent (IntelliJ IDEA build 3542 Open API)
Returns the "absolute none" indent instance, indicating that the block will be placed at the leftmost column in the document.
Continuation indent" setting relative to its parent block, unless this block is the first of the children of its parent having the same indent type.
Returns the standard "empty indent" instance, indicating that the block is not indented relative to its parent block.
www.jetbrains.com /idea/openapi/5.0/com/intellij/formatting/Indent.html   (473 words)

  
 [No title]
Here is another example:.in +5 indent -br test/metabolism.c -l85.in -5 This will indent the program `test/metabolism.c' using the `-br' and `-l85' options, write the output back to `test/metabolism.c', and write the original contents of `test/metabolism.c' to a backup file in the directory `test'.
Option settings which correspond to the GNU style are:.in +5 -nbad -bap -nbbb -nbc -bl -bli2 -c33 -cd33 -ncdb -nce -cli0 -cp1 -di0 -nfc1 -nfca -i2 -ip5 -lp -pcs -psl -nsc -nsob -nss -ts8.in -5 The GNU coding style is that preferred by the GNU project.
This style is equivalent to the following settings:.in +5 -nbap -nbad -nbbb -bc -br -c33 -cd33 -cdb -ce -ci4 -cli0 -cp33 -d4 -di16 -fc1 -fca -i4 -ip4 -l75 -lp -npcs -psl -sc -nsob -nss -ts8.in -5.SH "BLANK LINES" Various programming styles use blank lines in different places.
www.ibiblio.org /pub/historic-linux/distributions/redhat/4.0/i386/live/usr/man/man1/indent.1   (3151 words)

  
 Indentation - Wingware Python IDE
The Use Indent Analysis preference is used to control whether analysis of current file content is used to determine the type of indentation placed during edits.
In Python files with mixed indents, this value is ignored and the file is always shown in the way that the Python interpreter would see it.
If the file contains some indentation, this may override the tab size, indent size, and indent style values given in preferences and the file will be indented in a way that matches its existing content rather than with your configured defaults.
wingware.com /doc/edit/indentation   (626 words)

  
 Indentation - Wingware Python IDE
The Use Indent Analysis preference is used to control whether analysis of current file content is used to determine the type of indentation placed during edits.
In Python files with mixed indents, this value is ignored and the file is always shown in the way that the Python interpreter would see it.
If the file contains some indentation, this may override the tab size, indent size, and indent style values given in preferences and the file will be indented in a way that matches its existing content rather than with your configured defaults.
www.wingware.com /doc/edit/indentation   (626 words)

  
 textIndent Property (BLOCKQUOTE, BODY, BUTTON, ...)   (Site not responding. Last check: )
An indent is not inserted in the middle of an object that was broken by another object, such as br in HTML.
This example uses calls to an embedded style sheet to change the indent on the text when an onclick event occurs.
The text was originally indented 2 centimeters using div as a selector in the style sheet.
msdn2.microsoft.com /en-us/library/ms534670.aspx   (400 words)

  
 indent: Indent and Format C Program Source - The indent Program
There are several common styles of C code, including the GNU style, the Kernighan &; Ritchie style, and the original Berkeley style.
If the comment begins a line (i.e., there is no program text to its left), it will be indented to the column it was found in unless the comment is within a block of code.
One issue in the formatting of code is how far each line should be indented from the left margin.
www.math.utah.edu /docs/info/indent_1.html   (2630 words)

  
 Indent Styles | Gadgetopia
indent style: Excellent entry from The Jargon File that describes all the common indent styles in use today.
I should have specified indent method: I use 1-tab Allman.
I guess I agree with you both, since I use 1-tab indents, but I insist that a tab equals 4 spaces.
www.gadgetopia.com /post/2840   (446 words)

  
 Cascading Style Sheets (Library of Congress)
However, if you want to use the same style many times in the same document (or in a series of documents) it is much better to create a single style sheet, then apply the styles as needed throughout the document.
As a result, they not only don't apply the styles to the document, but also will display the actual style statements in the browser window (which is not desirable).
Style sheets can be stored in the same directory as the Web files, or can be linked to from any location on the Web site (local or remote) as long as you know the URL.
www.loc.gov /iug/html40/40css.html   (2771 words)

  
 Brace and Indent Styles and Code Convention
For the C programming language there are 4 wide spread indent styles which are also applied to languages with syntax similar to C like C++, Java, ECMAScript, Perl or C#.
This style is named after Eric Allman, who wrote a lot of utilities for the BSD family of operating systems, which also is a reason why this style is sometimes incorrectly referred to as the BSD style.
The Horstmann style is a variation of the Allman style that puts the first statement of a block in the same line as the opening brace.
www.riedquat.de /prog/style   (2940 words)

  
 UNIX man pages : indent ()   (Site not responding. Last check: )
There are several common styles of C code, including the GNU style, the Kernighan & Ritchie style, and the original Berkeley style.
Option set- tings which correspond to the GNU style are: -nbad -bap -nbc -bbo -bl -bli2 -bls -ncdb -nce -cp1 -cs -di2 -ndj -nfc1 -nfca -hnl -i2 -ip5 -lp -pcs -nprs -psl -saf -sai -saw -nsc -nsob The GNU coding style is that preferred by the GNU project.
indent attempts to distinguish between comments which follow state- ments, comments which follow declarations, comments following prepro- cessor directives, and comments which are not preceded by code of any sort, i.e., they begin the text of the line (although not neccessarily in column 1).
www.mcsr.olemiss.edu /cgi-bin/man-cgi?indent   (5076 words)

  
 Artistic Style
Artistic Style is a source code indenter, source code formatter, and source code beautifier for the C, C++, C# and Java programming languages.
Artistic Style may be used and distributed under the GNU Lesser General Public License (LGPL).
Linux style formatting/indenting (brackets are broken apart from class and function declarations, but connected to command lines, and indents are set to 8 spaces).
astyle.sourceforge.net   (1828 words)

  
 CSS Frequently Asked Questions - The HTML Writers Guild
Style Sheets are templates, very similar to templates in desktop publishing applications, containing a collection of rules declared to various selectors (elements).
Inline style is the style attached to one specific element.
Inherited style can be overridden by declaring specific style to child element.  For example if the EM element is not to inherit its parent P then own style must be declared to it.
www.hwg.org /resources/faqs/cssFAQ.html   (3469 words)

  
 Cascading Style Sheets
Style sheets can be employed using either embedded styles, where the style definitions are inserted between the HEAD element on each page, or linked styles, where a CSS file is created and linked to the pages using those styles.
Also, embedded styles are more likely to override user preferences in the browser.
For example, when an HTML document is rendered without associated style sheets, it must still be possible to read the document.
www.tamug.edu /computing/cascading_style_sheets.htm   (1696 words)

  
 indent style
Also called "kernel style" because the Unix kernel is written in it, and the "One True Brace Style" (abbreviation 1TBS) by its partisans.
The basic indent shown here is eight spaces (or one tab) per level; four spaces are occasionally seen, but are much less common.
Basic indent per level shown here is eight spaces, but four spaces are just as common (especially in C++ code).
burks.brighton.ac.uk /burks/foldoc/80/56.htm   (385 words)

  
 Indent - The @code{indent} Program
There are several common styles of C code, including the GNU style, the Kernighan &; Ritchie style, and the original Berkeley style.
Kernighan &; Ritchie style does not put comments to the right of code in the same column at all times (nor does it use only one space to the right of the code), so for this style
In that case, such a comment will be aligned with the indented code of that block.
web.mit.edu /gnu/doc/html/indent_1.html   (2579 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.