Difference between revisions of "Indent Lines"

From TED Notepad
m
Line 1: Line 1:
<noinclude>{{manversion|6.0.0.14}}__NOTOC__</noinclude>
+
<noinclude>{{manversion|6.0.0.16}}__NOTOC__</noinclude>
 
====Indent (Ctrl+Tab)====
 
====Indent (Ctrl+Tab)====
  
 
Indents each {{defined|line}} of the selection with a Tab character. Does not modify {{defined|empty lines}}.
 
Indents each {{defined|line}} of the selection with a Tab character. Does not modify {{defined|empty lines}}.
 +
 +
Note: Indents with spaces instead of a Tab, if {{field|Settings:Edit|Insert spaces instead of Tab}} setting is turned on. The number of spaces inserted can be specified thru {{field|Settings:Edit|Tab Size}} setting. See chapter [[Edit page]] of the {{dialog|Settings}} dialog for more details.
 +
 +
Note: If {{field|Settings:Edit|Tab key indents multiple lines}} setting is turned on, this tool can be invoked thru simple {{hotkey|Tab}} key (as long as multiple lines are selected of course).
  
 
Note: The selection always persists in this tool.
 
Note: The selection always persists in this tool.

Revision as of 16:28, 25 April 2011

This section is up to date for TED Notepad version 6.3.1.0.

Indent (Ctrl+Tab)

Indents each line of the selection with a Tab character. Does not modify empty lines.

Note: Indents with spaces instead of a Tab, if Insert spaces instead of Tab setting is turned on. The number of spaces inserted can be specified thru Tab Size setting. See chapter Edit page of the Settings dialog for more details.

Note: If Tab key indents multiple lines setting is turned on, this tool can be invoked thru simple Tab key (as long as multiple lines are selected of course).

Note: The selection always persists in this tool.

Example:
if (IsNonEmpty (line)) Indent (line);
Result:
if (IsNonEmpty (line)) Indent (line);