Difference between revisions of "Tabify"
Line 1: | Line 1: | ||
− | <noinclude>{{manversion|6.0.0. | + | <noinclude>{{manversion|6.0.0.16|feature}}__NOTOC__</noinclude> |
====Tabify (Ctrl+Shift+O)==== | ====Tabify (Ctrl+Shift+O)==== | ||
− | Tabifies the indentation of the selection by replacing groups of leading {{defined|white-spaces}} with Tabs on each {{defined|line}} according to the current {{field|Tab Size}} setting. | + | Tabifies the indentation of the selection by replacing groups of leading {{defined|white-spaces}} with Tabs on each {{defined|line}} according to the current {{field|Settings:Edit|Tab Size}} setting. See chapter [[Edit page]] of the {{dialog|Settings}} dialog for more details. |
− | If Tabs and Spaces are mixed together on the beginning of a line, the total visual {{defined|white-space}} extent is calculated first, and only then Tabs (and Spaces) are used to fill the space of the original indentation. Note that Tabs always take precedence over Spaces while filling the indentation, i.e. Spaces are used only | + | If Tabs and Spaces are mixed together on the beginning of a line, the total visual {{defined|white-space}} extent is calculated first, and only then Tabs (and Spaces) are used to fill the space of the original indentation. Note that Tabs always take precedence over Spaces while filling the indentation, i.e. Spaces are used only if necessary (where another Tab would overflow the original extent of the indentation). |
− | Note: Using this tool should not generate any visible changes to the indentation, when used with a fixed-width font. However, some proportional fonts do not use the average character width for Spaces, thus Tabs may seem to be longer than a set of Spaces. This is a visual | + | Note: Using this tool should not generate any visible changes to the indentation, when used with a fixed-width font. However, some proportional fonts do not use the average character width for Spaces, thus Tabs may seem to be longer than a set of Spaces. This is a visual inconvenience only and should not be considered incorrect. |
Note: This tool does not modify any other {{defined|white-spaces}} than the leading ones. | Note: This tool does not modify any other {{defined|white-spaces}} than the leading ones. | ||
See also {{feature|Untabify}} tool. | See also {{feature|Untabify}} tool. |
Revision as of 21:14, 25 April 2011
Tabify (Ctrl+Shift+O)
Tabifies the indentation of the selection by replacing groups of leading white-spaces
with Tabs on each line
according to the current Tab Size setting. See chapter Edit page of the Settings dialog for more details.
If Tabs and Spaces are mixed together on the beginning of a line, the total visual white-space
extent is calculated first, and only then Tabs (and Spaces) are used to fill the space of the original indentation. Note that Tabs always take precedence over Spaces while filling the indentation, i.e. Spaces are used only if necessary (where another Tab would overflow the original extent of the indentation).
Note: Using this tool should not generate any visible changes to the indentation, when used with a fixed-width font. However, some proportional fonts do not use the average character width for Spaces, thus Tabs may seem to be longer than a set of Spaces. This is a visual inconvenience only and should not be considered incorrect.
Note: This tool does not modify any other white-spaces
than the leading ones.
See also Untabify tool.