From: Allan Odgaard <throw-away-1@...> Subject: Re: HTML autoconversion of urls to hyperlinks Date: 2007-09-05 00:32:36 GMT (1 week, 3 days, 1 hour and 28 minutes ago) [...] it would be more useful for me to have a macro that would auto-convert all urls in a text document to active hyperlinks [...]
Are you familiar with Markdown? Perhaps it would be more effective for you to write the first draft of your text in Markdown and press ⌃⇧H to generate the HTML -- Markdown will convert <http:// macromates.com/> into <a href="http://macromates.com/">http://macromates.com/</a>
Allan,
Thanks for the tip--I can see Markdown is going to make my life much easier!
One follow-up question: Brett Terpstra alluded to an HTML bundle he was working on that would offer the option of omitting the link title lookup. I downloaded the snippet (a .bin file) he had attached and double-clicked on it, but nothing happened.
Then I figured maybe the update would be in the bundle repository at http://macromates.com/svn/Bundles/trunk/, but I couldn't figure out how to update these or load them from different sources.
Any instructions for updating bundles appreciated-- thanks as always for your help.
jon
On 15/09/2007, at 04:24, Jon Ippolito wrote:
[...] One follow-up question: Brett Terpstra alluded to an HTML bundle he was working on that would offer the option of omitting the link title lookup. I downloaded the snippet (a .bin file) he had attached and double-clicked on it, but nothing happened.
I think it was a command, so the extension should be .tmCommand -- if double clicked (with that extension), TextMate will take care of installing it.
The file I attached was a zip file of a command, so it should have had a zip extension. Your mail server/reader may have altered that, but it came through fine on mine. If I can get a more complete version together, I'll post it to my blog and get you a link.
Brett
On Sep 14, 2007, at 9:24 PM, Jon Ippolito wrote:
From: Allan Odgaard <throw-away-1@...> Subject: Re: HTML autoconversion of urls to hyperlinks Date: 2007-09-05 00:32:36 GMT (1 week, 3 days, 1 hour and 28 minutes ago) [...] it would be more useful for me to have a macro that would auto-convert all urls in a text document to active hyperlinks [...]
Are you familiar with Markdown? Perhaps it would be more effective for you to write the first draft of your text in Markdown and press ⌃⇧H to generate the HTML -- Markdown will convert http:// macromates.com/ into <a href="http://macromates.com/">http://macromates.com/</a>
Allan,
Thanks for the tip--I can see Markdown is going to make my life much easier!
One follow-up question: Brett Terpstra alluded to an HTML bundle he was working on that would offer the option of omitting the link title lookup. I downloaded the snippet (a .bin file) he had attached and double-clicked on it, but nothing happened.
Then I figured maybe the update would be in the bundle repository at http://macromates.com/svn/Bundles/trunk/, but I couldn't figure out how to update these or load them from different sources.
Any instructions for updating bundles appreciated-- thanks as always for your help.
jon
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate