Indent (UNIX)

indent是一個自Unix時代就已經存在的工具程式,可依使用者自行定義的程式設計風格重新縮排成CC++程式碼的樣式。至於對C++的支援則被認為是實驗性的。

使用範例

命令列

indent somefile.c -st -bad—blank-lines-after-procedures -bli0 -i4 -l79 \
-ncs -npcs -nut -npsl -fca -lc79 -fc1

somefile.c的樣式縮排成像BSD/Allman樣式,然後將結果寫到標準輸出

GNU indent

GNU indent
 
原作者David Ingamells, Carlo Wood, Joseph Arceneaux, Jim Kingdon, John Bridges
開發者FSF
當前版本2.2.9(2002年12月19日)
源代碼庫  
編程語言C
操作系統跨平台
類型程式源碼樣式整理工具
許可協議GPL
網站http://www.gnu.org/software/indent/

GNU indent是indent的GNU計畫版本,不過,GNU indent使用GNU樣式做為樣式的預設值。

外部連結