Jump to content

indent (Unix)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 67.128.198.190 (talk) at 15:59, 9 January 2012 (→‎GNU indent: - fixed a typo). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


GNU indent
Original author(s)David Ingamells, Carlo Wood, Joseph Arceneaux, Jim Kingdon, John Bridges
Developer(s)FSF
Stable release
2.2.10 / March 11, 2008; 16 years ago (2008-03-11)
Repository
Written inC
Operating systemCross-platform
Typesource code reformat tool
LicenseGNU General Public License
Websitehttp://www.gnu.org/software/indent/

indent is a Unix utility that reformats C and C++ code in a user-defined indent style and coding style. Support for C++ code is considered experimental.

Examples of usage

The command line

indent -st -bap -bli0 -i4 -l79 -ncs -npcs -npsl -fca -lc79 -fc1 -ts4 SomeFile.c

indents SomeFile.c in a style resembling BSD/Allman style and writes the result to the standard output.

GNU indent

GNU indent is the GNU Project's version of indent. A different indent style, the GNU style, is used by default.

GNU Indent Manual

GUI

See also