This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Indent" Unix – news ·newspapers ·books ·scholar ·JSTOR(April 2014) (Learn how and when to remove this message) |
| indent | |
|---|---|
| Original author | David Willcox |
| Developers | David Ingamells, Carlo Wood, Joseph Arceneaux, Jim Kingdon, John Bridges |
| Initial release | November 1976; 49 years ago (1976-11) |
| Stable release | |
| Written in | C |
| Operating system | Cross-platform |
| Type | source-code-reformat tool |
| License | GNU:GPL-3.0-or-later[2] |
| Website | GNU:gnu |
| Repository | |
indent is aUnixutility that reformatsC andC++ code in a user-definedindentation style andcoding style. Support for C++ code is minimal.[3]
The original version of indent was written by David Willcox at theUniversity of Illinois in November 1976. It was incorporated into4.1BSD in October 1982.[4] GNU indent was first written by Jim Kingdon in 1989. The command is available as a separate package forMicrosoft Windows as part of theUnxUtils collection ofnativeWin32ports of common GNU Unix-like utilities.[5]
The followingcommand
$indent-st-bap-bli0-i4-l79-ncs-npcs-npsl-fca-lc79-fc1-ts4some_file.c
indentssome_file.c in a style resemblingBSD/Allman style and writes the result to thestandard output.
GNU indent is theGNU Project's version of indent. A different indentation style, theGNU style, is used by default.[6]
License: GNU General Public License v3 or later
indent(1) – OpenBSD General CommandsManual