Indentation
Encyclopedia : I : IN : IND : Indentation
English
An indentation can mean two things:- To make notches in something or form deep recesses in a coastline for instance.
- To place text farther to the right to separate it from surrounding text.
For an example of the second meaning, this is an indentation of one space:
- Indented block
- :Indented block 2
Outdentation is a neologism used in computer circles to describe placing text back to the left again.
Indentation in programming
In computer programming languages, indentation is used to format program source code in order to improve its readability. Indentation is generally only of use to programmers; compilers and interpreters rarely care how much whitespace is present in between programming statements. However, certain programming languages rely on the use of indentation in order to demarcate programming structure, often using a variation of the Off-side rule. The Haskell, Occam, and Python programming languages rely on indentation in this way.Debates over where to indent, whether to use spaces or tabs, and how many spaces to use are often hotly debated among programmers, leading some to classify indentation as a religious war. Different indentation styles are commonly used. Recently, a third method of indentation was proposed, called elastic tabstops.
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
