"Fossies" - the Fresh Open Source Software Archive

Member "ne-3.2.1/doc/html/AutoIndent.html" (2 Oct 2019, 3816 Bytes) of package /linux/misc/ne-3.2.1.tar.gz:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the ne-3.2.1.tar.gz project site itself.

Previous: , Up: Formatting Commands   [Contents][Index]

4.8.8 AutoIndent

Syntax: AutoIndent [0|1]
Abbreviation: AI

sets the auto indent flag. When this flag is true, ne will automatically insert TABs and spaces on a new line (created by an InsertLine command, or by automatic word wrapping) in such a way to replicate the initial spaces of the previous line. Most useful for indenting programs.

If you invoke AutoIndent with no arguments, it will toggle the flag. If you specify 0 or 1, the flag will be set to false or true, respectively. A lower case ‘a’ will appear on the status bar if the flag is true.

AutoIndent features a nice interaction with Undo. Whenever a new line is created, the insertion of spaces is recorded as a separate action in the undo buffer (with respect to the line creation). If you are not satisfied with the indentation, just give the Undo command and the indentation will disappear (but the new line will remain in place, since its creation has been recorded as a separate action). See Undo.