![]() |
| Best method of replacing FONT tags? |
|
drandalray
|
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
|
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
|
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
![]()
|
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
|
Thank you for the great feedback. I appreciate it.
|
||||||||||||
|
|
|||||||||||||
|
rkalch
|
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? |
|
||
|



