How to turn text links to clickable HTML links quickly

Pobman

Regular Member
Joined
Aug 26, 2009
Messages
285
Reaction score
198
After I have done a manual link build, and yes I do some by hand still, I have a TXT file with all the link locations. Whats the quickest way to change these text files to a clickable webpage, ie with <a href"=....

So far I have just copied the TXT to word and used that to quickly convert each one to a clickable link and then save as HTML. However I am sure there must be a quicker way, as that takes a few minutes when you have a few hundred links.

Hope that makes some sense!
 
Is your list like this?

link1
link2
link3
link4
?


if so, you can just add a dash or something in front of each link, then maybe a + sign after the link (should be pretty fast if you just press down then hit your caracter, down, etc.)

your list should like this pretty fast:

-link1+
-link2+
-link3+
-link4+

then simply go to FIND and REPLACE (ctrl+F in dreamweaver), replace the "-" with <a href=" and then replace the "+" with " />
 
Thanks, but that might actually take me longer, as it stands i put it in word then just press these keys
<end><enter><delete> repeat.

I will give your idea a go though...just in case its a little quicker.
 
You could copy them into Excel into column B1 for example. Then Put in <a href= " into column A1 and copy down as far as you need to. Column B1 would be your HTTP. Then in column C1 put "<a> and copy all the way down. Then in column d1 put in: =(A1&B1&C1) and copy that all the way down. This will combine all the columns. then you can then copy column D1 and "past special" into column E1 as "values". This removes the formula and pasts just the text. Good for copy and pasting. You can play around with it a bit and get it to where you need it. This is a very fast method of combining code and text. Hope that helps!

My (A1) Dog (B1) Spot (C1) =(A1&B1&C1) (D1) MyDogSpot (E1)
 
Last edited:
Open find & replace in your editor, select regex and add:

find: ^(http://.*?)$
replace: <a href="$1">$1</a>

click "replace all"

done.
 
Back
Top