Difference between revisions of "Indent Lines"

From TED Notepad
Line 19: Line 19:
 
         Indent (line);</nowiki>}}
 
         Indent (line);</nowiki>}}
 
{{example_end}}
 
{{example_end}}
 +
 +
See also {{feature|Unindent Lines}}, {{feature|Quote Lines}} and {{feature|Tabify}} tools.

Revision as of 16:39, 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);

See also Unindent Lines, Quote Lines and Tabify tools.