Indentation

Indentation

An indentation may refer to:

  • A notch, or deep recesses; for instance in a coastline, or a carving in rock
  • The placement of text farther to the right to separate it from surrounding text.

The first meaning is also applied in hardness measurement as in indentation hardness.

For an example of the second meaning, this is an indentation of one non-breaking space:

 Indented block because this is something

and this is an indentation of two non-breaking spaces:

  Indented block 2

Pilcrow

In the written form of many languages, an indentation is often used at the beginning of a line to signal the start of a new paragraph.

Outdentation is a neologism used in computer circles to describe placing text back to the left again.

Some languages (e.g. Hebrew and Arabic) are written right-to-left, and if indentation is used, in the above "left" and "right" should be swapped when referring to such languages.

Indentation in typesetting

There are two main types of first-line indent: normal and hanging. A "normal" indent indents the first line, as shown here, an indent of one centimeter:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The other kind, a hanging indent, indents the rest of the text while leaving the first line in place; as shown here with a hanging indent of one centimeter:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Indentation in programming

In computer programming languages, indentation is used to format program source code to improve 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 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 akin to a religious war.[1] Different indentation styles are commonly used. In 2006 a third method of indentation was proposed, called elastic tabstops.

Notes and references


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу
Synonyms:

Look at other dictionaries:

  • indentation — [ ɛ̃dɑ̃tasjɔ̃ ] n. f. • v. 1860; de 1. in et dent 1 ♦ Didact. ou littér. Échancrure en forme de morsure. Les indentations d un littoral rocheux. 2 ♦ Inform. Disposition particulière du texte d un programme faisant apparaître des décalages de la… …   Encyclopédie Universelle

  • Indentation — In den*ta tion, n. 1. The act of indenting or state of being indented. [1913 Webster] 2. A notch or recess, in the margin or border of anything; as, the indentations of a leaf, of the coast, etc. [1913 Webster] 3. A recess or sharp depression in… …   The Collaborative International Dictionary of English

  • indentation — (n.) 1728, of margins or edges, extended form of INDENT (Cf. indent) (n.). Meaning action of making a dent or impression is from 1847 …   Etymology dictionary

  • indentation — ► NOUN 1) the action of indenting or the state of being indented. 2) a deep recess or notch …   English terms dictionary

  • indentation — [in΄den tā′shən] n. [ INDENT1 or INDENT2 + ATION] 1. an indenting or being indented 2. a result of indenting; specif., a) a notch, cut, or inlet on a coastline, etc. b) a dent …   English World dictionary

  • Indentation — Une indentation est un retrait par rapport à la norme. Cela peut se comprendre de cinq manières : Sommaire 1 Géographie 2 Littérature 3 Technologies de communication 4 Informatique …   Wikipédia en Français

  • indentation — ● n. f. ►PROG Mise en page minimaliste réalisée à l aide essentiellement de tabulations, afin de rendre un code source (ou tout autre texte) plus lisible, en faisant ressortir visuellement la structure du document, en partic. les structures de… …   Dictionnaire d'informatique francophone

  • indentation — n. to make an indentation * * * [ˌɪnden teɪʃ(ə)n] to make an indentation …   Combinatory dictionary

  • indentation — [[t]ɪ̱ndente͟ɪʃ(ə)n[/t]] indentations 1) N COUNT An indentation is the space at the beginning of a line of writing when it starts further away from the edge of the paper than all the other lines. 2) N COUNT An indentation is a shallow hole or cut …   English dictionary

  • indentation — UK [ˌɪndenˈteɪʃ(ə)n] / US noun Word forms indentation : singular indentation plural indentations 1) [countable] a mark or hole in the surface of something Use a knife to make indentations in the icing. 2) [countable] a cut shaped like a V in the… …   English dictionary

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”