Reply to topic
Best method of replacing FONT tags?
drandalray


Joined: 27 Apr 2004
Posts: 3
Reply with quote
Hello,

I realize this question is very much related to ColdFusion but please bear with me.

I am converting a large ASP/Frontpage site to ColdFusion/Dreamweaver. The site is 'littered' with FONT tags and I would like to replace them by using CSS more extensively.

Question - is there a method or some software that will remove all the FONT tags for me? Or am I faced with an ugly line-by-line task?

Thank you!
waterswing


Joined: 27 Apr 2004
Posts: 4
Reply with quote
The find and replace function in Dreamweaver is powerfull. You can search and replace in an unlimited amount of files at a time and it allows for wildcards also. So getting out those font tags should be a breeze.

Good luck
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1029
Location: Felton, Delaware
Reply with quote
If you are using a tool like Dreamweaver MX, you have the option to replace text with other text, or nothing. I've done this before and it works beautifully.

1) When in Dreamweaver with your document opened, hit [Crtl]+F
2) In the Find field, type your font tag:
ex. <font name="verdana" size="2">
3) In the Replace With field don't put anything... make sure it's empty.
4) Click Replace All.

Also, make sure you have it set to search the Source Code.
Search & Replace
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 766
Location: Newark, De
Reply with quote
Just a bit of warning: The search and replace function is great, but make sure you're being specific and you backup the original files - I once made the mistake of assuming that my search text would only be in a specific location and as it turns out I replaced a little too much...
drandalray


Joined: 27 Apr 2004
Posts: 3
Reply with quote
Thank you for the great feedback. I appreciate it.
rkalch


Joined: 04 Jun 2004
Posts: 4
Reply with quote
Try this: In the Find & Replace dialog box, enter <font .+>(.+)</font> in the search for area and $1 in the Replace with area. Make sure you have Use Regular Expressions checked.
Best method of replacing FONT tags?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic