- -plain text: just insert text
- -variables: $TM_SELECTED_TEXT
- -variables with default: ${TM_SELECTED_TEXT:default text}
- -variables with regexp: ${TM_SELECTED_TEXT/regexp/format/options}
- ex. ${TM_SELECTED_TEXT/w+/<$0>/g}
- -Shell Code Insertion: ex. <a href="`pbpaste`">$TM_SELECTED_TEXT</a>
- -Tab Stops: $0 or $1..$n
- -Tab Stops with Default(Placeholders): ${1:default}
- -Mirrors: ex. <${1:div}> $0 </$1>
- -Transformations: ${1/regexp/format/options}
- -Transformations with condition: ${1/x$|(.+)/(?1:other)/}
- -Cascading placeholders: ${1:default${2:default}}
Monday, June 23, 2008
TextMate:Create Snippet
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment