PowerMTML Completions と MTML Completions で入力フォーマットが指定出来るようになりました。
Packageのupgrade方法
Command Palette(Command + Shift + P)で「Package Control : Upgrade Package」を選択します。
UpgradeがあるPackageが表示されるので選択すればUpgradeされます。
設定方法
Preferences > Settings - User(command + ,)に以下の項目を設定するとこでテンプレートタグの書式等を変更できます。
接頭辞の設定方法【mtml_prefix】
ここで設定した値がテンプレートタグの接頭辞になります。mtml_prefix を設定しない場合は mt: になります。
設定無し => <mt:EntryTitle />
"mtml_prefix": "MT:" => <MT:EntryTitle />
"mtml_prefix": "MT" => <MTEntryTitle />
ファンクションタグの書式を変更方法【mtml_function_tag_type】
ファンクションタグの書式を変更できます。設定できる値は dollar または none です。
設定無し => <mt:EntryTitle />
"mtml_function_tag_type": "dollar" => <$mt:EntryTitle$>
"mtml_function_tag_type": "none" => <mt:EntryTitle>
モディファイアの補完について
モディファイアの入力補完について質問がありましたのでREADMEに追加しておきました。
モディファイアについては、MTタグのあと、スペースに続けて数文字入力したあとに「Edit > Show Completions」(control + space)を実行すると補完されます。
なお、ショートカットキーがOSのショートカットキーと衝突している場合は、事前にどちらかを変更する必要があります。
関連リンク
- MTML Completions(MTタグを補完する Sublime Text 2 用パッケージ)でタグの書式が変更可能になりました | かたつむりくんのWWW
- (Power) MTML CompretionsでMTタグのフォーマットを指定出来るようになりました|linker journal|linker
Updated PowerMTML Completions and MTML Completions, and you can choose syntax of Movable Type Tags.
How to upgrade Package.
You select "Package Control : Upgrade Package" on Command Palette(Command + Shift + P).
You select this package from listing packages of updates.
How to set syntax
You can change syntax that adding these mode on "Preferences > Settings - User(command + ,)".
How to set prefix 'mtml_prefix'
'mtmlprefix' value is used for prefix of Movable Type Template Tag. If you don't set value on 'mtmlprefix',prefix is "mt:".
none => <mt:EntryTitle />
"mtml_prefix": "MT:" => <MT:EntryTitle />
"mtml_prefix": "MT" => <MTEntryTitle />
How to set syntax of function tags 'mtml_function_tag_type'
You can change syntax of function tags. You set value "dollar" or "none".
none=> <mt:EntryTitle />
"mtml_function_tag_type": "dollar" => <$mt:EntryTitle$>
"mtml_function_tag_type": "none" => <mt:EntryTitle>
About complement attributes
We got question about complement attributes so add an explanation on README.
After input MT tag, you input space and select menu "Edit > Show Completions" or click "control + space", complement attributes.
If your the shortcut key 'control + space' conflicted with OS shortcut key, you need change either of them before.