topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 5:31 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Looking for a linkification tool  (Read 6886 times)

eleman

  • Spam Killer
  • Supporting Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 413
    • View Profile
    • Donate to Member
Looking for a linkification tool
« on: April 13, 2011, 07:41 AM »
Here is my problem:

I need to paste tons and tons of URLs into html files, and make them links as well.

In other words, I have addresses like this:
http://url1
http://url2
http://url3

and so on...

I need to make them look like this:

<a href="http://url1">http://url1</a><br>
<a href="http://url2">http://url2</a><br>
<a href="http://url3">http://url3</a><br>

Can you think of a solution? I currently use a combination of excel and notepad, but I feel there must be a better way.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Looking for a linkification tool
« Reply #1 on: April 13, 2011, 08:09 AM »
Here you go:  Linkifier

2011-04-13_080817.pngLooking for a linkification tool
« Last Edit: April 13, 2011, 09:45 AM by skwire »

eleman

  • Spam Killer
  • Supporting Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 413
    • View Profile
    • Donate to Member
Re: Looking for a linkification tool
« Reply #2 on: April 13, 2011, 08:12 AM »
Here you go:  Linkifier

Are you the greatest or what?

Thanks a zillion.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Looking for a linkification tool
« Reply #3 on: April 13, 2011, 08:12 AM »
If you ever need to do something more customized...Macros in Notepad++, Emacs, etc. might be worth checking out:

Notepad++ Macros:

  http://npp-community.tuxfamily.org/documentation/notepad-user-manual/macros
  http://www.rarst.net/software/notepadpp-macro-for-repetitive/

Emacs Keyboard Macros:

  http://www.emacswiki.org/emacs/KeyboardMacros

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: Looking for a linkification tool
« Reply #4 on: April 13, 2011, 08:13 AM »
Here you go:
Oh, it's him again :D :D

Or maybe Excel2HTML could help here (but it could need a small functional change)?

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: Looking for a linkification tool
« Reply #5 on: April 13, 2011, 08:15 AM »
Are you the greatest or what?
Yep, he is :Thmbsup:

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • View Profile
    • Donate to Member
Re: Looking for a linkification tool
« Reply #6 on: April 13, 2011, 08:17 AM »
Skwire, it's nice enough of you to try to help, but can't you speed it up a bit?
It's taking you almost haf an hour!

 :up: :up: :up:

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Looking for a linkification tool
« Reply #7 on: April 13, 2011, 08:19 AM »
Skwire, it's nice enough of you to try to help, but can't you speed it up a bit?
It's taking you almost haf an hour!
-cranioscopical (April 13, 2011, 08:17 AM)

It would have been quicker but I had to take my daughters to school first.   Priorities, I know.  :P

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Looking for a linkification tool
« Reply #8 on: April 13, 2011, 08:34 AM »
The general problem is solved with regular expressions. They take a little bit to learn, but they give you god-like power.

For a simple example like that, search for:

^(.+)$

And replace with:

<a href="\1">\1</a><br>

The problem is very common with many, many more variations. The general principles in regular expressions let you solve them all very quickly.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Looking for a linkification tool
« Reply #9 on: April 14, 2011, 05:19 PM »
Perhaps the "replace with" portion of Renegade's post got mangled by the forums...

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Looking for a linkification tool
« Reply #10 on: April 14, 2011, 06:26 PM »
Perhaps the "replace with" portion of Renegade's post got mangled by the forums...

Yes. It did. Here it is again with spaces inserted:

< a href = "\1" > \1 < /a >< br >

Hopefully that will turn out ok.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Looking for a linkification tool
« Reply #11 on: April 15, 2011, 03:54 AM »
Seems like it came out fine :)

FWIW, wrapping in a code tag seems to provide some degree of protection:

some-mangling-protection-via-code-tag.pngLooking for a linkification tool

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Looking for a linkification tool
« Reply #12 on: April 17, 2011, 06:38 PM »
Seems like it came out fine :)

FWIW, wrapping in a code tag seems to provide some degree of protection:
 (see attachment in previous post)
Another option is to use the "no BBC" tag (unrelated with the british broadcast, AFAIK :P ). There's a red button there, of you prefer you can write it directly: [nobbc][/nobbc]

ps: cool, it even works for the tag itself :)

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Looking for a linkification tool
« Reply #13 on: April 17, 2011, 06:41 PM »
Nice!  Thanks for pointing that out :)