Files
textmate/Applications/TextMate/resources/TextMate Help/format_string_syntax.md
2013-03-07 23:13:48 +01:00

589 B

title: Format string syntax

Format String Syntax

In Snippets

Placeholders

$«int»
${«int»}
${«int»:«snippet»}
${«int»/«regexp»/«format»/«options»}
${«int»|«choice 1»,…,«choice n»|}

Code

`«code»`

In Format Strings

$0-n

\U, \L, \E, \u, \l
\n, \t

«variables»

(?«var»:«if»:«else»}
(?«var»:«if»}

In Both

Variables

${«var»:?«if»:«else»}
${«var»:+«if»}
${«var»:-«else»}
${«var»:«else»}
${«var»/«regexp»/«format»/«options»}
${«var»:[/upcase][/downcase][/capitalize][/asciify]}