[TxMt] Re: Command for quoting text?
Daryl Spitzer
daryl.spitzer at gmail.com
Tue Apr 24 19:58:24 UTC 2007
The "URL Escape Line / Selection" command in the HTML bundle uses Ruby.
I guess that means there probably isn't a sh command equivalent. I'll
go ahead and write my command as a Python script (since I'm more
comfortable with Python than Ruby, and the Python urllib module has a
convenient quote function).
--
Daryl
On 4/24/07, Jacob Rus <jacobolus at gmail.com> wrote:
> Daryl Spitzer wrote:
> > Is there a Mac OS X sh command for quoting text (to
> > Internet-standard)? I'm writing a "Save to URL" command to complement
> > the Twiki bundle "Open URL" command I described in a previous email,
> > and I need to convert all the "special characters" in the entire
> > document to the '%xx' quoted form so I can append it to a URL.
> >
> > If there is no such thing, I'll write a Python script instead.
>
> What's wrong with the "URL escape selection" command in the HTML bundle?
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
More information about the textmate
mailing list