SciTE 縮排

lua-users home
Wiki

縮排 HTML、PHP、C、CPP、Javascript、嵌入式 Javascript、XML 檔案。使用語法突顯資訊,因此只有在使用適當的詞彙分析器時才會正確運作。

檔案:wiki_insecure/editors/SciTE/indent.lua

注意:C 編程人員

以上的縮排很不錯,但是我希望在縮排樣式上有多一些選擇。

我安裝了 GNU indent,並將類似以下內容新增到 .SciTEUser.Properties

command.name.13.*=Indent Code
command.13.*=indent --line-length 90 -brf -linux "$(FilePath)" ;  \
echo "DONE! Press CTRL-R to reload document."
command.shortcut.13.*=Alt+Ctrl+Shift+I
說明:「Indent 是用來美化 C 程式碼的 GNU 程式,以簡化閱讀。Indent 也能將一種 C 編寫風格轉換為另一種。Indent 了解正確的 C 語法,並設法處理不正確的 C 語法。」

Indent 支援除了 -brf -linux(個人的最愛)之外的數種縮排樣式


最新異動 · 喜好設定
編輯 · 歷程
最後編輯時間:2009 年 10 月 30 日 上午 9:27 GMT (diff)