[TxMt] PHP echo wrap
Charley Tiggs
lists at tiggs.net
Sat Jun 2 22:32:46 UTC 2007
If I'm understanding your request correctly create a command with the
following values:
Save: Nothing
Command(s): /usr/bin/php -r "echo addslashes ( '$TM_SELECTED_TEXT' );"
Input: Selected Text or Nothing
Output: Replace Selected Text
Assign whatever key equivalent you wish to use and change the path for
the PHP binary to whatever is appropriate. You can also replace
addslashes() with str_replace () for greater flexibility in what you is
escaped.
Charley
luismcdougall wrote:
> I find my self wrapping html code very frequently.
> It is a pain but I do not know how to work with regex,
>
> Basically I need to use echo "" to wrap the html code and escape all of the
> other " in it.
>
> can someone help me?
> Please.
>
> -Thansk
> -L
More information about the textmate
mailing list