[TxMt] Wrap text while preserving formatting
Allan Odgaard
throw-away-1 at macromates.com
Thu Jul 27 11:54:32 UTC 2006
On 26/7/2006, at 18:27, Eric D. Fields wrote:
> Perhaps I'm doing this wrong, but I'm trying to figure out a way to do
> wrap text using the command-ctrl-shift-w shortcut while preserving my
> code formatting. [...]
I have changed the command to the following, which makes it leave the
indent to the left of the start tag:
perl -pe 's/[\$`\\]/\\$&/g; s/([ \t]*)(.+)/$1<\${1:li}>$2<\/\${1
\/\\s.*\/\/}>/'
More information about the textmate
mailing list