This article needs additional citations for verification. (January 2008)
A tab stop on a typewriter is a location where the carriage movement is halted by an adjustable end stop. Tab stops are set manually, and pressing the tab key causes the carriage to go to the next tab stop. In text editors on a computer, the same concept is implemented simplistically with automatic, fixed tab stops.
Modern word processors generalize this concept by offering tab stops that have an alignment attribute and cause the text to be automatically aligned at left, at right or center of the tab stop itself. Such tab stops are paragraph-specific properties and can be moved to a different location in any moment, or even removed.
Types of tab stops edit
A tab stop is a horizontal position which is set for placing and aligning text on a page. There are at least five kinds of tab stops in general usage in word processing or in Microsoft Word.
- text extends to the right from the tab stop.
- text is centered at the tab stop.
- text extends to the left from the tab stop until the tab's space is filled, and then the text extends to the right.
- text before the decimal point extends to the left, and text after the decimal point extends to the right.
- a vertical line at the specified position on each line in a document.
Dynamic tab stops edit
In contrast to fixed positioning, tab stops can be adjusted dynamically, based on the length of adjacent tab-delimited line segments, by alignment to a specific character or string in each line, etc. Adobe InDesign supports a non-printing "indent to here" character.
In 2006, Nick Gravgaard published an algorithm for automatic dynamic tab stops called "Elastic tabstops". This can be useful for viewing/editing source code and essential for tabular data. Various text editors and IDEs have implemented the elastic tabstops algorithm either directly or by extension.
Software which supports elastic tabstops edit
See also edit
- "Snippets". TextMate 1.5.1 Manual. Retrieved 1 November 2021.
- Elastic tabstops
- Code Browser - Elastic Tabstops
- Always Aligned Archived 2017-10-05 at the Wayback Machine
- Always Aligned repository
- Elastic Tabstops package for Atom
- Elastic Tabstops for Textadept
- JEdit - Elastic Tabstops
- Elastic Tabstops plugin for Notepad++
- Go (programming language) tabwriter package
- Elastic tabstops for Rust
- Emacs Manual - Indentation