トップ(最新)

nDiki : 2006年04月24日

2006年4月24日 (月)

perltidy のコマンドファイルでデフォルト設定 このエントリーを含むはてなブックマーク

perltidy をいろいろいじった結果、今のところ自分好みの設定は以下:

 # Basic Options
 --maximum-line-length=78       # default is 80
 --indent-columns=2             # (!= perlstyle) default is 4
 --preserve-line-endings

 # Conde Indentation Control
 --line-up-parentheses          #
 --nooutdent-long-lines         # default is --outdent-long-lines

 # Whitespace Control
 --paren-tightness=2            # default is 1
 --square-bracket-tightness=2   # default is 1
 --brace-tightness=2            # default is 1
 --nospace-for-semicolon        # default is --space-for-semicolon

 # Line Break Control
 --vertical-tightness=2         # default is 0
 --vertical-tightness-closing=1 # default is 0
 --want-break-before="% + - * / x != == >= <= =~ !~ < > | & >= < = **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="
                                # default is ". << >> -> && ||"

 # HTML Options
 -nnn
 --nohtml-entities

一応 Perl Best Practices (は持っていないので Web で公開されているサンプルファイル)の perltidyrc や perlstyle などを参考にしつつ作成。

インデント幅その他、比較的タイトがお好き。

スポンサード リンク


[ 4月24日全て ]

■よく検索されるキーワード

torrent(51) 動画(24) 安めぐみ(21) 本名(21) tc-1(20) 画像(16) x31(16) wiki(13) windows(13) ドラマ(12) 作り方(12) 壁紙(12) thinkpad(11) ほぼ日手帳(11) 生年月日(11) 評判(10) 使い方(10) linux(10) システム手帳(10) 三条まゆみ(9) 真木よう子(9) インストール(8) usb(8) ポメラ(8) nikon(8) 修理(8) 値段(7) ほぼ日(7) ダイソー(7) 秋葉原(7) デロンギ(6) mp3(6) 無印(6) mp980(6) centos(6) 提案書(6) minolta(6) 無料(6) 口コミ(6) ボールペン(5) リフィル(5) so905ics(5) 書き方(5) スーベレーン(5) 方眼(5) iwgp(5) ミノルタ(5) gimp(5) レビュー(5) バッテリー(5) フリー(5) 評価(5) 万年筆(5) 写真(5) 映画(5) a6(5) タンブラー(5) porter(5) 無印良品(4) skype(4) 変更(4) firefox(4) デジカメ(4) イメージテック(4) make(4) moleskine(4) xp(4) ヨドバシ(4) 交換(4) 手帳(4) ユニクロ(4) 第25回ホリプロタレントスカウトキャラバン(4) f5(4) svn(4) ヨドバシカメラ(4) gmail(4) 冷蔵庫(4) ダウンロード(4) ショートカット(4) 筆まめ(4)

この日記のはてなブックマーク数 Add to Google RSS

Process Time: 2.68321s / load averages: 1.28, 0.67, 0.43
nDiki by WATANABE Yoshimasa (profile)
Powered by DiKicker
Base theme by Nana (for tDiary)